[alsa-devel] How to retrieve the final data being played by HW

Mark Brown broonie at opensource.wolfsonmicro.com
Thu Apr 29 11:19:58 CEST 2010

On Thu, Apr 29, 2010 at 05:15:38PM +0800, Yu Hang wrote:

> For example, the 1st instance had mixes the data into destination 
> buffer, but 2nd instance haven't complete the mix operation. Would the 
> data in destination buffer be playing by HW?
> Or there is some mechanism to guarantee the data will be played after 
> all mix operation is done.

You need to ensure that the user configures the plugin stack
appropriately to ensure that your plugin is the last one that's run, you
can't do this purely from within your plugin.  Even if that's done you'd
also need to rely on them not configuring any DSP in the hardware which
would disrupt things.

More information about the Alsa-devel mailing list