Sky Zone Omega - PC Version
 All Classes Namespaces Files Functions Variables Macros
C_Audio.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <SDL.h>
4 #include <SDL_mixer.h>
5 #include <string>
6 #include "C_Utilities.h"
7 
12 class C_Audio
13 {
14 public:
19  C_Audio(std::string file);
20 
24  ~C_Audio();
25 
29  void playEffect();
30 
31 private:
33  Mix_Chunk* audio;
34 };
Mix_Chunk * audio
Variable for the audio.
Definition: C_Audio.h:33
Handles audio using SDL_Mixer.
Definition: C_Audio.h:12
C_Audio(std::string file)
Constructs the Audio object.
Definition: C_Audio.cpp:3
void playEffect()
Plays the sound effect.
Definition: C_Audio.cpp:23
~C_Audio()
Destructs the Audio object.
Definition: C_Audio.cpp:14