IAudioEncoder::PushAudio

Call this function when audio is available.

Windows
MacOS
Linux

References

Module

SignalProcessing

Header

/Engine/Source/Runtime/SignalProcessing/Public/DSP/Encoders/IAudioEncoder.h

Include

#include "DSP/Encoders/IAudioEncoder.h"

Source

/Engine/Source/Runtime/SignalProcessing/Private/IAudioEncoder.cpp

Syntax

bool PushAudio
(
    const float * InBuffer,
    int32 NumSamples,
    bool bEncodeIfPossible
)

Remarks

Call this function when audio is available. If you would like to handle compression on a separate thread or call, Call this function with bEncodeIfPossible set to false. Returns true if audio was successfully pushed, false, if the internal buffer is full.

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