Re: HDSP 9632 - Just pcm0p !?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Oct 26, 2009 at 2:32 PM, Klaus Schulz <kls.schlz@xxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxxx
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-user


[Index of Archives]     [Linux Sound]     [ALSA Users]     [Pulse Audio]     [ALSA Devel]     [Sox Users]     [Linux Media]     [Kernel]     [Photo Sharing]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux