Re: [LAU] HDSP 9632 - Just pcm0p !?

From: Paul Davis <paul@email-addr-hidden>
Date: Mon Oct 26 2009 - 20:41:24 EET

On Mon, Oct 26, 2009 at 2:32 PM, Klaus Schulz <kls.schlz@email-addr-hidden> 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.
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-user
Received on Tue Oct 27 00:15:02 2009

This archive was generated by hypermail 2.1.8 : Tue Oct 27 2009 - 00:15:02 EET