Jamie Slowgrove - MGP Assignment 2 - JAM
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Macros
jni
src
JAM
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
12
class
JAM_Audio
13
{
14
private
:
16
Mix_Music*
audio
;
18
Mix_Chunk*
sound
;
19
20
public
:
26
JAM_Audio
(std::string file,
bool
music);
27
31
~JAM_Audio
();
32
36
void
startAudio
();
37
41
void
playEffect
();
42
46
void
stopAudio
();
47
};
JAM_Audio::audio
Mix_Music * audio
Definition:
Audio.h:16
JAM_Audio::JAM_Audio
JAM_Audio(std::string file, bool music)
Definition:
Audio.cpp:6
JAM_Audio::sound
Mix_Chunk * sound
Definition:
Audio.h:18
JAM_Audio::playEffect
void playEffect()
Definition:
Audio.cpp:73
JAM_Audio::~JAM_Audio
~JAM_Audio()
Definition:
Audio.cpp:45
JAM_Audio::stopAudio
void stopAudio()
Definition:
Audio.cpp:82
JAM_Audio::startAudio
void startAudio()
Definition:
Audio.cpp:60
JAM_Audio
Creates an Audio object to handle the SDL_Mixer.
Definition:
Audio.h:12
Generated on Fri May 8 2015 04:37:50 for Jamie Slowgrove - MGP Assignment 2 - JAM by
1.8.8