Open 3D Engine AudioEngineWwise Gem API Reference
24.09
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
|
#include <AudioInputFile.h>
Inherits Audio::AudioInputSource.
Public Member Functions | |
AudioInputFile (const SAudioInputConfig &sourceConfig) | |
bool | LoadFile () |
void | UnloadFile () |
void | ReadInput (const AudioStreamData &data) override |
void | WriteOutput (AkAudioBuffer *akBuffer) override |
bool | IsOk () const override |
void | OnDeactivated () override |
size_t | CopyData (size_t numSampleFrames, void *toBuffer) |
Public Member Functions inherited from Audio::AudioInputSource | |
virtual bool | IsFormatValid () const |
virtual void | OnActivated () |
void | SetFormat (AkAudioFormat &format) |
void | SetSourceId (TAudioSourceId sourceId) |
TAudioSourceId | GetSourceId () const |
Additional Inherited Members | |
Protected Attributes inherited from Audio::AudioInputSource | |
SAudioInputConfig | m_config |
Configuration information for the source type. | |
AkPlayingID | m_playingId = AK_INVALID_PLAYING_ID |
Playing ID of the source. | |
A type of AudioInputSource representing an audio file. Contains audio file data, holds a pointer to the raw data and provides methods to read chunks of data at a time to an output (AkAudioBuffer).
size_t Audio::AudioInputFile::CopyData | ( | size_t | numSampleFrames, |
void * | toBuffer | ||
) |
Copy data from the internal buffer to an output buffer. Copies a specified number of sample frames to an output buffer. If more frames are requested than can be copied, only allowable frames are copied and number of frames that were copied is returned.
numSampleFrames | Number of sample frames requested for copy. |
toBuffer | Output buffer to copy to. |
bool Audio::AudioInputFile::LoadFile | ( | ) |
Load file into buffer. Use an AudioFileParser if needed to parse header information, then proceed to load the audio data to the internal buffer.
void Audio::AudioInputFile::UnloadFile | ( | ) |
Unload the file data. Release the internal buffer of file data.