putting plughw:0,0 in as the hardware name for the audio sink worked for me, the default was blank...
On Sun, Mar 1, 2009 at 7:48 PM, Josh Blum <j...@joshknows.com> wrote: > 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 <arto.oksa...@jklsirius.fi> >> wrote: >>> >>> Using plughw:0,0 does not change anything. The error is the same. >>> >>> arto >>> >>> 2009/3/1 Eric Blossom <e...@comsec.com>: >>>> >>>> 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 >>> arto.oksa...@jklsirius.fi >>> Muurame, Finland >>> >>> >>> _______________________________________________ >>> Discuss-gnuradio mailing list >>> Discuss-gnuradio@gnu.org >>> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio >>> >> >> >> _______________________________________________ >> Discuss-gnuradio mailing list >> Discuss-gnuradio@gnu.org >> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio > > > _______________________________________________ > Discuss-gnuradio mailing list > Discuss-gnuradio@gnu.org > http://lists.gnu.org/mailman/listinfo/discuss-gnuradio > _______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio