2011-09-06, 12:40
Hi.
I've been trying to get the audio to work the way I want it to work for a while now. And Im almost there, just need a little help
Setup:
EEEBox 1501P With xbmc-live installed
video direct to TV via HDMI
audio direct to receiver via SPDIF (optical)
XBMC-settings:
Audio out: Default
Audio out for passtrough: Custom: alsa:mixed-digital (see asound.conf file below).
What I want and what works.:
Navigation sound in XBMC through mixer so it will work with shairport, which also should output audio through a mixer (default) - This works.
Play movies with analog sound - This works.
Play movies with digital sound - This works, but after I stop the movie no analog audio works anymore.
I would like that if XBMC output a digital stream to the card/device/pcm/whatever, it should hijack the card, so only the digital sound is send to the receiver. And when I stop the movie, shall XBMC un-hijack the card, So analog audio works again.
I found a asound.conf file that almost did what I wanted.
You can find it here: http://pastebin.com/MkSBWYL0.
I've tried to change to slave.pcm "dmix-digital" in pcm.!default, and that 'worked'. If I didn't disconnect from shairport while playing a movie with digital audio, I got a lot of noise.
So, is there a way to use dmix-analog as default pcm, and when XBMC starts to use dmix-digital or only digital, it should only output that. And then let dmix-analog send audio again when XBMC stops sending the digital stream.
I've been trying to get the audio to work the way I want it to work for a while now. And Im almost there, just need a little help
Setup:
EEEBox 1501P With xbmc-live installed
video direct to TV via HDMI
audio direct to receiver via SPDIF (optical)
XBMC-settings:
Audio out: Default
Audio out for passtrough: Custom: alsa:mixed-digital (see asound.conf file below).
What I want and what works.:
Navigation sound in XBMC through mixer so it will work with shairport, which also should output audio through a mixer (default) - This works.
Play movies with analog sound - This works.
Play movies with digital sound - This works, but after I stop the movie no analog audio works anymore.
I would like that if XBMC output a digital stream to the card/device/pcm/whatever, it should hijack the card, so only the digital sound is send to the receiver. And when I stop the movie, shall XBMC un-hijack the card, So analog audio works again.
I found a asound.conf file that almost did what I wanted.
You can find it here: http://pastebin.com/MkSBWYL0.
I've tried to change to slave.pcm "dmix-digital" in pcm.!default, and that 'worked'. If I didn't disconnect from shairport while playing a movie with digital audio, I got a lot of noise.
So, is there a way to use dmix-analog as default pcm, and when XBMC starts to use dmix-digital or only digital, it should only output that. And then let dmix-analog send audio again when XBMC stops sending the digital stream.