[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ALSAPulseAudio procedure

From: Barry Duggan
Subject: Re: ALSAPulseAudio procedure
Date: Wed, 1 Jul 2020 07:43:05 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.9.0

Hi Cinaed,

Thank you for your response. Yes, I have tried those and the "hw:CARD=Generic,DEV=0" works well for most flowgraphs. I obtained that from the 'aplay -L' command.

Let me reiterate my request: In exploring the audio problems, I followed the instructions in https://wiki.gnuradio.org/index.php/ALSAPulseAudio#Monitoring_the_output_of_your_system and it gave the error I cited. So what I want to know is: Did I do something wrong, or is the procedure not correct?

I need someone who is familiar with the ALSA and PulseAudio software to look at this.

Barry Duggan KV4FV

On Tue, 30 Jun 2020 00:22:02 -0700, Cinaed Simson wrote:

What does

  aplay -l


When using


in gnuradio, try using numbers, for example,




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>
      File "/home/barry/GRdev/Pluto_NFM.py", line 194, in main

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?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]