engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | Public 属性 | 所有成员列表
FSLESSoundBuffer类 参考

OpenSLES implementation of FSoundBuffer, containing the wave data and format information. 更多...

#include <AndroidAudioDevice.h>

继承自 FSoundBuffer .

Public 成员函数

 FSLESSoundBuffer (FSLESAudioDevice *AudioDevice)
 Constructor 更多...
 
int GetRTBufferSize (void)
 Returns the size for a real time/streaming buffer based on decompressor
 
int GetSize (void)
 Returns the size of this buffer in bytes. 更多...
 
virtual bool ReadCompressedData (uint8 *Destination, int32 NumFramesToDecode, bool bLooping) override
 Decompresses a chunk of compressed audio to the destination memory 更多...
 
void Seek (const float SeekTime)
 Sets the point in time within the buffer to the specified time If the time specified is beyond the end of the sound, it will be set to the end 更多...
 
 ~FSLESSoundBuffer (void)
 Destructor 更多...
 

静态 Public 成员函数

static FSLESSoundBuffer * CreateNativeBuffer (FSLESAudioDevice *AudioDevice, USoundWave *Wave)
 Static function used to create an Audio buffer and upload decompressed ogg vorbis data to. 更多...
 
static FSLESSoundBuffer * CreateProceduralBuffer (FSLESAudioDevice *AudioDevice, USoundWave *Wave)
 Static function used to create an Audio buffer and dynamically upload procedural data to. 更多...
 
static FSLESSoundBuffer * CreateQueuedBuffer (FSLESAudioDevice *AudioDevice, USoundWave *Wave)
 Static function used to create a buffer and dynamically upload decompressed ogg vorbis data to. 更多...
 
static FSLESSoundBuffer * CreateStreamBuffer (FSLESAudioDevice *AudioDevice, USoundWave *Wave)
 Static function used to create a buffer and stream data directly off disk as needed 更多...
 
static FSLESSoundBuffer * Init (FSLESAudioDevice *, USoundWave *)
 Static function used to create a buffer. 更多...
 

Public 属性

uint8 * AudioData
 Data
 
FSLESAudioDevice * AudioDevice
 Audio device this buffer is attached to
 
int BufferSize
 Number of bytes stored in OpenAL, or the size of the ogg vorbis data
 
class ICompressedAudioInfo * DecompressionState
 Wrapper to handle the decompression of audio codecs
 
ESoundFormat Format
 Format of data to be received by the source
 
int SampleRate
 Sample rate of the ogg vorbis data - typically 44100 or 22050
 

详细描述

OpenSLES implementation of FSoundBuffer, containing the wave data and format information.

构造及析构函数说明

◆ FSLESSoundBuffer()

FSLESSoundBuffer::FSLESSoundBuffer ( FSLESAudioDevice *  AudioDevice)

Constructor

参数
AudioDeviceaudio device this sound buffer is going to be attached to.

◆ ~FSLESSoundBuffer()

FSLESSoundBuffer::~FSLESSoundBuffer ( void  )

Destructor

Frees wave data and detaches itself from audio device.

成员函数说明

◆ CreateNativeBuffer()

static FSLESSoundBuffer * FSLESSoundBuffer::CreateNativeBuffer ( FSLESAudioDevice *  AudioDevice,
USoundWave *  Wave 
)
static

Static function used to create an Audio buffer and upload decompressed ogg vorbis data to.

参数
WaveUSoundWave to use as template and wave source
AudioDeviceaudio device to attach created buffer to
返回
FSLESSoundBuffer pointer if buffer creation succeeded, NULL otherwise

◆ CreateProceduralBuffer()

static FSLESSoundBuffer * FSLESSoundBuffer::CreateProceduralBuffer ( FSLESAudioDevice *  AudioDevice,
USoundWave *  Wave 
)
static

Static function used to create an Audio buffer and dynamically upload procedural data to.

参数
InWaveUSoundWave to use as template and wave source
AudioDeviceaudio device to attach created buffer to
返回
FSLESSoundBuffer pointer if buffer creation succeeded, NULL otherwise

◆ CreateQueuedBuffer()

static FSLESSoundBuffer * FSLESSoundBuffer::CreateQueuedBuffer ( FSLESAudioDevice *  AudioDevice,
USoundWave *  Wave 
)
static

Static function used to create a buffer and dynamically upload decompressed ogg vorbis data to.

参数
InWaveUSoundWave to use as template and wave source
AudioDeviceaudio device to attach created buffer to
返回
FSLESSoundBuffer pointer if buffer creation succeeded, NULL otherwise

◆ CreateStreamBuffer()

static FSLESSoundBuffer * FSLESSoundBuffer::CreateStreamBuffer ( FSLESAudioDevice *  AudioDevice,
USoundWave *  Wave 
)
static

Static function used to create a buffer and stream data directly off disk as needed

参数
InWaveUSoundWave to use as template and wave source
AudioDeviceaudio device to attach created buffer to
返回
FSLESSoundBuffer pointer if buffer creation succeeded, NULL otherwise

◆ GetSize()

int FSLESSoundBuffer::GetSize ( void  )
inline

Returns the size of this buffer in bytes.

返回
Size in bytes

◆ Init()

static FSLESSoundBuffer * FSLESSoundBuffer::Init ( FSLESAudioDevice *  ,
USoundWave *   
)
static

Static function used to create a buffer.

参数
InWaveUSoundWave to use as template and wave source
AudioDeviceAudio device to attach created buffer to
返回
FSLESSoundBuffer pointer if buffer creation succeeded, NULL otherwise

◆ ReadCompressedData()

virtual bool FSLESSoundBuffer::ReadCompressedData ( uint8 *  Destination,
int32  NumFramesToDecode,
bool  bLooping 
)
overridevirtual

Decompresses a chunk of compressed audio to the destination memory

参数
DestinationMemory to decompress to
bLoopingWhether to loop the sound seamlessly, or pad with zeroes
返回
Whether the sound looped or not

◆ Seek()

void FSLESSoundBuffer::Seek ( const float  SeekTime)

Sets the point in time within the buffer to the specified time If the time specified is beyond the end of the sound, it will be set to the end

参数
SeekTimeTime in seconds from the beginning of sound to seek to

该类的文档由以下文件生成: