Remarks
Register to receive notifications when local audio buffers are about to be encoded and sent. This gives you access to the audio data about to be sent, allowing for example the implementation of custom filters/effects. If the returned NotificationId is valid, you must call EOS_RTCAudio_RemoveNotifyAudioBeforeSend when you no longer wish to have your CompletionDelegate called.
Return Value
Notification ID representing the registered callback if successful, an invalid NotificationId if not
See Also
EOS_INVALID_NOTIFICATIONID, EOS_RTCAudio_RemoveNotifyAudioBeforeSend
Parameters
EOS_RTCAudio_AddNotifyAudioBeforeSend
Parameter Type And Name | Usage Information |
---|---|
EOS_HRTCAudio Handle | |
const EOS_RTCAudio_AddNotifyAudioBeforeSendOptions* Options | |
void* ClientData | Arbitrary data that is passed back in the CompletionDelegate |
const EOS_RTCAudio_OnAudioBeforeSendCallback CompletionDelegate | The callback to be fired when a presence change occurs |