[pulseaudio-discuss] re-mapping a sink/source module
Richard Bown
richard at g8jvm.com
Mon Oct 8 10:50:31 PDT 2012
Hi ,
I tried loading the module from default.pa, but it wasn't liked, I have 4 sound
devices, I used this to load the amended alsa modules for a M-Audio D66 card:-
#!/bin/bash
Card='device_id="'
# get the ALSA card number for M-Audio D66 card
S1=`aplay -l|grep M66|grep -v grep |awk '{print $2}'| sed 's/\:$//'`
if [ ! $S1 == 0 ]; then
echo " ALSA Card Number=" $S1;device=$Card$S1
fi
mod=`pactl list short modules| grep $device |awk '{print $1}'`; echo " pulseaudio module ="$mod
if [ ! $mod == 0 ]; then pactl unload-module $mod
echo "Module" $mod " has been unloaded"
else
echo "no module to unload"
echo " maybe it worked"
fi
### Load Delta 66 hardware
pactl load-module module-alsa-sink sink_name=delta_out device=hw:M66 format=s24le channels=10 channel_map=left,right,aux0,aux1,aux2,aux3,aux4,aux5,aux6,aux7
pactl load-module module-alsa-source source_name=delta_in device=hw:M66 format=s24le channels=12 channel_map=left,right,aux0,aux1,aux2,aux3,aux4,aux5,aux6,aux7,aux8,aux9
the pactl lines are one line each with no wrapping
Now what I'd like to do is remap so the first two channel are aux0 & aux1, so
audio is routed in on aux0 and aux1 by default.
Does PA always take the first two channels no matter what, or could I do
something like
channel_map=aux0,aux1,left,right,aux2,aux3....etc so the used channels are aux0
& aux1
Thanks
--
--
Best wishes / 73
Richard Bown
e-mail: richard at g8jvm.com
Mail now hosted by SimplyMailSolutions
Please avoid using old e-mail address of richard.bown at blueyonder.co.uk
nil carborundum a illegitemis
##################################################################################
Ham Call G8JVM . OS Fedora FC17 x86_64 on a Dell Insiron N5030 laptop
Maidenhead QRA: IO82SP38, LAT. 52 39.720' N LONG. 2 28.171 W ( degs+mins )
QRV VHF 6mtrs 200W, 4 mtrs 150W, 2mtrs 350W, 70cms 200W
Microwave 23 cms 140W, 13 cms 100W, 6 cms 0W & 3cms 5W
##################################################################################
More information about the pulseaudio-discuss
mailing list