Inherited by SwigDirector_Sound.
Public Member Functions | |
virtual CacheableType | getCacheableType () const |
void | play () const |
Sound (const char *filename) | |
virtual | ~Sound () |
Private Attributes | |
AudioManager * | audioManager |
Mix_Chunk * | chunk |
Annchienta::Sound::Sound | ( | const char * | filename | ) |
Load audio from a file.
filename | Some audio file. Format need to be supported by SDL_mixer. |
virtual Annchienta::Sound::~Sound | ( | ) | [virtual] |
virtual CacheableType Annchienta::Sound::getCacheableType | ( | ) | const [virtual] |
Reimplemented from Annchienta::Cacheable.
Reimplemented in SwigDirector_Sound.
void Annchienta::Sound::play | ( | ) | const |
Plays back the sound.
AudioManager* Annchienta::Sound::audioManager [private] |
Mix_Chunk* Annchienta::Sound::chunk [private] |