#include <soundresource.h>

Sound resources are generally shared and are referenced by Sound objects (there should be one Sound object per "sound instance", but several Sound objects should reference the same SoundResource object, if the Sound objects sound the same).
Public Member Functions | |
| SoundResource (const char *id) | |
| virtual | ~SoundResource () |
| virtual bool | UpdateStream () |
| virtual void | RewindStream () |
| void | SetStreaming (bool b) |
| void | SetLooping (bool b) |
| bool | IsStreaming () const |
| bool | IsLooping () const |
Protected Attributes | |
| bool | streaming |
| bool | looping |
| AudioFile * | audio_file |
| SoundResource::SoundResource | ( | const char * | id | ) |
Constructor.
| SoundResource::~SoundResource | ( | ) | [virtual] |
Destructor.
| bool SoundResource::UpdateStream | ( | ) | [virtual] |
Reimplemented in OpenALSoundResource.
| void SoundResource::RewindStream | ( | ) | [virtual] |
Reimplemented in OpenALSoundResource.
| void SoundResource::SetStreaming | ( | bool | b | ) | [inline] |
Sets static/streaming type.
| void SoundResource::SetLooping | ( | bool | b | ) | [inline] |
Sets the looping behaviour.
| bool SoundResource::IsStreaming | ( | ) | const [inline] |
Gets static/streaming type.
| bool SoundResource::IsLooping | ( | ) | const [inline] |
Gets the looping behaviour.
bool SoundResource::streaming [protected] |
bool SoundResource::looping [protected] |
AudioFile* SoundResource::audio_file [protected] |
1.5.3