Public Member Functions
|SoundClip (const xstring &filename="", ResourceFile *rf=0)|
|SoundClip (std::istream *is)|
|SoundClip (const SoundClip &rhs)|
|SoundClip &||operator= (const SoundClip &rhs)|
|void||play (bool loop=false)|
Protected Member Functions
SoundClip is a finite (usually short) audio clip. It is loaded from WAV files and can be played to provide sound effects. The clip can be played multiple times, even concurrently, without duplicating its data. SoundClips in their nature allocate memory. In order to make their usage simple and still not waste resources by duplicating clips in memory, SoundClip objects include built in reference counting, so they can be passed by value on the stack without too much overhead.
Construct a sound clip and optionally load it from a WAV from file.
Construct a sound clip by loading a WAV from an input stream.
|void SDLPP::SoundClip::play||(||bool|| loop =
Start playback of this sound clip.