gedi::Music Class Reference

#include <Music.h>

List of all members.

Public Member Functions

 Music ()
 ~Music ()
void Init ()
void LoadFromFile (CHAR *filename)
void Play (gedi::Bool32 loop=gedi::False)


Detailed Description

This class plays WAV and MIDI files but not MP3 files. It may play other formats which have not been tested. The code was dug out of my mailbox (24 Dec 04) as the final code delivered by Stephen Robeke (Marist 05) who wrote and integrated it into Mirus. Its theory of operation can be found clearly detailed at www.gamedev.net/reference/articles/article1689.asp. We (RC) also learned how to fix the code's looping bug at this site. We futhermore added Doxygen comments and put the code into "standard" Gedi format.


Constructor & Destructor Documentation

gedi::Music::Music (  )  [inline]

Constructor.

Music::~Music (  ) 

Destructor.


Member Function Documentation

void Music::Init (  ) 

Initializes the music instance.

void Music::LoadFromFile ( CHAR *  filename  ) 

Loads the music data from the file.

Parameters:
filename Path of the music file.

void Music::Play ( gedi::Bool32  loop = gedi::False  ) 

Plays the music data.

Parameters:
loop Loop the data if true.


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