SFXResource Class Reference#include <sfxResource.h>
Inheritance diagram for SFXResource: ![]() Detailed DescriptionThis is the base class for all sound file resources including streamed sound files.The first step occurs at ResourceManager::load() time at which only the header information, the format, size frequency, and looping flag, are loaded from the sound file. This provides just the nessasary information to simulate sound playback for sounds playing just out of the users hearing range. The second step loads the actual sound data or begins filling the stream buffer. This is triggered by a call to ????. SFXProfile, for example, does this when mPreload is enabled.
Constructor & Destructor Documentation
The destructor.
Member Function Documentation
This is a helper function used by SFXProfile for load a sound resource. It takes care of trying different types for extension-less filenames.
A helper function which returns true if the sound resource exists.
Returns the sample data array.
The length of the data buffer in bytes.
Returns the total playback time milliseconds.
Returns the byte offset into the sample buffer from the time in milliseconds.
Returns the number of bytes per sample based on the format ( a sample includes all channels ).
Returns the number of bits per sample ( a sample includes all channels ).
Returns the number of seperate audio signals in the sound. Typically 1 for mono or 2 for stereo.
Returns the number of samples per second.
Member Data Documentation
The format of the sample data.
The loaded sample data.
The length of the mData array in bytes.
The number of samples per second.
The length of the sample in milliseconds.
|