discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Dial tone under GNU Radio Companion fails


From: Allen Vinegar
Subject: Re: [Discuss-gnuradio] Dial tone under GNU Radio Companion fails
Date: Mon, 8 Nov 2010 22:32:37 -0500

48000 did the trick. The program now works.

Many thanks.

Al Vinegar


----- Original Message ----- From: "Scott Storck" <address@hidden>
To: "Allen Vinegar" <address@hidden>
Sent: Monday, November 08, 2010 7:58 PM
Subject: Re: [Discuss-gnuradio] Dial tone under GNU Radio Companion fails


I ran into the same problem, but I can't remember exactly how I solved
it.  I think initially I was able to get it working using 48000 as the
sample rate, so you might try that value.


On 11/8/10, Allen Vinegar <address@hidden> wrote:
I tried changing the sampling rate to 44100 and tried using plughw and I get
the following results:

The following is with plughw:



audio_alsa_sink[plughw:0,0]: set_period_time_near failed: Invalid argument

Traceback (most recent call last):

File
"/home/al/gnuradio-uhd/gnuradio/gnuradio-examples/grc/audio/dial_tone.py",
line 120, in <module>



tb = dial_tone()

File
"/home/al/gnuradio-uhd/gnuradio/gnuradio-examples/grc/audio/dial_tone.py",
line 85, in __init__

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

File "/usr/local/lib/python2.6/dist-packages/gnuradio/audio_alsa.py", line
321, in sink

return _audio_alsa.sink(*args, **kwargs)

RuntimeError: audio_alsa_sink



The following is without plugw:



audio_alsa_sink[hw:0,0]: set_period_time_near failed: Invalid argument

Traceback (most recent call last):

File
"/home/al/gnuradio-uhd/gnuradio/gnuradio-examples/grc/audio/dial_tone.py",
line 120, in <module>



tb = dial_tone()

File
"/home/al/gnuradio-uhd/gnuradio/gnuradio-examples/grc/audio/dial_tone.py",
line 85, in __init__

self.audio_sink = audio.sink(44100, "", True)

File "/usr/local/lib/python2.6/dist-packages/gnuradio/audio_alsa.py", line
321, in sink

return _audio_alsa.sink(*args, **kwargs)

RuntimeError: audio_alsa_sink



What do I try next?



Many thanks,

Al Vinegar


----- Original Message -----
From: "Marcus D. Leech" <address@hidden>
To: <address@hidden>
Sent: Sunday, November 07, 2010 10:15 PM
Subject: Re: [Discuss-gnuradio] Dial tone under GNU Radio Companion fails


On 11/07/2010 10:02 PM, Josh Blum wrote:
So, from what I gather, you build and ran 3.2.2 and dial tone worked
fine. However, building and running dial done on the next branch gives
you the following error?


audio_alsa_sink[hw:0,0]: unable to support sampling rate 32000

card requested 44100 instead.


Maybe the underlying implementation of the alsa sink changed from
3.2.2 to next? Anybody aware of this?

Take a look at the docs in the Audio sink block, I think there is a
note to enable the resampler, or just pick a sample rate that your
sound card agrees with.

-josh
When I use alsa audio, I generally use the "plughw" device, which does
resampling.

This didn't work for a while on some Fedora distributions a couple of
releases back, but I recall
that a system update corrected it.



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




--
Principal Investigator
Shirleys Bay Radio Astronomy Consortium
http://www.sbrac.org



_______________________________________________
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]