|
| | FSampleRateConverter () |
| |
| virtual | ~FSampleRateConverter () |
| |
| virtual void | Init (const float InSampleRateRatio, const int32 InNumChannels) override |
| |
| virtual void | SetSampleRateRatio (const float InSampleRateRatio, const int32 NumInterpolationFrames) override |
| |
| template<typename T > |
| int32 | ProcessChunkImpl (const T *InBufferChunk, const int32 InNumSamples, const int32 RequestedFrames, TArray< float > &OutBuffer) |
| |
| template<typename T > |
| int32 | ProcessFullbufferImpl (const T *InBuffer, const int32 InNumSamples, TArray< float > &OutBuffer) |
| |
| virtual int32 | ProcessChunk (const int16 *BufferChunk, const int32 NumSamples, const int32 RequestedFrames, TArray< float > &OutBuffer) override |
| |
| virtual int32 | ProcessChunk (const float *BufferChunk, const int32 NumSamples, const int32 RequestedFrames, TArray< float > &OutBuffer) override |
| |
| virtual int32 | ProcessFullbuffer (const int16 *InBuffer, const int32 InNumSamples, TArray< float > &OutBuffer) override |
| |
| virtual int32 | ProcessFullbuffer (const float *InBuffer, const int32 InNumSamples, TArray< float > &OutBuffer) override |
| |
| virtual | ~ISampleRateConverter () |
| |
◆ FSampleRateConverter()
| Audio::FSampleRateConverter::FSampleRateConverter |
( |
| ) |
|
|
inline |
◆ ~FSampleRateConverter()
| virtual Audio::FSampleRateConverter::~FSampleRateConverter |
( |
| ) |
|
|
inlinevirtual |
◆ Init()
| virtual void Audio::FSampleRateConverter::Init |
( |
const float |
InSampleRateRatio, |
|
|
const int32 |
InNumChannels |
|
) |
| |
|
inlineoverridevirtual |
◆ ProcessChunk() [1/2]
◆ ProcessChunk() [2/2]
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.
- Parameters
-
| BufferChunk | Input audio buffer chunk |
| NumInputSamples | Number of input samples. |
| RequestedFrames | Number of frames requested to process |
| OutBuffer | The output buffer of converted audio. |
- Returns
- Number of frames generated.
Implements Audio::ISampleRateConverter.
◆ ProcessChunkImpl()
| int32 Audio::FSampleRateConverter::ProcessChunkImpl |
( |
const T * |
InBufferChunk, |
|
|
const int32 |
InNumSamples, |
|
|
const int32 |
RequestedFrames, |
|
|
TArray< float > & |
OutBuffer |
|
) |
| |
|
inline |
◆ ProcessFullbuffer() [1/2]
◆ ProcessFullbuffer() [2/2]
Given an input buffer, the output buffer is fully sample-rate converted.
- Parameters
-
| InBuffer | Input audio buffer |
| InNumSamples | Number of input samples. |
| OutBuffer | The output buffer of converted audio. |
- Returns
- Number of frames generated.
Implements Audio::ISampleRateConverter.
◆ ProcessFullbufferImpl()
| int32 Audio::FSampleRateConverter::ProcessFullbufferImpl |
( |
const T * |
InBuffer, |
|
|
const int32 |
InNumSamples, |
|
|
TArray< float > & |
OutBuffer |
|
) |
| |
|
inline |
◆ SetSampleRateRatio()
| virtual void Audio::FSampleRateConverter::SetSampleRateRatio |
( |
const float |
InSampleRateRatio, |
|
|
const int32 |
NumInterpolationFrames |
|
) |
| |
|
inlineoverridevirtual |
◆ bUsePreviousChunkFrame
| bool Audio::FSampleRateConverter::bUsePreviousChunkFrame |
|
protected |
◆ CurrentFrameIndex
| int Audio::FSampleRateConverter::CurrentFrameIndex |
|
protected |
◆ CurrentSampleRatioFrameTick
| int32 Audio::FSampleRateConverter::CurrentSampleRatioFrameTick |
|
protected |
◆ FrameAlpha
| float Audio::FSampleRateConverter::FrameAlpha |
|
protected |
◆ NextFrameIndex
| int Audio::FSampleRateConverter::NextFrameIndex |
|
protected |
◆ NumChannels
| int32 Audio::FSampleRateConverter::NumChannels |
|
protected |
◆ NumSampleRatioFrameTicks
| int32 Audio::FSampleRateConverter::NumSampleRatioFrameTicks |
|
protected |
◆ PreviousChunkFrame
| TArray<float> Audio::FSampleRateConverter::PreviousChunkFrame |
|
protected |
◆ SampleRateRatio
| float Audio::FSampleRateConverter::SampleRateRatio |
|
protected |
◆ SampleRatioDelta
| float Audio::FSampleRateConverter::SampleRatioDelta |
|
protected |
◆ TargetSampleRateRatio
| float Audio::FSampleRateConverter::TargetSampleRateRatio |
|
protected |
The documentation for this class was generated from the following file: