Navigation
API > API/Runtime > API/Runtime/SignalProcessing
References
Module | SignalProcessing |
Header | /Engine/Source/Runtime/SignalProcessing/Public/SampleBuffer.h |
Include | #include "SampleBuffer.h" |
Syntax
template<class SampleType>
class TSampleBuffer
Remarks
TSampleBuffer
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
|||
![]() |
TSampleBuffer
(
const TSampleBuffer& Other |
||
![]() |
TSampleBuffer
(
const FAlignedFloatBuffer& InData, |
||
![]() |
TSampleBuffer
(
const float* InBufferPtr, |
||
![]() |
TSampleBuffer
(
const int16* InBufferPtr, |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | Append
(
const OtherSampleType* InputBuffer, |
Append audio data to internal buffer of different sample type of this sample buffer. |
![]() |
void | Append
(
const OtherSampleType* InputBuffer, |
Overload of Append that also sets the number of channels and sample rate. |
![]() |
void | Clamp
(
float Ceiling |
|
![]() |
void | Copy from a container of the same element type | |
![]() ![]() |
TArrayView< const SampleType > | GetArrayView () |
|
![]() |
TArrayView< SampleType > | GetArrayView () |
|
![]() ![]() |
float | GetAudioFrameAtFractionalIndex
(
float InIndex, |
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
(
float InPhase, |
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
(
float InTimeSec, |
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 SampleType * | GetData () |
Gets the raw PCM data of the sound wave. |
![]() ![]() |
int32 | Gets the number of channels of the sound wave. | |
![]() ![]() |
int32 | GetNumFrames () |
Gets the number of frames of the sound wave. |
![]() ![]() |
int32 | Gets the number of samples of the sound wave. | |
![]() ![]() |
float | ||
![]() ![]() |
int32 | Gets the sample rate of the sound wave. | |
![]() |
void | MixBufferToChannels
(
int32 InNumChannels |
|
![]() |
void | Reset () |
|
![]() |
void | SetNumFrames
(
int32 InNumFrames |
|
![]() |
void | ZeroPad
(
int32 NumFramesToAppend |
Appends zeroes to the end of this buffer. |
Operators
Type | Name | Description | |
---|---|---|---|
![]() |
TSampleBuffer & | operator=
(
const TSampleBuffer< OtherSampleType >& Other |
SampleType converting assignment operator: |
![]() |
TSampleBuffer & | operator=
(
const TSampleBuffer& Other |
Vanilla assignment operator: |