The SoundSample resource class. More...
#include <Sound/Font.h>
Inherits Resource<>.
Public Member Functions | |
virtual void | Destroy () |
Destroys the resource. | |
virtual uint | GetDataUsageInBytes () const |
Estimates the number of bytes used by the loaded resource. | |
bool | IsPlaying (int channel) |
Determines if the sound is currently playing. | |
int | Play () |
Plays the currently loaded sound. | |
void | Stop (int channel) |
Stops playing the sound. |
The SoundSample resource class.
A resource type that is used for loading and playing Sound effects. The following sound formats are supported:
void SoundSample::Destroy | ( | ) | [virtual] |
Destroys the resource.
Deallocates all data allocated when the resource was loaded. Must be implemented by all classes that inherit from the Resource class but should never be called outside of the ResourceMgr class.
Implements Resource<>.
bool SoundSample::IsPlaying | ( | int | channel | ) |
Determines if the sound is currently playing.
[in] | channel | the channel handle returned by Play. |
int SoundSample::Play | ( | ) |
Plays the currently loaded sound.
void SoundSample::Stop | ( | int | channel | ) |
Stops playing the sound.
[in] | channel | the channel handle returned by Play. |