FMediaAudioResampler::Generate

Generate the next frame of audio.

Windows
MacOS
Linux

References

Module

MediaUtils

Header

/Engine/Source/Runtime/MediaUtils/Public/MediaAudioResampler.h

Include

#include "MediaAudioResampler.h"

Source

/Engine/Source/Runtime/MediaUtils/Private/MediaAudioResampler.cpp

Syntax

uint32 Generate
(
    float * Output,
    FTimespan & OutTime,
    const uint32 FramesRequested,
    float Rate,
    FTimespan Time,
    FMediaAudioSampleSource & SampleSource,
    uint32 & JumpFrame
)

Remarks

Generate the next frame of audio.

Returns

The actual number of frames returned.

Parameters

Parameter

Description

Output

The output sample buffer (will be incremented by the number of sample values written).

OutTime

The time of the first output frame that was returned.

FramesRequested

The maximum number of frames to get.

Rate

The current play rate.

Time

The current play time.

SampleSource

The object that provides more audio samples if needed.

JumpFrame

Frame that a jump in time occured on.

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