IAudioEndpoint::OnAudioCallback

For endpoints that override EndpointRequiresCallback to return true, this callback will be called every ([GetDesiredNumFrames()](API\Runtime\AudioExtensions\IAudioEndpoint\GetDesiredNumFrames) / [GetSampleRate()](API\Runtime\AudioExtensions\IAudioEndpoint\GetSampleRate)) seconds.

Windows
MacOS
Linux

References

Module

AudioExtensions

Header

/Engine/Source/Runtime/AudioExtensions/Public/IAudioEndpoint.h

Include

#include "IAudioEndpoint.h"

Syntax

virtual bool OnAudioCallback
(
    const TArrayView< const float > & InAudio,
    const int32 & NumChannels,
    const IAudioEndpointSettingsProxy * InSettings
)

Remarks

For endpoints that override EndpointRequiresCallback to return true, this callback will be called every (GetDesiredNumFrames() / GetSampleRate()) seconds.

Returns

whether the endpoint is still valid. If this returns false, DisconnectAllInputs will be called automatically.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss