Creates an Audio object to handle the SDL_Mixer.
More...
#include <Audio.h>
Creates an Audio object to handle the SDL_Mixer.
- Author
- Jamie Slowgrove Reference ~ This is a modified version of my AI Assignment 1 Audio class.
| JAM_Audio::JAM_Audio |
( |
std::string |
file, |
|
|
bool |
music |
|
) |
| |
Constructs the Audio object.
- Parameters
-
| file | The file to be loaded. |
| music | True for music file. False for sound file. |
| JAM_Audio::~JAM_Audio |
( |
| ) |
|
Destructs the Audio object.
| void JAM_Audio::playEffect |
( |
| ) |
|
| void JAM_Audio::startAudio |
( |
| ) |
|
Starts the Audio playing, also checks if not playing and starts again.
| void JAM_Audio::stopAudio |
( |
| ) |
|
| Mix_Music* JAM_Audio::audio |
|
private |
Variable for if it's a Music audio type.
| Mix_Chunk* JAM_Audio::sound |
|
private |
Variable for if it's a Sound effect type.
The documentation for this class was generated from the following files: