arrow_right Table of Contents

Other Documentation

Wwise SDK 2021.1.10

◆ RegisterCaptureCallback()

AKSOUNDENGINE_API AKRESULT AK::SoundEngine::RegisterCaptureCallback ( AkCaptureCallbackFunc  in_pfnCallback,
AkOutputDeviceID  in_idOutput = AK_INVALID_OUTPUT_DEVICE_ID,
void *  in_pCookie = NULL 

Registers a callback used for retrieving audio samples. The callback will be called from the audio thread during real-time rendering and from the main thread during offline rendering.

See also
in_pfnCallback Capture callback function to register.
in_idOutput The audio device specific id, return by AK::SoundEngine::AddOutput or AK::SoundEngine::GetOutputID
in_pCookie Callback cookie that will be sent to the callback function along with additional information