discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] audio_alsa_sink problem


From: Josh Blum
Subject: Re: [Discuss-gnuradio] audio_alsa_sink problem
Date: Sun, 01 Mar 2009 23:03:31 -0800
User-agent: Thunderbird 2.0.0.19 (X11/20090105)

I will add a note to the documentation in grc audio blocks about plughw.

Can you edit the generated code and test the following 2 combinations:

self.audio_sink_0 = audio.sink(44100, "plughw:0,0", False)
self.audio_sink_0 = audio.sink(44100, "plughw:0,0")

Let me know. -Josh

Arto Oksanen wrote:
this is from the working dial_tone.py

dst = audio.sink (sample_rate, options.audio_output)

and this is from GRC generated code:

self.audio_sink_0 = audio.sink(44100, "plughw:0,0", True)

For me it looks like the generated code has an extra parameter..

arto

2009/3/2 Josh Blum <address@hidden>:
The audio sink in GRC has 3 parameters:
       sample_rate, device_name, ok_to_block

The generated code looks like this:
       audio.sink(sample_rate, device_name, ok_to_block)

If entering plughw:0,0 for the device_name does not fix the problem, I am
unsure about what is wrong... GRC generates the code, we can always compare
this to the code in a working example.

Is the GRC block missing an extra (4th) parameter to audio.sink?

-Josh

davek wrote:
im having the same problem
dial tone in GRC crashes with the same error
but the python dialtone example works fine
running svn trunk on ubuntu 8.10 64bit standard install with a
gigabyte ga-ep45-ud3r onboard audio...
if you figure it out let me know...
thanks..


On Sun, Mar 1, 2009 at 4:29 PM, Arto Oksanen <address@hidden>
wrote:
Using plughw:0,0 does not change anything. The error is the same.

arto

2009/3/1 Eric Blossom <address@hidden>:
On Sun, Mar 01, 2009 at 09:38:31PM +0200, Arto Oksanen wrote:
When trying to use audio sink in GRC I get following error:

audio: using audio_alsa
audio_alsa_sink[hw:0,0]: set_period_time_near failed: Invalid argument
Traceback (most recent call last):
 File "/home/gr/top_block.py", line 45, in <module>
   tb = top_block()
 File "/home/gr/top_block.py", line 32, in __init__
   self.audio_sink_0 = audio.sink(44100, "", True)
 File
"/usr/local/lib64/python2.5/site-packages/gnuradio/audio_alsa.py",
line 307, in sink
   return _audio_alsa.sink(*args, **kwargs)
RuntimeError: audio_alsa_sink


The audio test samples in gnuradio-examples/python/audio do work with
no problems.

I tried to google for further information, but found only the archive
of this mail list suggesting to search the net for the solution. Looks
like a recursive solution for me. :-)
Thanks for searching first!

I am new to gnuradio stuff so it may well be my ignorance causing
this, but I can not find any tutorials or manuals or documentation
especially for the GRC.
I've seen the error before (but not on my h/w).  Can you try using
plughw:0,0 instead of hw:0,0 and see if that changes anything?

Eric


--
Arto Oksanen
address@hidden
Muurame, Finland


_______________________________________________
Discuss-gnuradio mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


_______________________________________________
Discuss-gnuradio mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

_______________________________________________
Discuss-gnuradio mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio








reply via email to

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