![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <AudioMixer.h>
Public Member Functions | |
| FOutputBuffer () | |
| ~FOutputBuffer ()=default | |
| AUDIOMIXERCORE_API void | Init (IAudioMixer *InAudioMixer, const int32 InNumSamples, const int32 InNumBuffers, const EAudioMixerStreamDataFormat::Type InDataFormat) |
| AUDIOMIXERCORE_API bool | MixNextBuffer () |
| AUDIOMIXERCORE_API TArrayView< const uint8 > | PopBufferData (int32 &OutBytesPopped) const |
| AUDIOMIXERCORE_API int32 | GetNumSamples () const |
| EAudioMixerStreamDataFormat::Type | GetFormat () const |
Class which wraps an output float buffer and handles conversion to device stream formats.
|
inline |
|
default |
|
inline |
Returns the format of the buffer.
| int32 Audio::FOutputBuffer::GetNumSamples | ( | ) | const |
Gets the number of frames of the buffer.
| void Audio::FOutputBuffer::Init | ( | IAudioMixer * | InAudioMixer, |
| const int32 | InNumSamples, | ||
| const int32 | InNumBuffers, | ||
| const EAudioMixerStreamDataFormat::Type | InDataFormat | ||
| ) |
Initialize the buffer with the given samples and output format.
| bool Audio::FOutputBuffer::MixNextBuffer | ( | ) |
Gets the next mixed buffer from the audio mixer. Returns false if our buffer is already full.
| TArrayView< const uint8 > Audio::FOutputBuffer::PopBufferData | ( | int32 & | OutBytesPopped | ) | const |
Gets the buffer data ptrs. Returns a TArrayView for the full buffer size requested, but in the case of an underrun, OutBytesPopped will be less that the size of the returned TArrayView.