I want to be able to output to a speaker from multiple applications at the same time, but currently it's only allowing me to output to the speaker from a single application.
I have the following ALSA config for my speaker and microphone:
pcm.!default {
type asym
capture.pcm "mic"
playback.pcm "speaker"
}
pcm.mic {
type plug
slave {
pcm "hw:2,0"
}
}
pcm.speaker {
type plug
slave {
pcm "hw:1,0"
}
}
I know I need to somehow combine my config to enable dmix
, I've tried adding:
pcm.dsp {
type plug
slave.pcm "dmix"
}
But that doesn't work.
Any help would be much appreciated.