Jamie Slowgrove - AI Assignment 1
Line of Sight & A* path-finding
 All Classes Namespaces Files Functions Variables
audio.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <SDL_mixer.h>
4 #include <string>
5 #include <iostream>
6 
11 class Audio
12 {
13 private:
14  Mix_Music * audio;
15  Mix_Chunk * sound;
16 public:
22  Audio(std::string, bool);
23 
27  ~Audio();
28 
33  void startAudio();
34 
38  void playEffect();
39 
43  void stopAudio();
44 };
void startAudio()
Definition: audio.cpp:56
Mix_Music * audio
Definition: audio.h:14
void playEffect()
Definition: audio.cpp:69
~Audio()
Definition: audio.cpp:41
Mix_Chunk * sound
Definition: audio.h:15
void stopAudio()
Definition: audio.cpp:78
Audio(std::string, bool)
Definition: audio.cpp:6
Creates an Audio object to handle the SDL_Mixer. DISCLAIMER - This code is from my PGG SDL Assignment...
Definition: audio.h:11