Annchienta::Sound Class Reference

Inherits Annchienta::Cacheable.

Inherited by SwigDirector_Sound.

List of all members.

Public Member Functions

virtual CacheableType getCacheableType () const
void play () const
 Sound (const char *filename)
virtual ~Sound ()

Private Attributes

AudioManageraudioManager
Mix_Chunk * chunk


Detailed Description

Used to hold a chunk of audio, obviously.

Constructor & Destructor Documentation

Annchienta::Sound::Sound ( const char *  filename  ) 

Load audio from a file.

Parameters:
filename Some audio file. Format need to be supported by SDL_mixer.

virtual Annchienta::Sound::~Sound (  )  [virtual]


Member Function Documentation

virtual CacheableType Annchienta::Sound::getCacheableType (  )  const [virtual]

Returns:
SoundCacheable

Reimplemented from Annchienta::Cacheable.

Reimplemented in SwigDirector_Sound.

void Annchienta::Sound::play (  )  const

Plays back the sound.

Note:
Not available in Python.

Use AudioManager::playSound().


Member Data Documentation

Mix_Chunk* Annchienta::Sound::chunk [private]


Generated on Wed Feb 4 16:31:47 2009 for Annchienta by  doxygen 1.5.7.1