#include <SoundWaveProxyReader.h>
FSoundWaveProxyReader reads a FWaveProxy and outputs 32 bit interleaved audio.
FSoundWaveProxyReader provides controls for looping and relevant frame index values.
◆ FSoundWaveProxyRef
◆ CanProduceMoreAudio()
| bool FSoundWaveProxyReader::CanProduceMoreAudio |
( |
| ) |
const |
Returns TRUE if the reader can produce audio (eg. has a valid decoder, it can still decode, etc.)
- Returns
- true on success, false on failure.
◆ ConformDecodeSize()
| uint32 FSoundWaveProxyReader::ConformDecodeSize |
( |
uint32 |
InMaxDesiredDecodeSizeInFrames | ) |
|
|
static |
◆ Create()
Create a wave proxy reader.
- Parameters
-
◆ GetFrameIndex()
| int32 FSoundWaveProxyReader::GetFrameIndex |
( |
| ) |
const |
|
inline |
Returns the index of the playhead within the complete wave.
◆ GetLoopEndFrameIndex()
| int32 FSoundWaveProxyReader::GetLoopEndFrameIndex |
( |
| ) |
const |
|
inline |
◆ GetLoopStartFrameIndex()
| int32 FSoundWaveProxyReader::GetLoopStartFrameIndex |
( |
| ) |
const |
|
inline |
◆ GetNumChannels()
| int32 FSoundWaveProxyReader::GetNumChannels |
( |
| ) |
const |
|
inline |
◆ GetNumFramesInLoop()
| int32 FSoundWaveProxyReader::GetNumFramesInLoop |
( |
| ) |
const |
|
inline |
◆ GetNumFramesInWave()
| int32 FSoundWaveProxyReader::GetNumFramesInWave |
( |
| ) |
const |
|
inline |
◆ GetSampleRate()
| float FSoundWaveProxyReader::GetSampleRate |
( |
| ) |
const |
|
inline |
◆ HasFailed()
| bool FSoundWaveProxyReader::HasFailed |
( |
| ) |
const |
|
inline |
Returns TRUE if the reader has encountered a decoder failure.
- Returns
- true if there is a failure, false if no failure.
◆ IsLooping()
| bool FSoundWaveProxyReader::IsLooping |
( |
| ) |
const |
|
inline |
Returns true if the audio will be looped, false otherwise.
◆ PopAudio()
Pops audio from reader and copies audio into OutBuffer. It returns the number of samples copied. Samples not written to will be set to zero.
Copies audio into OutBuffer. It returns the number of samples copied. Samples not written to will be set to zero.
◆ SeekToFrame()
| bool FSoundWaveProxyReader::SeekToFrame |
( |
uint32 |
InFrameNum | ) |
|
Seeks to position in wave at a specific frame.
- Parameters
-
| InFrameNum | - The specific frame to seek the playhead |
- Returns
- true on success, false on failure.
◆ SeekToTime()
| bool FSoundWaveProxyReader::SeekToTime |
( |
float |
InSeconds | ) |
|
Seeks to position in wave.
- Parameters
-
| InSeconds | - The location to seek the playhead |
- Returns
- true on success, false on failure.
◆ SetIsLooping()
| void FSoundWaveProxyReader::SetIsLooping |
( |
bool |
bInIsLooping | ) |
|
Set whether the reader should loop the audio or not.
◆ SetLoopDuration()
| void FSoundWaveProxyReader::SetLoopDuration |
( |
float |
InLoopDurationInSeconds | ) |
|
Sets the duration of the loop in seconds.
If the value is negative, the MaxLoopDurationInSeconds will be used which will effectively loop at the end of the file.
Sets the duration of the loop in seconds. If the value is negative, the loop duration consists of the entire file.
◆ SetLoopStartTime()
| void FSoundWaveProxyReader::SetLoopStartTime |
( |
float |
InLoopStartTimeInSeconds | ) |
|
Sets the beginning position of the loop.
◆ DecodeSizeQuantizationInFrames
| constexpr uint32 FSoundWaveProxyReader::DecodeSizeQuantizationInFrames = 128 |
|
staticconstexpr |
Some codecs have strict requirements on decode size. In order to be functional with all supported codecs, the decode size must be a multiple of 128.
◆ DefaultMinDecodeSizeInFrames
Minimum number of frames to decode per a call to the decoder.
◆ MaxLoopDurationInSeconds
| constexpr float FSoundWaveProxyReader::MaxLoopDurationInSeconds = 60.f * 60.f * 365.f * 10.f |
|
staticconstexpr |
Maximum duration of a loop.
10 years. ridiculously high. This exists to prevent floating point undefined overflow behavior if performing calculations with TNumericLimits<float>::Max().
◆ MinLoopDurationInSeconds
| constexpr float FSoundWaveProxyReader::MinLoopDurationInSeconds = 0.05f |
|
staticconstexpr |
Minimum duration of a loop.
The documentation for this class was generated from the following files: