Jamie Slowgrove - PGG Assignment 2
 All Classes Namespaces Files Functions Variables Typedefs Macros
Audio.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <SDL_mixer.h>
4 #include <iostream>
5 #include <string>
6 
12 class Audio
13 {
14 private:
16  Mix_Music* audio;
18  Mix_Chunk* sound;
19 
20 public:
26  Audio(std::string file, bool music);
27 
31  ~Audio();
32 
37  void startAudio();
38 
42  void playEffect();
43 
47  void stopAudio();
48 };
void startAudio()
Definition: Audio.cpp:56
Mix_Music * audio
Definition: Audio.h:16
void playEffect()
Definition: Audio.cpp:69
Audio(std::string file, bool music)
Definition: Audio.cpp:6
~Audio()
Definition: Audio.cpp:41
Mix_Chunk * sound
Definition: Audio.h:18
void stopAudio()
Definition: Audio.cpp:78
GLsizei const GLchar *const * string
Definition: glew.h:1843
Creates a Audio object to handle the SDL_Mixer.
Definition: Audio.h:12