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

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

#include <CoreAudioDevice.h>

继承自 FSoundBuffer .

Public 成员函数

 FCoreAudioSoundBuffer (FAudioDevice *AudioDevice, ESoundFormat SoundFormat)
 Constructor 更多...
 
int32 GetSize (void)
 Returns the size of this buffer in bytes. 更多...
 
void InitAudioStreamBasicDescription (UInt32 FormatID, USoundWave *Wave, bool bCheckPCMData)
 Setup an AudioStreamBasicDescription structure
 
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 更多...
 
 ~FCoreAudioSoundBuffer (void)
 Destructor 更多...
 

静态 Public 成员函数

static FCoreAudioSoundBuffer * CreateNativeBuffer (FCoreAudioDevice *CoreAudioDevice, USoundWave *Wave)
 Static function used to create a CoreAudio buffer and upload decompressed ogg vorbis data to. 更多...
 
static FCoreAudioSoundBuffer * CreatePreviewBuffer (FCoreAudioDevice *CoreAudioDevice, USoundWave *Wave, FCoreAudioSoundBuffer *Buffer)
 Static function used to create a CoreAudio buffer and upload raw PCM data to. 更多...
 
static FCoreAudioSoundBuffer * CreateProceduralBuffer (FCoreAudioDevice *CoreAudioDevice, USoundWave *Wave)
 Static function used to create a CoreAudio buffer and dynamically upload procedural data to. 更多...
 
static FCoreAudioSoundBuffer * CreateQueuedBuffer (FCoreAudioDevice *CoreAudioDevice, USoundWave *Wave)
 Static function used to create a CoreAudio buffer and dynamically upload decompressed ogg vorbis data to. 更多...
 
static FCoreAudioSoundBuffer * CreateStreamingBuffer (FCoreAudioDevice *CoreAudio2Device, USoundWave *Wave)
 Static function used to create an XAudio buffer and dynamically upload streaming data to. 更多...
 
static FCoreAudioSoundBuffer * Init (FAudioDevice *AudioDevice, USoundWave *InWave, bool bForceRealtime)
 Static function used to create a buffer. 更多...
 

Public 属性

FAudioDevice * AudioDevice
 Audio device this buffer is attached to
 
bool bDynamicResource
 Set to true when the PCM data should be freed when the buffer is destroyed
 
class ICompressedAudioInfo * DecompressionState
 Wrapper to handle the decompression of audio codecs
 
uint8 * PCMData
 Address of PCM data in physical memory
 
int32 PCMDataSize
 Size of PCM data in physical memory
 
AudioStreamBasicDescription PCMFormat
 Format of the source PCM data
 
int32 SoundFormat
 Format of the sound referenced by this buffer
 

详细描述

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

构造及析构函数说明

◆ FCoreAudioSoundBuffer()

FCoreAudioSoundBuffer::FCoreAudioSoundBuffer ( FAudioDevice *  AudioDevice,
ESoundFormat  SoundFormat 
)

Constructor

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

◆ ~FCoreAudioSoundBuffer()

FCoreAudioSoundBuffer::~FCoreAudioSoundBuffer ( void  )

Destructor

Frees wave data and detaches itself from audio device.

成员函数说明

◆ CreateNativeBuffer()

static FCoreAudioSoundBuffer * FCoreAudioSoundBuffer::CreateNativeBuffer ( FCoreAudioDevice *  CoreAudioDevice,
USoundWave *  Wave 
)
static

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

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

◆ CreatePreviewBuffer()

static FCoreAudioSoundBuffer * FCoreAudioSoundBuffer::CreatePreviewBuffer ( FCoreAudioDevice *  CoreAudioDevice,
USoundWave *  Wave,
FCoreAudioSoundBuffer *  Buffer 
)
static

Static function used to create a CoreAudio buffer and upload raw PCM data to.

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

◆ CreateProceduralBuffer()

static FCoreAudioSoundBuffer * FCoreAudioSoundBuffer::CreateProceduralBuffer ( FCoreAudioDevice *  CoreAudioDevice,
USoundWave *  Wave 
)
static

Static function used to create a CoreAudio buffer and dynamically upload procedural data to.

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

◆ CreateQueuedBuffer()

static FCoreAudioSoundBuffer * FCoreAudioSoundBuffer::CreateQueuedBuffer ( FCoreAudioDevice *  CoreAudioDevice,
USoundWave *  Wave 
)
static

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

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

◆ CreateStreamingBuffer()

static FCoreAudioSoundBuffer * FCoreAudioSoundBuffer::CreateStreamingBuffer ( FCoreAudioDevice *  CoreAudio2Device,
USoundWave *  Wave 
)
static

Static function used to create an XAudio buffer and dynamically upload streaming data to.

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

◆ GetSize()

int32 FCoreAudioSoundBuffer::GetSize ( void  )

Returns the size of this buffer in bytes.

返回
Size in bytes

◆ Init()

static FCoreAudioSoundBuffer * FCoreAudioSoundBuffer::Init ( FAudioDevice *  AudioDevice,
USoundWave *  InWave,
bool  bForceRealtime 
)
static

Static function used to create a buffer.

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

◆ ReadCompressedData()

virtual bool FCoreAudioSoundBuffer::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 FCoreAudioSoundBuffer::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

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