Navigation
API > API/Runtime > API/Runtime/AudioExtensions > API/Runtime/AudioExtensions/IAudioEndpoint
Description
METHODS USED BY IMPLEMENTATIONS OF IAudioEndpoint: This is used by the IAudioEndpoint implementation to poll buffered audio to process or send to the endpoint. Note that this is NOT thread safe if EndpointRequiresCallback() is overridden to return true. If that is the case, use an override of OnAudioCallback instead.
| Name | PopAudio |
| Type | function |
| Header File | /Engine/Source/Runtime/AudioExtensions/Public/IAudioEndpoint.h |
| Include Path | #include "IAudioEndpoint.h" |
| Source | /Engine/Source/Runtime/AudioExtensions/Private/IAudioEndpoint.cpp |
int32 PopAudio
(
float * OutAudio,
int32 NumSamples
)
[out] the number of samples polled from this thing.
Parameters
| Name | Remarks |
|---|---|
| OutAudio | Pointer to already allocated buffer of floats, at least NumSamples long. This will be filled with interleaved audio based on GetNumChannels(). |
| NumSamples | The number of samples to fill OutAudio with. |