Annchienta::AudioManager Class Reference

List of all members.

Public Member Functions

 AudioManager ()
Mix_Music * getMusic () const
const char * getPlayingMusic () const
bool inittedSuccesfully () const
void playMusic (const char *filename)
void playSound (Sound *sound) const
 ~AudioManager ()

Private Attributes

bool initted
Mix_Music * music
char musicFileName [DEFAULT_STRING_SIZE]


Detailed Description

Used for playing audio and music.

Constructor & Destructor Documentation

Annchienta::AudioManager::AudioManager (  ) 

Annchienta::AudioManager::~AudioManager (  ) 


Member Function Documentation

Mix_Music* Annchienta::AudioManager::getMusic (  )  const

Returns:
The playing music.
Note:
Not available in Python.

const char* Annchienta::AudioManager::getPlayingMusic (  )  const

Returns:
Filename of the music currently streaming.

bool Annchienta::AudioManager::inittedSuccesfully (  )  const

Checks if the AudioManager was succesfully initted.

void Annchienta::AudioManager::playMusic ( const char *  filename  ) 

Starts streaming background music. When the file given is already playing, nothing will happen. If other music is already playing, that music will be stopped first.

Parameters:
filename Music to stream.

void Annchienta::AudioManager::playSound ( Sound sound  )  const

Play back a loaded Sound.

Parameters:
sound Sound to play.


Member Data Documentation

Mix_Music* Annchienta::AudioManager::music [private]

char Annchienta::AudioManager::musicFileName[DEFAULT_STRING_SIZE] [private]


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