Re: RuntimeError: audio_alsa_source

Firas, I am running gnuradio3.1.1 on 64-bit machine, using Fedora7

Firas A. wrote:

What is your OS Type? (Fedora, Ubuntu, …)

Firas

Brook L. wrote:

Hi Firas, I am using gnuradio3.1.1

Firas A. wrote:

What is your OS, gnuradio version ?

Firas,

Brook L. wrote:

Tx amplitude 12000
File “./tx_voice.py”, line 121, in main
Does anyone know how to solve it? I don’t quite understand.

Thanks in advance!


View this message in context:
http://www.nabble.com/RuntimeError%3A-audio_alsa_source-tp14307133p14339751.html
Sent from the GnuRadio mailing list archive at Nabble.com.

Hi,

use “plughw:0,0” as the default audio sink device as explained in :

http://www.nabble.com/Audio-Sink-Help-to10675997.html#a10690757
http://www.nabble.com/GNURadio-Example-Suggestions-to2888951.html#a2920566

Firas,

Brook L. wrote:

gr_fir_fff: using SSE
audio_alsa_source[musicpcm.pcm]: No such file or directory
219, in source


View this message in context:
http://www.nabble.com/RuntimeError%3A-audio_alsa_source-tp14307133p14339798.html
Sent from the GnuRadio mailing list archive at Nabble.com.

On Fri, Dec 14, 2007 at 12:23:21PM -0800, Brook L. wrote:

Gaussian filter bt = 0.35
Using TX d’board A: Basic Tx
Tx amplitude 12000
modulation: gmsk_mod
bitrate: 50kb/s
samples/symbol: 5
interp: 512
Tx Frequency: 30M
ALSA lib pcm.c:2145:(snd_pcm_open_noupdate) Unknown PCM musicpcm.pcm
audio_alsa_source[musicpcm.pcm]: No such file or directory

You are apparently specifying an ALSA device that you don’t have.
Why don’t you try the default, that is, no -I option.

Eric

Thanks for all your suggestions. I tried this today:
sudo ./tx_voice.py -f 120M -I plughw:0,0

gr_fir_fff: using SSE
gr_buffer::allocate_buffer: warning: tried to allocate
992 items of size 33. Due to alignment requirements
4096 were allocated. If this isn’t OK, consider padding
your structure to a power-of-two bytes.
On this platform, our allocation granularity is 4096 bytes.

sudo ./rx_voice.py -f 120M -O plughw:0,0

gr_fir_fff: using SSE
audio_alsa_sink[plughw:0,0]: Device or resource busy
Traceback (most recent call last):
File “./rx_voice.py”, line 138, in
main()
File “./rx_voice.py”, line 128, in main
tb = my_top_block(demods[options.modulation], rx_callback, options)
File “./rx_voice.py”, line 67, in init
self.audio_tx = audio_tx(options.audio_output)
File “./rx_voice.py”, line 55, in init
audio_sink = audio.sink(44100, audio_output_dev)
File “/usr/lib64/python2.5/site-packages/gnuradio/audio_alsa.py”, line
236, in sink
return _audio_alsa.sink(*args)
RuntimeError: audio_alsa_sink

I am using Basic Tx/RX. And I still don’t understand how to transmit and
receive my own music via USRP. I also tried sudo ./usrp_wfm_rcv.py -f
91M -O
plughw:0,0 to record the FM radio to my computer. It gives me almost the
same error: audio_alsa_sink[plughw:0,0]: Device or resource busy. Can
you
give me some clue to transmit and receive my own music file? Thanks a
lot!

Brook


View this message in context:
http://www.nabble.com/RuntimeError%3A-audio_alsa_source-tp14307133p14405949.html
Sent from the GnuRadio mailing list archive at Nabble.com.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Brook L. wrote:

plughw:0,0 to record the FM radio to my computer. It gives me almost the
same error: audio_alsa_sink[plughw:0,0]: Device or resource busy. Can you

Is some other application locking the sound card? An IM client, a media
player, even a browser? Also, are you in the relevant groups? (audio,
whatever)?

Incidentally, is your end goal to do something that involves sound? If
you’re doing RF stuff alone and are only looking to test some basic GNU
Radio functionality, you might be better off skipping the ALSA issues
(which seem to be fairly common on this list and often difficult to work
out). You can use things like benchmark_tx.py and benchmark_rx.py to
test transceiver functionality, etc.

  • -Dan
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.6 (GNU/Linux)
    Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHaDuZy9GYuuMoUJ4RAriAAJ9wwLgIVaQLJDbdtI6VYREW8Fot4QCff4iy
ZlPWYPl2LBcKBkvuZrhVkh0=
=umyT
-----END PGP SIGNATURE-----

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs