Tuesday, June 30, 2020

Re: ALSAPulseAudio procedure

What does

  aplay -l

indicate?

When using

  hw:CARD=Generic,DEV=0

in gnuradio, try using numbers, for example,

  hw:0,0

or

 plughw:0,0

and see if it makes a difference.

Or try switching between sampling rates of 48000 and 44100.

-- CInaed

On 6/29/20 3:00 PM, Barry Duggan wrote:
> I have been having problems with audio underruns on some of my
> flowgraphs, so I decided to try the procedure in
> https://wiki.gnuradio.org/index.php/ALSAPulseAudio#Solution_2
>
> I found one entry (other than HDMI) for my speakers and created the
> following for ~/.asoundrc :
> pcm.pulse_monitor {
>     type pulse
>     device alsa_output.pci-0000_0f_00.4.analog-stereo.monitor
> }
>
> ctl.pulse_monitor {
>     type pulse
>     device alsa_output.pci-0000_0f_00.4.analog-stereo.monitor
> }
>
> I changed my Audio Sink device name to 'pulse_monitor' and got the
> following error:
> ALSA lib pcm_pulse.c:752:(pulse_prepare) PulseAudio: Unable to create
> stream: No such entity
>
> gr::log :ERROR: audio_alsa_sink0 - [pulse_monitor]: snd_pcm_hw_params
> failed: Input/output error
> Traceback (most recent call last):
>   File "/home/barry/GRdev/Pluto_NFM.py", line 216, in <module>
>     main()
>   File "/home/barry/GRdev/Pluto_NFM.py", line 194, in main
>     tb.start()
>   File
> "/usr/local/lib/python3/dist-packages/gnuradio/gr/top_block.py", line
> 111, in start
>     top_block_start_unlocked(self._impl, max_noutput_items)
>   File
> "/usr/local/lib/python3/dist-packages/gnuradio/gr/runtime_swig.py",
> line 5828, in top_block_start_unlocked
>     return _runtime_swig.top_block_start_unlocked(r, max_noutput_items)
> RuntimeError: check topology failed on audio_alsa_sink(9) using
> ninputs=1, noutputs=0
>
> Using the device name "hw:CARD=Generic,DEV=0" works, but gives the
> underruns. I'm using Ubuntu 19.10.
>
> Any ideas?
> Thanks.

No comments:

Post a Comment