Creates an Audio object to handle the SDL_Mixer. DISCLAIMER - This code is from my PGG SDL Assignment.
More...
#include <audio.h>
Creates an Audio object to handle the SDL_Mixer. DISCLAIMER - This code is from my PGG SDL Assignment.
Audio::Audio |
( |
std::string |
file, |
|
|
bool |
music |
|
) |
| |
Constructs an Audio object
- Parameters
-
std::string | The file to be loaded |
bool | Is it a music file? If false its a sound file |
void Audio::playEffect |
( |
| ) |
|
void Audio::startAudio |
( |
| ) |
|
Starts the Audio playing Starts the Audio playing, also checks if not playing and starts again
void Audio::stopAudio |
( |
| ) |
|
The documentation for this class was generated from the following files: