Thursday, January 04, 2007

ALSA stoop

I finally got my 5.1 speakers work in linux properly with this asoundrc file:

pcm.p6 {
type route
slave.pcm surround51
slave.channels 6
ttable.0.0 1
ttable.1.1 1
ttable.0.2 1
ttable.1.3 1
ttable.0.4 0.4
ttable.1.4 0.4
ttable.0.5 0.2
ttable.1.5 0.2
And then for example aplay -D plug:p6 <soundfile> plays the sound in all speakers. In xine I have settings which produces original AC3 sound into all speakers by default (I've set nothing) if available.

I had no idea about how asoundrc files works, I needed to study it and went through /etc/alsa stuff to understand it. Now, the life with ALSA is easier :). Let me note, that I have an emu10k1 card (creative sb live!) with analog genius speakers.

No comments: