Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

ddd

By: a guest on Feb 16th, 2010  |  syntax: None  |  size: 1.84 KB  |  hits: 32  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  2. # Native Instruments :: Audio4DJ ALSA Configuration
  3. # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  4. #
  5. #    device           channels           ports
  6. #    --------       ---             ---------
  7. #    Audio4DJ_A         2               12xx
  8. #    Audio4DJ_B         2               xx34
  9. #
  10. #    Audio4DJ           4               1234
  11.  
  12. #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  13. # Audio4DJ_(A-B) :: Raw 1x1 Stereo Devices
  14. # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  15. pcm.Audio4DJ_A { type plug; slave.pcm "hw:Audio4DJ,0,0"; }
  16. pcm.Audio4DJ_B { type plug; slave.pcm "hw:Audio4DJ,0,1"; }
  17.  
  18.  
  19. # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  20. # Audio4DJ :: Multi 2x2 Stereo Device (Ports 1-4, Channels A+B)
  21. # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  22. pcm.Audio4DJ {
  23.         type multi
  24.  
  25.         # bind hardware devices
  26.         slaves.a.pcm Audio4DJ_A
  27.         slaves.a.channels 2
  28.         slaves.b.pcm Audio4DJ_B
  29.         slaves.b.channels 2
  30.  
  31.         # bind channels to virtual device
  32.         bindings.0.slave a
  33.         bindings.0.channel 0
  34.         bindings.1.slave a
  35.         bindings.1.channel 1
  36.         bindings.2.slave b
  37.         bindings.2.channel 0
  38.         bindings.3.slave b
  39.         bindings.3.channel 1
  40. }
  41.  
  42.  
  43. ctl.Audio4DJ {
  44.         type hw;
  45.         card 0;
  46. }
  47.  
  48. # This creates a 4 channel interleaved pcm stream based on
  49. # the multi device. JACK will work with this one.
  50.  
  51. pcm.ttable {
  52.         type route;
  53.         slave.pcm "Audio4DJ";
  54.         slave.channels 4;
  55.         ttable.0.0 1;
  56.         ttable.1.1 1;
  57.         ttable.2.2 1;
  58.         ttable.3.3 1;
  59. }
  60. # see above.
  61. ctl.ttable {
  62.         type hw;
  63.         card 0;
  64. }