" ALSA lib pcm.c:7843:(snd_pcm_recover)欠载发生" - 尝试播放音频时julia出错

时间:2014-04-18 09:28:19

标签: julia

在JULIA尝试播放音频时,有人能说出这个错误吗?怎么解决这个?我正在使用音频库AudioIO。并试图发挥正弦曲线。

julia> x=sin(0:.01:2*pi*500*5);

julia> using AudioIO

julia> play(x)
INFO: Initializing PortAudio. Expect errors as we scan devices
ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
ALSA lib pcm_dmix.c:961:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
INFO: Launching PortAudio Task...
INFO: Audio Task Launched
INFO: Audio Task Yielded, starting the stream...
INFO: Portaudio stream started.
ArrayPlayer(true,[0.0f0,0.009999833f0,0.019998666f0,0.029995501f0,0.039989334f0,0.04997917f0,0.059964005f0,0.06994285f0,0.0799147f0,0.08987855f0  …  -0.09313279f0,-0.083171755f0,-0.07320242f0,-0.063225746f0,-0.05324276f0,-0.04325445f0,-0.033261813f0,-0.02326585f0,-0.01326756f0,-0.0032679432f0],1)

julia> ALSA lib pcm.c:7843:(snd_pcm_recover) underrun occurred

2 个答案:

答案 0 :(得分:1)

如果您在此处未获得答案,请向AudioIO.jl提出问题。

答案 1 :(得分:1)

很抱歉由于对此缺乏回应,我在github上看到了你的问题但是我不知道有一个问题。

ALSA上的Portaudio显然非常敏感地错过了回调截止日期,并且倾向于挂机并将CPU固定在100%。最新版本的AudioIO(0.1.x)现在使用读/写API来实现portaudio,并且似乎更加稳定。它也不再需要C shim来处理先前版本所做的回调,因此它应该更容易安装。

请试一试,让我知道它是否在您的系统上运行得更好(尽管github问题肯定是一种更可靠的方式来引起我的注意)。