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