Public Member Functions | Private Member Functions | Private Attributes

Sound Class Reference

Sound Resource. More...

#include <Sound.h>

Inheritance diagram for Sound:
Resource

List of all members.

Public Member Functions

 Sound (const std::string &filePath)
Mix_Chunk * getSound () const

Private Member Functions

void load ()

Private Attributes

Mix_Chunk * mChunk

Detailed Description

Sound Resource.

Derived from the Resource class.


Constructor & Destructor Documentation

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

Member Function Documentation

Mix_Chunk * Sound::getSound (  )  const

Should this be private and just friend the Mixer class?

void Sound::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_Chunk* Sound::mChunk [private]

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