2010-11-16, 17:57
I have following problem: I would like to have simultaneous audio output:
from XBMC and from another player.
Reason: xbmc plays music, while the other program delivers sound notifications (like: you have a mail, etc.)
I have following soundcard definition in my ~/.asoundrc:
pcm.test {
type dmix
ipc_key 1123
slave {
pcm "hw:0"
rate 44100
}
}
Using alsa dmix, I'm able to simulate the desired behaviour with mplayer:
[konsole1]> mplayer -ao alsa:device=test /tmp/test1.mp3
[konsole2]> mplayer -ao alsa:device=test /tmp/test2.mp3
With this, two files (test1.mp3 and test2.mp3) are played at the same time.
I configured XBMC to use the above definition of pcm.test:
<audiooutput>
<ac3passthrough>false</ac3passthrough>
<audiodevice>alsa:device=test</audiodevice>
<customdevice></customdevice>
<custompassthrough></custompassthrough>
<downmixmultichannel>true</downmixmultichannel>
<dtspassthrough>true</dtspassthrough>
<mode>0</mode>
<passthroughdevice>iec958</passthroughdevice>
<sep1></sep1>
<sep2></sep2>
<sep3></sep3>
</audiooutput>
Now I do following: in konsole1, I'm launching mplayer, and in another konsole window, I'm launching xbmc:
[konsole1]> mplayer -ao alsa:device=test /tmp/test1.mp3
[konsole2]> xbmc
Unfortunatelly, XBMC shows following:
ALSA lib pcm_dmix.c:1010:(snd_pcm_dmix_open) unable to open slave
And of course, no audio playback is possible from xbmc (failed to initialize audio, when tried).
What is the issue here ? Something wrong with my XBMC configuration? Or is XBMC somehow using the soundcard directly - disallowing simultaneous output?
from XBMC and from another player.
Reason: xbmc plays music, while the other program delivers sound notifications (like: you have a mail, etc.)
I have following soundcard definition in my ~/.asoundrc:
pcm.test {
type dmix
ipc_key 1123
slave {
pcm "hw:0"
rate 44100
}
}
Using alsa dmix, I'm able to simulate the desired behaviour with mplayer:
[konsole1]> mplayer -ao alsa:device=test /tmp/test1.mp3
[konsole2]> mplayer -ao alsa:device=test /tmp/test2.mp3
With this, two files (test1.mp3 and test2.mp3) are played at the same time.
I configured XBMC to use the above definition of pcm.test:
<audiooutput>
<ac3passthrough>false</ac3passthrough>
<audiodevice>alsa:device=test</audiodevice>
<customdevice></customdevice>
<custompassthrough></custompassthrough>
<downmixmultichannel>true</downmixmultichannel>
<dtspassthrough>true</dtspassthrough>
<mode>0</mode>
<passthroughdevice>iec958</passthroughdevice>
<sep1></sep1>
<sep2></sep2>
<sep3></sep3>
</audiooutput>
Now I do following: in konsole1, I'm launching mplayer, and in another konsole window, I'm launching xbmc:
[konsole1]> mplayer -ao alsa:device=test /tmp/test1.mp3
[konsole2]> xbmc
Unfortunatelly, XBMC shows following:
ALSA lib pcm_dmix.c:1010:(snd_pcm_dmix_open) unable to open slave
And of course, no audio playback is possible from xbmc (failed to initialize audio, when tried).
What is the issue here ? Something wrong with my XBMC configuration? Or is XBMC somehow using the soundcard directly - disallowing simultaneous output?