GnuRadio 3.10 - Audio sink under Linux does not support stereo
I'm also running Gnu Radio 3.10.1.1 under Linux, specifically Linux Mint 21.3. I just ran a test using a two-input audio sink that was straight connected to a WAV source playing a stereo song (AC/DC's "You Shook Me All Night Long", as you should clearly hear Angus Young's guitar riff at the beginning mainly in the right ear). It ran with no problem. I then test it on a FM broadcast stereo receiver using a RTL-SDR. That, too, ran just fine. Perhaps if you shared your flowgraph? Gary
Re: GnuRadio 3.10 - Audio sink under Linux does not support stereo
On 7/4/24 07:11, Gary Schafer wrote: Perhaps if you shared your flowgraph? Gary I've created about the simplest flow graph possible to demonstrate the issue (attached). Here's the output. <<< Welcome to GNU Radio Companion 3.10.9.2 >>> Block paths: ~/.grc_gnuradio /usr/share/gnuradio/grc/blocks Generating: "/tmp/default.py" Generating: "/tmp/default.py" Executing: /usr/bin/python3 -u /tmp/default.py (python3:203156): dbind-WARNING **: 07:40:33.655: Couldn't connect to accessibility bus: Failed to connect to socket /root/.cache/at-spi/bus_0.0: Permission denied audio_alsa_source :error: [pulse]: set_channels failed: Invalid argument Traceback (most recent call last): File "/tmp/default.py", line 121, in main() File "/tmp/default.py", line 101, in main tb.start() File "/usr/lib/python3/dist-packages/gnuradio/gr/top_block.py", line 116, in start top_block_start_unlocked(self._impl, max_noutput_items) RuntimeError: check topology failed on audio_alsa_source(1) using ninputs=0, noutputs=2 >>> Done (return code 1) audio.grc Description: application/gnuradio-grc OpenPGP_signature.asc Description: OpenPGP digital signature
Re: GnuRadio 3.10 - Audio sink under Linux does not support stereo
Gosh, I love the taste of broiled corvid in the morning... I think I found the issue - I had a ~/.gnuradio/config.conf file, that was specifying audio_module=alsa, and so the system couldn't auto-load the pulse module that works. So, I will amend my statement - the ALSA module seems to have a problem with multiple channels, but the newer modules like Pulse don't. Considering that some embedded systems have ALSA but not PulseAudio or Pipewire, it may still be worth looking into why the plain old ALSA module doesn't like multiple channels, and it is worth noting on the WIKI that forcing the use of ALSA may cause issues. Now, does anybody have a recommendation of what sauces go best with crow? OpenPGP_signature.asc Description: OpenPGP digital signature
Re: GnuRadio 3.10 - Audio sink under Linux does not support stereo
Okay, runs just fine on my Gnu Radio. Which specific version of Gnu Radio are you running? On 7/4/24 08:42, David Hagood wrote: On 7/4/24 07:11, Gary Schafer wrote: Perhaps if you shared your flowgraph? Gary I've created about the simplest flow graph possible to demonstrate the issue (attached). Here's the output. <<< Welcome to GNU Radio Companion 3.10.9.2 >>> Block paths: ~/.grc_gnuradio /usr/share/gnuradio/grc/blocks Generating: "/tmp/default.py" Generating: "/tmp/default.py" Executing: /usr/bin/python3 -u /tmp/default.py (python3:203156): dbind-WARNING **: 07:40:33.655: Couldn't connect to accessibility bus: Failed to connect to socket /root/.cache/at-spi/bus_0.0: Permission denied audio_alsa_source :error: [pulse]: set_channels failed: Invalid argument Traceback (most recent call last): File "/tmp/default.py", line 121, in main() File "/tmp/default.py", line 101, in main tb.start() File "/usr/lib/python3/dist-packages/gnuradio/gr/top_block.py", line 116, in start top_block_start_unlocked(self._impl, max_noutput_items) RuntimeError: check topology failed on audio_alsa_source(1) using ninputs=0, noutputs=2 >>> Done (return code 1)
Re: GnuRadio 3.10 - Audio sink under Linux does not support stereo
LOL! As my programming skills are poor (at best), I'll leave the driver / Alsa / Pulse questions to others. Gary On 7/4/24 08:57, David Hagood wrote: Gosh, I love the taste of broiled corvid in the morning... I think I found the issue - I had a ~/.gnuradio/config.conf file, that was specifying audio_module=alsa, and so the system couldn't auto-load the pulse module that works. So, I will amend my statement - the ALSA module seems to have a problem with multiple channels, but the newer modules like Pulse don't. Considering that some embedded systems have ALSA but not PulseAudio or Pipewire, it may still be worth looking into why the plain old ALSA module doesn't like multiple channels, and it is worth noting on the WIKI that forcing the use of ALSA may cause issues. Now, does anybody have a recommendation of what sauces go best with crow?