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 | ( | FAudioDevice * | AudioDevice, |
| ESoundFormat | SoundFormat | ||
| ) |
Constructor
| AudioDevice | audio device this sound buffer is going to be attached to. |
| FCoreAudioSoundBuffer::~FCoreAudioSoundBuffer | ( | void | ) |
Destructor
Frees wave data and detaches itself from audio device.
|
static |
Static function used to create a CoreAudio buffer and upload decompressed ogg vorbis data to.
| Wave | USoundWave to use as template and wave source |
| AudioDevice | audio device to attach created buffer to |
|
static |
Static function used to create a CoreAudio buffer and upload raw PCM data to.
| InWave | USoundWave to use as template and wave source |
| AudioDevice | audio device to attach created buffer to |
|
static |
Static function used to create a CoreAudio buffer and dynamically upload procedural data to.
| InWave | USoundWave to use as template and wave source |
| AudioDevice | audio device to attach created buffer to |
|
static |
Static function used to create a CoreAudio buffer and dynamically upload decompressed ogg vorbis data to.
| InWave | USoundWave to use as template and wave source |
| AudioDevice | audio device to attach created buffer to |
|
static |
Static function used to create an XAudio buffer and dynamically upload streaming data to.
| InWave | USoundWave to use as template and wave source |
| AudioDevice | audio device to attach created buffer to |
| int32 FCoreAudioSoundBuffer::GetSize | ( | void | ) |
Returns the size of this buffer in bytes.
|
static |
Static function used to create a buffer.
| InWave | USoundWave to use as template and wave source |
| AudioDevice | audio device to attach created buffer to |
|
overridevirtual |
Decompresses a chunk of compressed audio to the destination memory
| Destination | Memory to decompress to |
| bLooping | Whether to loop the sound seamlessly, or pad with zeroes |
| 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
| SeekTime | Time in seconds from the beginning of sound to seek to |