# Example programs and alsa

**URL:** <https://www.ruby-forum.com/t/example-programs-and-alsa/57789>\
**Category:** GNU Radio\
**Created:** [April 14, 2006, 5:14am UTC](https://www.ruby-forum.com/t/example-programs-and-alsa/57789 "2006-04-14T05:14:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![paul\_munro](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/87869e/32.png) [@paul\_munro](https://www.ruby-forum.com/u/paul_munro)\
**Post date:** [April 14, 2006, 5:14am UTC](https://www.ruby-forum.com/t/example-programs-and-alsa/57789/1 "2006-04-14T05:14:13Z")

</div>

Hi, I have just installed gnu radio and tried the example programs in  
the  
examples directory. There is an issue with alsa. The last few lines look  
like this:

File “./am\_rcv.py”, line 41, in **init**  
audio\_sink = audio.sink (int (audio\_rate))  
File “/usr/local/lib/python2.3/site-packages/gnuradio/audio\_alsa.py”,  
line  
222, in sink  
return \_audio\_alsa.sink(\*args)  
RuntimeError: audio\_alsa\_sink

I am guessing there is an issue with the sound card setup. The programs  
that  
don’t use the sound card work fine. I haven’t installed portaudio due to  
dependency issues that I am yet to sort out. Is this an issue? All the  
other  
packages installed without error.

Any help/advice would be great  
Thanks  
Paul

* * *

Discover fun and games at @ [http://xtramsn.co.nz/kids](http://xtramsn.co.nz/kids)

---

<div class="post-metadata">

**Author:** ![paul\_munro](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/87869e/32.png) [@paul\_munro](https://www.ruby-forum.com/u/paul_munro)\
**Post date:** [April 15, 2006, 12:56am UTC](https://www.ruby-forum.com/t/example-programs-and-alsa/57789/2 "2006-04-15T00:56:06Z")

</div>

On Fri, Apr 14, 2006 at 03:11:46AM +0000, paul munro wrote:

> I am guessing there is an issue with the sound card setup. The programs  
> that don’t use the sound card work fine. I haven’t installed portaudio due  
> to dependency issues that I am yet to sort out. Is this an issue?

ALSA currently works much better under GNU/Linux than portaudio.

> All the other packages installed without error.

Have you tried running the examples in gnuradio-examples/python/audio ?

Can anything talk to your sound card? E.g., does KDE make sounds when  
starting up?

Eric
