版本

menu_open
Wwise SDK 2022.1.12

◆ 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.

返回
  • AK_Success when successful
  • AK_DeviceNotFound if the audio device ID doesn't match to a device in use.
  • AK_InvalidParameter when in_pfnCallback is null
  • AK_NotInitialized if the sound engine is not initialized at this time
参见
参数
in_pfnCallbackCapture callback function to register.
in_idOutputThe audio device specific id, return by AK::SoundEngine::AddOutput or AK::SoundEngine::GetOutputID
in_pCookieCallback cookie that will be sent to the callback function along with additional information

此页面对您是否有帮助?

需要技术支持?

仍有疑问?或者问题?需要更多信息?欢迎联系我们,我们可以提供帮助!

查看我们的“技术支持”页面

介绍一下自己的项目。我们会竭力为您提供帮助。

来注册自己的项目,我们帮您快速入门,不带任何附加条件!

开始 Wwise 之旅