Creates a Audio object to handle the SDL_Mixer. More...
#include <Audio.h>

Public Member Functions | |
| Audio (std::string file, bool music) | |
| ~Audio () | |
| void | startAudio () |
| void | playEffect () |
| void | stopAudio () |
Private Attributes | |
| Mix_Music * | audio |
| Mix_Chunk * | sound |
Creates a Audio object to handle the SDL_Mixer.
| Audio::Audio | ( | std::string | file, |
| bool | music | ||
| ) |
Constructs an Audio object.
| file | The file to be loaded. |
| music | True for music file. False for sound file. |
| Audio::~Audio | ( | ) |
Destructs a Audio object.
| void Audio::playEffect | ( | ) |
Plays the sound effect.

| void Audio::startAudio | ( | ) |
|
private |
Variable for if it's a Music audio type
|
private |
Variable for if it's a Sound effect type
1.8.8