Topic: dmix and Multiface II
Hello!
I have Multiface II installed on Centos5 distro and have been facing the following problem.
I cannot use the soundcard by two or more applications simulteneously.
For instance if I try to run aplay from two consoles such as
aplay test1.wav
aplay test2.wav
the second command will return
aplay: main:583: audio open error: Device or resource busy
I tried using dmix in /etc/asound.conf
pcm.hdsp {
type hw
card 0
device 0
}ctl.hdsp {
type hw
card 0
}pcm.hdsp {
type plug
slave.pcm "dmixer"
}pcm.dmixer {
type dmix
ipc_key 1024
slave {
pcm "hw:0,0"
rate 44100
}
bindings {
0 0
1 1
}}
ctl.dmixer {
type hw
card 0
}
With the above asound.conf, when I run
aplay -Dplug:dmix test1.wav
I get the following error:
ALSA lib pcm_direct.c:975:(snd1_pcm_direct_initialize_slave) unable to install hw params
ALSA lib pcm_dmix.c:1020:(snd_pcm_dmix_open) unable to initialize slave
aplay: main:583: audio open error: Device or resource busy
BTW dmix used to work at some point, without blocking the soundcard, but apparently it does not work any longer.
Any help would be greatly appreciated.
Thanks a lot!
chrisoula