I'm trying to get an asound.conf file set up that will allow me
to play 5 different wav files over separate channels
simultaneously, with a command like this:
#aplay -D channel1 1.wav & aplay -D channel2 2.wav &
aplay -D channel3 3.wav & aplay -D channel4 4.wav &
aplay -D channel5 5.wav
My first attempt was a file full of these:
...snip...
pcm.channel3
{
type route
slave.pcm default
slave.channels 6
#map all output sound strictly to channel 2
ttable.0.2 1
ttable.1.2 1
ttable.2.2 1
ttable.3.2 1
ttable.4.2 1
ttable.5.2 1
}
... snip ...
but this only works for channels 1 and 2
doing an aplay -v -D channel1 1.wav, I see why,
my stream gets routed through a 2 channel plug conversion:
(edited for brevity)
Route conversion PCM
Transformation table:
0 <- none
1 <- none
2 <- 0 + 1 + 2 + 3 + 4 + 5
Its setup is:
channels : 1
rate : 16000
Slave: Plug PCM: Route conversion PCM (sformat=U8)
Transformation table:
0 <- 0
1 <- 1
Its setup is:
channels : 6
rate : 16000
Slave: Rate conversion PCM (48000, sformat=S16_LE)
Its setup is:
channels : 2
rate : 16000
Slave: Direct Stream Mixing PCM
Its setup is:
channels : 2
rate : 48000
Hardware PCM card 0 'Intel 82801DB-ICH4' device 0 subdevice 0
Its setup is:
channels : 2
How can I route directly to the "Slave: Rate conversion PCM (48000,
sformat=S16_LE)"?
bypassing that 6 -> 2 channel conversion.
or conversely how do I tell the plug to keep all 6 channels?
also my alsamixer is set to do no down converting,
and I do have output from a 6 channel test wave file
played through "-D surround51" and
Speaker-test will only give me sound on all 6 channels
IF I specify "-c 6 -D surround51" with no "-D"
it indicates it plays to all the channels, but I only
get sound out of channels 0 and 1.
I've also tried creating custom mixer setups, and
custom rate converters, "dshare"'s and "share"s.
I'm at a total loss.
thanks,
-Allen
------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________ Alsa-user mailing list Alsa-user@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/alsa-user