Public Member Functions | Private Member Functions | Private Attributes

Music Class Reference

Music Resource. More...

#include <Music.h>

Inheritance diagram for Music:
Resource

List of all members.

Public Member Functions

 Music (const std::string &filePath)
Mix_Music * getMusic () const

Private Member Functions

void load ()

Private Attributes

File mMusicBuffer
Mix_Music * mMusic

Detailed Description

Music Resource.

Derived from the Resource class.


Constructor & Destructor Documentation

Music::Music ( const std::string &  filePath  ) 

Member Function Documentation

Mix_Music * Music::getMusic (  )  const

Should this be private and just friend the Mixer class?

void Music::load (  )  [private, virtual]

Performs the necessary operations to load a Resource.

Note:
This is a pure virtual function and so must be overridden by all derived classes.
It is the responsibility of the derived class to call this function.

Implements Resource.


Member Data Documentation

Mix_Music* Music::mMusic [private]

Persistent memory buffer for Mix_Music.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines