FMediaAudioResampler

Choose your operating system:

Windows

macOS

Linux

References

Module

MediaUtils

Header

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

Include

#include "MediaAudioResampler.h"

Syntax

class FMediaAudioResampler

Constructors

Name Description

Public function

FMediaAudioResampler()

Default constructor.

Functions

Name Description

Protected function

void

 

ClearInput()

Clear the input samples.

Public function

void

 

Flush()

Flush the resampler.

Public function

uint32

 

Generate

(
    float* Output,
    FMediaTimeStamp& OutTime,
    const uint32 FramesRequested,
    float Rate,
    FTimespan Time,
    FMediaAudioSampleSource& SampleSou...,
    uint32& JumpFrame
)

Generate the next frame of audio.

Public function

void

 

Initialize

(
    const uint32 InOutputChannels,
    const uint32 InOutputSampleRate
)

Initialize the resampler.

Protected function

bool

 

SetInput

(
    const TSharedPtr< IMediaAudioSample...
)

Set the audio sample to be resampled.