Version

menu_open
Wwise SDK 2023.1.5

◆ Consume()

virtual void AK::IAkSinkPlugin::Consume ( AkAudioBuffer in_pInputBuffer,
AkRamp  in_gain 
)
pure virtual

Present an audio buffer to the sink. The audio buffer is in the native format of the sound engine (typically float, deinterleaved), as specified by io_rFormat passed to Init(). It is up to the plugin to transform it into a format that is compatible with its output. Note that Consume() is not called if the output for this frame consists of silence. Plugins should detect this in OnFrameEnd().

See also
Parameters
in_pInputBufferInput audio buffer data structure. Plugins should avoid processing data in-place.
in_gainVolume gain to apply to this input (prev corresponds to the beginning, next corresponds to the end of the buffer).

Was this page helpful?

Need Support?

Questions? Problems? Need more info? Contact us, and we can help!

Visit our Support page

Tell us about your project. We're here to help.

Register your project and we'll help you get started with no strings attached!

Get started with Wwise