Attempt at implementing per-channel output setting in the sampler.

channel1_out=2 will cause output=0 in channel 1 to be directed to
the second output.