View previous topic :: View next topic |
Author |
Message |
jubo Tux's lil' helper
Joined: 30 Aug 2004 Posts: 87
|
Posted: Sun Feb 12, 2006 8:16 am Post subject: Can more than one program read from /dev/dsp at once? |
|
|
Currently I get a "Device is Busy" error if I try to have more than one program recording microphone input. However, I want to be able to get more than one program to do this. Is there anyway ALSA can duplicate the sound device to another /dev node, so more than one program can use the sound input data at a time. Any suggestions?
Thanks |
|
Back to top |
|
|
Taki Apprentice
Joined: 22 Sep 2005 Posts: 249 Location: Johannesburg, South Africa
|
Posted: Sun Feb 12, 2006 9:13 am Post subject: |
|
|
Hi.
I don't think you can have more than 1 /dev/dsp. All you need to do is creat a mixing device that will handle multiple requests to you sound card.
see:http://gentoo-wiki.com/HOWTO_ALSA_sound_mixer_aka_dmix _________________ I live a life of needles and wax.
When the needle touches the wax,
I begin to breathe. |
|
Back to top |
|
|
jubo Tux's lil' helper
Joined: 30 Aug 2004 Posts: 87
|
Posted: Sun Feb 12, 2006 9:43 am Post subject: |
|
|
Does dmix work for microphone input as well? My sound card already handles multiple output requests (like doing xmms and mplayer at the same time), but if I try to have multiple prorams recording I get the "Device is Busy". |
|
Back to top |
|
|
jubo Tux's lil' helper
Joined: 30 Aug 2004 Posts: 87
|
Posted: Sun Feb 12, 2006 9:59 am Post subject: |
|
|
I did a little more looking into dmix, and even after I specify it with my .asoundrc, I can only run one "arecord" at a time. |
|
Back to top |
|
|
Taki Apprentice
Joined: 22 Sep 2005 Posts: 249 Location: Johannesburg, South Africa
|
Posted: Sun Feb 12, 2006 11:30 am Post subject: |
|
|
I tried running a record but all I get is:
Code: | ALSA lib pcm_dmix.c:762:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
arecord: main:544: audio open error: Invalid argument |
_________________ I live a life of needles and wax.
When the needle touches the wax,
I begin to breathe. |
|
Back to top |
|
|
|