On Mon, Oct 26, 2009 at 2:32 PM, Klaus Schulz <kls.schlz(a)googlemail.com> wrote:
Pretty simple - You IMO still did not answer the
question. How about an
example for 2) ?
For now the only way to sent a stream to e.g. the out3/4 of HDSPmixer
without going for 1)2)3) has been a multichannel wav.
you've opened a device that has N channels. you have to send it N
channels of data. there is no way around this. ALSA has no API for
"write to channel 1", it only has "write N frames of audio". in fact,
i don't know of any audio API that has such a mechanism.
if you don't want to do that, then you need to configure some
pseudo-devices that have the number of channels you want, and that use
the route plugin to map the pseudo-device's channels to the "real"
channels in the hw device. then open that device with your
application.