All pastes #775278 Raw Edit

Something

public text v1 · immutable
·published 2007-11-15 15:21 UTC
rendered paste body
pcm.multi {
    type multi;
    # Soundcard 1
    slaves.a.pcm "hw:0,0";      # hardware address
    slaves.a.channels 2;        # channels
    # Soundcard 2
    slaves.b.pcm "hw:1,0";      # hardware address
    slaves.b.channels 4;        # channels
    # bindings for soundcard 1
    bindings.0.slave a;         # center
    bindings.0.channel 0;
    bindings.1.slave a;         # subwoofer
    bindings.1.channel 1;
    # bindings for soundcard 2
    bindings.2.slave b;         # front left
    bindings.2.channel 0;
    bindings.3.slave b;         # front right
    bindings.3.channel 1;
    bindings.4.slave b;         # headphone left
    bindings.4.channel 2;
    bindings.5.slave b;         # headphone right
    bindings.5.channel 3;
}

ctl.multi {
    type hw;
    card 0;
}

pcm.ttable {
    type route;
    slave.pcm "multi";
    ttable.0.0 1;
    ttable.1.1 1;
    ttable.2.2 1;
    ttable.3.3 1;
    ttable.4.4 1;
    ttable.5.5 1;
}

ctl.ttable {
    type hw;
    card 0;
}

pcm.sound {
    type plug
    slave {
        pcm "multi"
        rate 48000
        channels 6
    }
    ttable.4.0 1    # channel 4; speaker 0; volume 100%
    ttable.5.1 1    # channel 5; speaker 1; volume 100% 
    ttable.2.2 1    # channel 2; speaker 2; volume 100%  
    ttable.3.3 1    # channel 3; speaker 3; volume 100%   
    ttable.0.4 1    # channel 0; speaker 4; volume 100%  
    ttable.1.5 1    # channel 1; speaker 5; volume 100%
}