Re: Fwd: How to split a single multi channel stream into separate streams

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

 



Hi Delio!

I'm not at my computer so I cannot give you proper example, but I just wanted to tell you it can be done using the dshare PCM. 

The basic way is to use is to create a PCM of type dshare for each set of channels you want to pick from the multichannel hw PCM. Each of them need the same unique ID so alsa knows they are part of a set. 
In general dshare is very similar to dsnoop and dmix. 

Hope this helps at least as a basis for googling (typically "asoundrc" and "dshare" should get you pretty far along the way). 


Regards,
Anders



6 nov 2013 kl. 09:46 skrev Delio Brignoli <dbrignoli@xxxxxxxxxxxxxxxx>:

> Hello All,
> 
> Can anyone help with the issue stated below, point me to an existing example or just confirm it cannot be done?
> 
> Thanks
> --
> Delio
> 
> Begin forwarded message:
>> From: Delio Brignoli <dbrignoli@xxxxxxxxxxxxxxxx>
>> Subject:  How to split a single multi channel stream into separate streams
>> Date: November 4, 2013 3:24:41 PM GMT+01:00
>> To: alsa-user@xxxxxxxxxxxxxxxxxxxxx
>> 
>> Hello All,
>> 
>> I have a card that exposes a single 8 channel PCM stream and I am wondering if I could use asoundrc to create a 'virtual' card with, for instance, 4 stereo PCM streams. I know I can use asoundrc to create a virtual multichannel stream from lower channel count streams, but is it possible to do the opposite? I did read all the documentation related to asoundrc I could find but I am still none the wiser.
>> 
>> Thanks
>> --
>> Delio Brignoli
>> AudioScience Inc
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> November Webinars for C, C++, Fortran Developers
> Accelerate application performance with scalable programming models. Explore
> techniques for threading, error checking, porting, and tuning. Get the most 
> from the latest Intel processors and coprocessors. See abstracts and register
> http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
> _______________________________________________
> Alsa-user mailing list
> Alsa-user@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/alsa-user

------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user




[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux