2008-03-19, 19:44
This information is not strictly XBMC specific, but it is probably very useful to many XBMC users. I and many others have been using dmix in our asound.conf file to output stereo audio through spdif.
This worked for me, but I have always had noise when listening to music that sounded somewhat like a scratch on a record. It is a scratchy noise that can be heard at regular intervals. After a good bit of searching and reading, I found that dmix is not very good at resampling.
First, you need a couple of packages:
You'll need to change your asound.conf file to include the following:
Some of this (hw:0,1 especially) may have to change for your system. Also, samplerate_best is very CPU intensive (about 20% on my E4500), so if you want something less taxing, try samplerate_medium, etc.
Finally, set XBMC to use xbmc_default instead of default for its audio device.
I'd really be interested to know if this is useful for others.
This worked for me, but I have always had noise when listening to music that sounded somewhat like a scratch on a record. It is a scratchy noise that can be heard at regular intervals. After a good bit of searching and reading, I found that dmix is not very good at resampling.
First, you need a couple of packages:
Code:
sudo apt-get install libsamplerate0 libasound2-plugins
You'll need to change your asound.conf file to include the following:
Code:
pcm.48k_best {
type rate
slave {
pcm "hw:0,1"
format S32_LE
rate 48000
}
converter "samplerate_best"
}
pcm.!xbmc_default {
type plug
slave {
pcm 48k_best
}
}
Some of this (hw:0,1 especially) may have to change for your system. Also, samplerate_best is very CPU intensive (about 20% on my E4500), so if you want something less taxing, try samplerate_medium, etc.
Finally, set XBMC to use xbmc_default instead of default for its audio device.
I'd really be interested to know if this is useful for others.