Sky Zone Omega - PC Version
 All Classes Namespaces Files Functions Variables Macros
Public Member Functions | Private Attributes | List of all members
C_Audio Class Reference

Handles audio using SDL_Mixer. More...

#include <C_Audio.h>

Collaboration diagram for C_Audio:
Collaboration graph

Public Member Functions

 C_Audio (std::string file)
 Constructs the Audio object. More...
 
 ~C_Audio ()
 Destructs the Audio object. More...
 
void playEffect ()
 Plays the sound effect. More...
 

Private Attributes

Mix_Chunk * audio
 Variable for the audio. More...
 

Detailed Description

Handles audio using SDL_Mixer.

Author
Jamie Slowgrove

Constructor & Destructor Documentation

C_Audio::C_Audio ( std::string  file)

Constructs the Audio object.

Parameters
fileThe file to be loaded.

Here is the call graph for this function:

C_Audio::~C_Audio ( )

Destructs the Audio object.

Member Function Documentation

void C_Audio::playEffect ( )

Plays the sound effect.

Here is the caller graph for this function:

Member Data Documentation

Mix_Chunk* C_Audio::audio
private

Variable for the audio.


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