Terratec 5.1 USB && Linux -
2005/01/11 22:14
[quote:c259b5f1fe="J_Zar"]Sure it is possible to use 6 channel with Alsa. The problem is configuring with .asoundrc, that is not so clean and easy as configure method.
[/quote:c259b5f1fe]
Ok, I've been googleling and with help of FrankBarknecht and I've found that in order to use all the 6 channels it's no necessary to do anymore than send a 6 channel audio file. The sound card is already to use 2 or 6 channels (it has two "alt settings"), as it can be seen in
----------
> cat /proc/asound/card1/stream0
USB Audio at usb-0000:00:10.0-1, full speed : USB Audio
Playback:
Status: Stop
Interface 1
Altset 1
Format: S16_LE
Channels: 2
Endpoint: 1 OUT (ADAPTIVE)
Rates: 48000
Interface 1
Altset 2
Format: S16_LE
Channels: 6
Endpoint: 1 OUT (ADAPTIVE)
Rates: 48000
(...)
----------
The driver chooses the better 'altset' to fit the audio stream. If you want to access some particular channel with, for example, a stereo (2 channel) sound file, you must use, indeed, the .asoundrc file. I attach my own; my Terratec is card1 in my computer.
----------
> cat ~/.asoundrc
pcm.aureon_front {
type route
slave.pcm "hw:1"
slave.channels 6
ttable.0.0 1
ttable.1.1 1
}
pcm.aureon_rear {
type route
slave.pcm "hw:1"
slave.channels 6
ttable.0.4 1
ttable.1.5 1
}
pcm.aureon_mid {
type route
slave.pcm "hw:1"
slave.channels 6
ttable.0.2 1
ttable.1.3 1
}
pcm.mixxx {
type route
slave.pcm "hw:1"
slave.channels 6
ttable.0.0 1
ttable.1.1 1
ttable.2.4 1
ttable.3.5 1
}
pcm.ch51dup {
type route
slave.pcm "hw:1"
slave.channels 6
ttable.0.0 1
ttable.1.1 1
ttable.0.2 1
ttable.1.3 1
ttable.0.4 0.5
ttable.1.4 0.5
ttable.0.5 0.5
ttable.1.5 0.5
}
----------
In each line of ttable, the first number refers to the channel of the input stream, the second to the channel of the soundcard, and the third is the "weight" assigned (0 to 1).
To test it you can try:
> aplay -Dplug:aureon_front test.wav
> aplay -Dplug:aureon_mid test.wav
> aplay -Dplug:aureon_rear test.wav
> aplay -Dplug:ch51dup test.wav
...
The 'plug' plugin is used to convert sampling rate, format, etc...
I hope to have been helpful...
Regards,
ßingen.
The administrator has disabled public write access.