RuntimeError: audio_alsa_sink

I tried to execute usrp_wfm_rcv.py. But some errors occured :

*[email protected]:~/gnuradio/gr-uhd/examples$ sudo python
usrp_wfm_rcv.py
linux; GNU C++ version 4.6.1; Boost_104601; UHD_003.004.000-f592102

– Opening a USRP1 device…
– Using FPGA clock rate of 64.000000MHz…

gr_fir_ccf: using SSE
gr_fir_fff: using SSE
audio_alsa_sink[hw:0,0]: unable to support sampling rate 32000
card requested 44100 instead.
audio_alsa_sink[hw:0,0]: set_period_time_near failed: Invalid argument
Traceback (most recent call last):
File “usrp_wfm_rcv.py”, line 285, in
app = stdgui2.stdapp (wfm_rx_block, “USRP WFM RX”)
File
“/usr/local/lib/python2.7/dist-packages/gnuradio/wxgui/stdgui2.py”,
line 37, in init
wx.App.init(self, redirect=False)
File
“/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py”,
line 7978, in init
self._BootstrapApp()
File
“/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py”,
line 7552, in _BootstrapApp
return core.PyApp__BootstrapApp(*args, **kwargs)
File
“/usr/local/lib/python2.7/dist-packages/gnuradio/wxgui/stdgui2.py”,
line 40, in OnInit
frame = stdframe (self.top_block_maker, self.title, self._nstatus)
File
“/usr/local/lib/python2.7/dist-packages/gnuradio/wxgui/stdgui2.py”,
line 61, in init
self.panel = stdpanel (self, self, top_block_maker)
File
“/usr/local/lib/python2.7/dist-packages/gnuradio/wxgui/stdgui2.py”,
line 82, in init
self.top_block = top_block_maker (frame, self, vbox, sys.argv)
File “usrp_wfm_rcv.py”, line 107, in init
False) # ok_to_block
File
“/usr/local/lib/python2.7/dist-packages/gnuradio/audio/audio_swig.py”,
line
345, in sink
return _audio_swig.sink(*args, **kwargs)
RuntimeError: audio_alsa_sink

To correct the *audio_alsa_sink[hw:0,0]: unable to support sampling
rate
32000
card requested 44100 instead. error *, I change the
usrp_wfm_rcv.py line 84 which is : " audio_rate = 32e3 " with "
audio_rate = 44.1e3 " . Then the sampling rate problem was solved. But
the
others didn’t change. How can I fix this ??

merve

merve deniz [email protected] writes:

audio_alsa_sink[hw:0,0]: unable to support sampling rate 32000
card requested 44100 instead.

I route audio from gnuradio to pulseaudio using

–audio-output pcm.pulse

Since pulseaudio can resample 32000 -> 44100 easily this works very well
(I also often listen to the output on another computer over network).

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs