discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] unable to get sound from alsa sink


From: Chris Gorman
Subject: Re: [Discuss-gnuradio] unable to get sound from alsa sink
Date: Mon, 26 Aug 2019 10:30:18 -0400

Hi Barry,

Thanks for your time and expertise.  I should have been more verbose
in my email.  I can get sound out of my code when I use the
gnuradio-companion program, but not when I run the snippet I gave you.
The purpose of the hacked code is to try to tie a 4x4 Qt.PushButton to
the various frequencies needed to make a Touch tone generator.  (I
currently have it working with radio buittons, through
gnuraidio-companion, but want to use Qt.PushButtons instead.)  I tried
your suggestion and can get the sound working, but not outside of grc.

I am using gnuradio-companion 3.7.13.5 on ubuntu 18.04.  aplay -L
gives me lots of options but the one that appears to be default is...

sysdefault:CARD=Intel
    HDA Intel, STAC9221 A1 Analog
    Default Audio Device

I'm wondering if this is a sound system permission issue?

Thanks for your help.

Chris


Chris

On Mon, Aug 26, 2019 at 9:36 AM Barry Duggan <address@hidden> wrote:
>
> Hi Chris,
>
> You didn't mention your OS or your platform, but this works for a Linux
> system:
>
> Using a terminal screen, enter 'aplay -L'
>
> Here is an excerpt from my Raspberry Pi:
>
> """
> default:CARD=ALSA
>      bcm2835 ALSA, bcm2835 ALSA
>      Default Audio Device
> hw:CARD=ALSA,DEV=1
>      bcm2835 ALSA, bcm2835 IEC958/HDMI
>      Direct hardware device without any conversions
> hw:CARD=Device,DEV=0
>      USB Audio Device, USB Audio
>      Direct hardware device without any conversions
> """
>
> The Pi has a headphone jack, an HDMI port, and I have a USB audio
> dongle. What you need to do is pick the appropriate entry for your
> system, and the enter the Device Name in the Audio Sink properties. For
> example, I use "hw:CARD=ALSA,DEV=1" to get sound on my monitor.
>
> On Windows or Mac, you might just enter "default:CARD=ALSA".
>
> Good luck,
> --
> Barry Duggan
>
> On Sun, 25 Aug 2019 17:27:31 -0400, Chris Gorman wrote:
>
> Hello All,
>
> I have been hacking at a python script with an attempt to pass two
> frequencies to be added to audio sink.  I can't seem to get any sound
> out of the sound card, though.  When I run the script I get "gr::log
> :INFO: audio source - Audio sink arch: alsa".  The script follows.  My
> python and QT skills are very poor, I simply started with
> gnuradio-companion code and tried to hack the result.  Can anyone see
> where I might fix this?
>
> Thanks in advance.
>
> Chris
>
> <snip>



reply via email to

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