
ddd
By: a guest on
Feb 16th, 2010 | syntax:
None | size: 1.84 KB | hits: 32 | expires: Never
#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
# Native Instruments :: Audio4DJ ALSA Configuration
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
# device channels ports
# -------- --- ---------
# Audio4DJ_A 2 12xx
# Audio4DJ_B 2 xx34
#
# Audio4DJ 4 1234
#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
# Audio4DJ_(A-B) :: Raw 1x1 Stereo Devices
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
pcm.Audio4DJ_A { type plug; slave.pcm "hw:Audio4DJ,0,0"; }
pcm.Audio4DJ_B { type plug; slave.pcm "hw:Audio4DJ,0,1"; }
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Audio4DJ :: Multi 2x2 Stereo Device (Ports 1-4, Channels A+B)
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
pcm.Audio4DJ {
type multi
# bind hardware devices
slaves.a.pcm Audio4DJ_A
slaves.a.channels 2
slaves.b.pcm Audio4DJ_B
slaves.b.channels 2
# bind channels to virtual device
bindings.0.slave a
bindings.0.channel 0
bindings.1.slave a
bindings.1.channel 1
bindings.2.slave b
bindings.2.channel 0
bindings.3.slave b
bindings.3.channel 1
}
ctl.Audio4DJ {
type hw;
card 0;
}
# This creates a 4 channel interleaved pcm stream based on
# the multi device. JACK will work with this one.
pcm.ttable {
type route;
slave.pcm "Audio4DJ";
slave.channels 4;
ttable.0.0 1;
ttable.1.1 1;
ttable.2.2 1;
ttable.3.3 1;
}
# see above.
ctl.ttable {
type hw;
card 0;
}