hi friends, spent some time to set up audio stuff today
i wanted to try amarok, seems to be a nice GUI audio player by default it uses xine as a backend – but sound stuttered. also when just calling xine binary directl, setting audio.synchronization.force_rate to 48000 in ~/.xine/config helped but seemed not to affect amarok, anyways, after some reading i found out that there is an alsa plugin in that uses libsamplerate to convert the rate, how to do it:
- install libsamplerate
- install alsa plugins (gentoo: USE=”-libsamplerate” emerge alsa-plugins)
- edit .asoundrc
there are different algorithms, different cpu-usage/quality
pcm.HQ {
type rate
slave {
pcm "hw:0,0"
rate 48000
}
converter "samplerate_best"
}
so you can for example set up high quality converting for music and low for system sounds etc or use defaults.pcm.rate_converter=”samplerate_best” to set a global default
http://www.hydrogenaudio.org/forums/index.php?showtopic=47591 ( interesting thread comparing different converter alogrithms )