Module |
|
Header |
/Engine/Source/Runtime/SignalProcessing/Public/SampleBuffer.h |
Include |
#include "SampleBuffer.h" |
template<class SampleType>
class TSampleBuffer
TSampleBuffer<class SampleType> This class owns an audio buffer. To convert between fixed Q15 buffers and float buffers, Use the assignment operator. Example: TSampleBuffer<float> AFloatBuffer; TSampleBuffer<int16> AnIntBuffer = AFloatBuffer;
Name | Description | |
---|---|---|
|
TSampleBuffer() |
|
|
TSampleBuffer ( |
|
|
TSampleBuffer ( |
|
|
TSampleBuffer |
|
|
TSampleBuffer |
Name | Description | |
---|---|---|
|
~TSampleBuffer() |
Name | Description | ||
---|---|---|---|
|
Append ( |
Append audio data to internal buffer of different sample type of this sample buffer. |
|
|
Append |
Overload of Append that also sets the number of channels and sample rate. |
|
|
Clamp ( |
||
|
CopyFrom |
Copy from a container of the same element type |
|
|
TArrayView< ... |
GetArrayView() |
|
|
TArrayView< ... |
GetArrayView() |
|
|
float |
GetAudioFrameAtFractionalIndex ( |
InIndex [0.0f, NumSamples - 1.0f] OutFrame is the multichannel output for one index value Returns InIndex wrapped between 0.0 and NumFrames |
|
float |
GetAudioFrameAtPhase ( |
InPhase [0, 1], wrapped, through duration of file (ignores sample rate) OutFrame is the multichannel output for one phase value Returns InPhase wrapped between 0.0 and 1.0 |
|
float |
GetAudioFrameAtTime ( |
InTimeSec, get the value of the buffer at the given time (uses sample rate) OutFrame is the multichannel output for one time value Returns InTimeSec wrapped between 0.0 and (NumSamples / SampleRate) |
|
const Sample... |
GetData() |
Gets the raw PCM data of the sound wave. |
|
GetNumChannels() |
Gets the number of channels of the sound wave. |
|
|
GetNumFrames() |
Gets the number of frames of the sound wave. |
|
|
GetNumSamples() |
Gets the number of samples of the sound wave. |
|
|
float |
GetSampleDuration() |
|
|
GetSampleRate() |
Gets the sample rate of the sound wave. |
|
|
MixBufferToChannels ( |
||
|
Reset() |
||
|
SetNumFrames ( |
||
|
ZeroPad ( |
Appends zeroes to the end of this buffer. |
Name | Description | ||
---|---|---|---|
|
TSampleBuffe... |
operator= ( |
SampleType converting assignment operator: |
|
TSampleBuffe... |
operator= ( |
Vanilla assignment operator: |