Handles audio using SDL_Mixer. More...
#include <C_Audio.h>
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... | |
Handles audio using SDL_Mixer.
C_Audio::C_Audio | ( | std::string | file | ) |
Constructs the Audio object.
file | The file to be loaded. |
C_Audio::~C_Audio | ( | ) |
Destructs the Audio object.
void C_Audio::playEffect | ( | ) |
Plays the sound effect.
|
private |
Variable for the audio.