Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can more than one program read from /dev/dsp at once?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
jubo
Tux's lil' helper
Tux's lil' helper


Joined: 30 Aug 2004
Posts: 87

PostPosted: Sun Feb 12, 2006 8:16 am    Post subject: Can more than one program read from /dev/dsp at once? Reply with quote

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
View user's profile Send private message
Taki
Apprentice
Apprentice


Joined: 22 Sep 2005
Posts: 249
Location: Johannesburg, South Africa

PostPosted: Sun Feb 12, 2006 9:13 am    Post subject: Reply with quote

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
View user's profile Send private message
jubo
Tux's lil' helper
Tux's lil' helper


Joined: 30 Aug 2004
Posts: 87

PostPosted: Sun Feb 12, 2006 9:43 am    Post subject: Reply with quote

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
View user's profile Send private message
jubo
Tux's lil' helper
Tux's lil' helper


Joined: 30 Aug 2004
Posts: 87

PostPosted: Sun Feb 12, 2006 9:59 am    Post subject: Reply with quote

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
View user's profile Send private message
Taki
Apprentice
Apprentice


Joined: 22 Sep 2005
Posts: 249
Location: Johannesburg, South Africa

PostPosted: Sun Feb 12, 2006 11:30 am    Post subject: Reply with quote

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

:cry:
_________________
I live a life of needles and wax.
When the needle touches the wax,
I begin to breathe.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum