Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have this /etc/asound.conf file where i can do my audio output to device hw:0 with any applications. But i have two / three/ four applications who need to use same microphone hw:0

With the following i only have one application who can use the mic, but how do i configure, so that if the microphone is busy it still allow other applications to capture it? Like multi microphone access allow.

pcm.dmixed {
    type dmix
    ipc_key 1024
    ipc_key_add_uid 0
slave.pcm "hw:0"
}
pcm.dsnooped {
    type dsnoop
    ipc_key 1025
    ipc_key_add_uid 0
slave.pcm "hw:0"
}

pcm.duplex {
    type asym
    playback.pcm "dmixed"
    capture.pcm "dsnooped"
}

# Instruct ALSA to use pcm.duplex as the default device
pcm.!default {
    type plug
    slave.pcm "duplex"
}
ctl.!default {
    type plug
    slave.pcm "duplex"
}
share|improve this question
    
What exactly happens when you try to record something with arecord two times? –  CL. Oct 3 '13 at 8:18
    
Device is busy for the second one. –  YumYumYum Oct 3 '13 at 8:30
    
How exactly are you running arecord? It should use the default device by default. –  CL. Oct 3 '13 at 9:06
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.