Music Class Reference

#include <Music.h>

Collaboration diagram for Music:
[legend]

List of all members.

Public Member Functions

 Music ()
bool Load (const CString &_FileName)
bool Load (const char *_FileName)
void Play ()
void Stop ()
bool Stopped () const
bool Paused () const
bool Playing () const
bool Ended ()
const CString & GetFileName () const
void SetVolume (float _Volume)


Detailed Description

Class Music This class represents a single music.
Author:
Adrian Gaudebert - adrian.gaudebert@gmail.com

Simon Stephan - s.stephan88@gmail.com


Constructor & Destructor Documentation

Music::Music (  ) 

Default constructor


Member Function Documentation

bool Music::Ended (  ) 

Check wether the music has reach its end

const CString & Music::GetFileName (  )  const

Get the file name of the music

Returns:
Link to the file

bool Music::Load ( const char *  _FileName  ) 

Load a music from a file

Parameters:
_FileName Link to the file, C string

bool Music::Load ( const CString &  _FileName  ) 

Load a music from a file

Parameters:
_FileName Link to the file, MFC CString

bool Music::Paused (  )  const

Check wether the music is paused

void Music::Play (  ) 

Play the music

bool Music::Playing (  )  const

Check wether the music is playing

void Music::SetVolume ( float  _Volume  ) 

Set the volume of the music

Parameters:
_Volume Float between 0 and 100

void Music::Stop (  ) 

Stop the music

bool Music::Stopped (  )  const

Check wether the music is stopped


The documentation for this class was generated from the following files:

Generated on Mon Jan 19 22:14:51 2009 for saMP by  doxygen 1.5.8