Navigation
API > API/Runtime > API/Runtime/SignalProcessing
Linear resampler working on multichannel buffers
| Name | FMultichannelLinearResampler |
| Type | class |
| Header File | /Engine/Source/Runtime/SignalProcessing/Public/DSP/MultichannelLinearResampler.h |
| Include Path | #include "DSP/MultichannelLinearResampler.h" |
Syntax
class FMultichannelLinearResampler
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FMultichannelLinearResampler
(
int32 InNumChannels |
Construct a linear resampler. | DSP/MultichannelLinearResampler.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| MaxFrameRatio | const float | DSP/MultichannelLinearResampler.h | |
| MinFrameRatio | const float | DSP/MultichannelLinearResampler.h | |
| MinFrameRatioFrameDelta | float | DSP/MultichannelLinearResampler.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CurrentFrameRatio | float | DSP/MultichannelLinearResampler.h | ||
| CurrentInputFrameIndex | float | DSP/MultichannelLinearResampler.h | ||
| FrameRatioFrameDelta | float | DSP/MultichannelLinearResampler.h | ||
| NumChannels | int32 | DSP/MultichannelLinearResampler.h | ||
| NumFramesToInterpolate | int32 | DSP/MultichannelLinearResampler.h | ||
| TargetFrameRatio | float | DSP/MultichannelLinearResampler.h | ||
| WorkBuffer | Audio::FAlignedFloatBuffer | DSP/MultichannelLinearResampler.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/MultichannelLinearResampler.h | |
float MapInputFrameToOutputFrame
(
float InInputFrameIndex |
Translates an input frame index to an output frame index given the state of the resampler. | DSP/MultichannelLinearResampler.h | |
float MapOutputFrameToInputFrame
(
float InOutputFrameIndex |
Translates an output frame index to an input frame index given the state of the resampler. | DSP/MultichannelLinearResampler.h | |
int32 ProcessAndConsumeAudio
(
FMultichannelCircularBuffer& InAudio, |
Consumes audio from the input buffer and produces audio in the output buffer. | DSP/MultichannelLinearResampler.h | |
int32 ProcessAndConsumeAudio
(
FMultichannelCircularBuffer& InAudio, |
DSP/MultichannelLinearResampler.h | ||
void SetFrameRatio
(
float InRatio, |
Sets the number of input frames to read per an output frame. | DSP/MultichannelLinearResampler.h |