Module |
|
Header |
/Engine/Source/Runtime/SignalProcessing/Public/DSP/SampleBufferReader.h |
Include |
#include "DSP/SampleBufferReader.h" |
class FSampleBufferReader
Name | Description | ||
---|---|---|---|
|
double |
AlphaLerp |
|
|
float |
BasePitch |
The current frame alpha. |
|
bIsFinished |
||
|
bIsScrubMode |
||
|
BufferNumChannels |
||
|
BufferNumFrames |
||
|
BufferNumSamples |
||
|
const int16 ... |
BufferPtr |
|
|
BufferSampleRate |
||
|
bWrap |
||
|
double |
CurrentBufferFrameIndexInterpolated |
|
|
CurrentFrameIndex |
||
|
float |
CurrentScrubWidthSec |
|
|
float |
CurrentSeekTime |
|
|
CurrentSeekType |
||
|
float |
DeviceSampleRate |
|
|
FadeFrames |
||
|
float |
FadeIncrement |
|
|
float |
FadeValue |
|
|
NextFrameIndex |
||
|
Pitch |
||
|
float |
PitchScale |
|
|
float |
PlaybackProgress |
|
|
double |
ScrubAnchorFrame |
|
|
double |
ScrubMaxFrame |
|
|
double |
ScrubMinFrame |
|
|
double |
ScrubWidthFrames |
Name | Description | |
---|---|---|
|
FSampleBufferReader() |
Name | Description | |
---|---|---|
|
~FSampleBufferReader() |
Name | Description | ||
---|---|---|---|
|
ClearBuffer() |
Clears current buffer and resets state. |
|
|
Generate |
Generates the next block of audio. Returns true if it's no longer playing (reached end of the buffer and not set to wrap) |
|
|
GetNumChannels() |
Returns the number of channels of this buffer. |
|
|
GetNumFrames() |
Returns the number of frames of the buffer. |
|
|
float |
GetPlaybackProgress() |
Returns the current playback position in seconds. |
|
float |
GetSampleValue |
|
|
float |
GetSampleValueForChannel ( |
|
|
HasBuffer() |
Whether or not the buffer reader has a buffer. |
|
|
Init ( |
||
|
SeekTime ( |
Seeks the buffer the given time in seconds. Returns true if succeeded. |
|
|
SetBuffer |
This must be a completely loaded buffer. This buffer reader doesn't OWN the buffer memory. |
|
|
SetPitch ( |
Sets the pitch of the buffer reader. Can be negative. Will linearly interpolate over the given time value. |
|
|
SetScrubMode ( |
Puts the wave reader into scrub mode. |
|
|
SetScrubTimeWidth ( |
Sets the scrub width. The sound will loop between the scrub width region and the current frame. |
|
|
UpdateScrubMinAndMax() |
||
|
UpdateSeekFrame() |