Navigation
API > API/Runtime > API/Runtime/SignalProcessing
Linear interpolating resampler which supports any number of channels of audio, interleaved or deinterleaved. To support different types of input and output objects, add a new "Process..." method which wraps around calls to ProcessAudioInternal().
| Name | FRuntimeResampler |
| Type | class |
| Header File | /Engine/Source/Runtime/SignalProcessing/Public/DSP/RuntimeResampler.h |
| Include Path | #include "DSP/RuntimeResampler.h" |
Syntax
class FRuntimeResampler
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FRuntimeResampler
(
int32 InNumChannels |
Construct a linear resampler. | DSP/RuntimeResampler.h |
Structs
| Name | Remarks |
|---|---|
| ResamplingParameters |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FPScale | const int32 | DSP/RuntimeResampler.h | |
| FPScaleFloat | const float | DSP/RuntimeResampler.h | |
| MaxFrameRatio | const float | DSP/RuntimeResampler.h | |
| MinFrameRatio | const float | DSP/RuntimeResampler.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CurrentFrameRatioFP | uint32 | DSP/RuntimeResampler.h | ||
| CurrentInputFrameIndexFP | int32 | DSP/RuntimeResampler.h | ||
| FrameRatioFrameDeltaFP | int32 | DSP/RuntimeResampler.h | ||
| NumFramesToInterpolate | int32 | DSP/RuntimeResampler.h | ||
| PreviousFrame | TArray< float, TInlineAllocator< 2 > > | DSP/RuntimeResampler.h | ||
| TargetFrameRatioFP | uint32 | DSP/RuntimeResampler.h | ||
| TempInputPointers | TArray< const float *, TInlineAllocator< 2 > > | DSP/RuntimeResampler.h | ||
| TempOutputPointers | TArray< float *, TInlineAllocator< 2 > > | DSP/RuntimeResampler.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int32 GetNumInputFramesNeededToProduceOutputFrames
(
int32 InNumOutputFrames |
Returns the minimum number of input frames needed to produce the desired number of output frames given the current state of the resampler. | DSP/RuntimeResampler.h | |
int32 GetNumOutputFramesProducedByInputFrames
(
int32 InNumInputFrames |
Returns the maximum number of output frames that can be produced from the provided number of input frames given the current state of the resampler. | DSP/RuntimeResampler.h | |
int32 ProcessCircularBuffer
(
FMultichannelCircularBuffer& InAudio, |
Consumes audio from the input buffer and produces audio in the output buffer. | DSP/RuntimeResampler.h | |
int32 ProcessCircularBuffer
(
FMultichannelCircularBuffer& InAudio, |
Consumes audio from the input buffer and produces audio in the output buffer. | DSP/RuntimeResampler.h | |
void ProcessInterleaved
(
TArrayView< const float > Input, |
Consumes audio in an interleaved channel format from the input buffer and produces audio in the output buffer. | DSP/RuntimeResampler.h | |
void Reset
(
int32 InNumChannels |
Reset the internal state of the resampler. | DSP/RuntimeResampler.h | |
void SetFrameRatio
(
float InRatio, |
Sets the number of input frames to read per an output frame. | DSP/RuntimeResampler.h |