ISampleRateConverter::ProcessChunk

Process chunks of audio at a time.

Windows
MacOS
Linux

References

Module

SignalProcessing

Header

/Engine/Source/Runtime/SignalProcessing/Public/DSP/SampleRateConverter.h

Include

#include "DSP/SampleRateConverter.h"

Syntax

int32 ProcessChunk
(
    const int16 * BufferChunk,
    const int32 NumInputSamples,
    const int32 RequestedFrames,
    TArray< float > & OutBuffer
)

Remarks

Process chunks of audio at a time. Saves state so can properly handle buffer boundaries. Use with Reset() to reset internal state before starting realtime SRC.

Returns

Number of frames generated.

Parameters

Parameter

Description

BufferChunk

Input audio buffer chunk

NumInputSamples

Number of input samples.

RequestedFrames

Number of frames requested to process

OutBuffer

The output buffer of converted audio.

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