Jamie Slowgrove - PGG Assignment 1 - SDL
 All Classes Functions
audio.h
1 #pragma once
2 #ifndef AUDIO_H
3 #define AUDIO_H
4 
5 #include <SDL_mixer.h>
6 #include <string>
7 #include <iostream>
8 
13 class Audio
14 {
15 private:
16  Mix_Music * audio;
17  Mix_Chunk * sound;
18 public:
25  Audio(std::string, bool);
26 
31  ~Audio();
32 
37  void startAudio();
38 
43  void playEffect();
44 
48  void stopAudio();
49 };
50 #endif
void startAudio()
Definition: audio.cpp:56
void playEffect()
Definition: audio.cpp:69
~Audio()
Definition: audio.cpp:41
void stopAudio()
Definition: audio.cpp:78
Audio(std::string, bool)
Definition: audio.cpp:6
Creates a Audio object to handle the SDL_Mixer. Done using help from http://www.lazyfoo.net/tutorials/SDL/21_sound_effects_and_music/index.php.
Definition: audio.h:13