Jamie Slowgrove - PGG Assignment 1 - SDL
Main Page
Classes
Files
File List
All
Classes
Functions
PGGAssignment1SDL
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
Audio::startAudio
void startAudio()
Definition:
audio.cpp:56
Audio::playEffect
void playEffect()
Definition:
audio.cpp:69
Audio::~Audio
~Audio()
Definition:
audio.cpp:41
Audio::stopAudio
void stopAudio()
Definition:
audio.cpp:78
Audio::Audio
Audio(std::string, bool)
Definition:
audio.cpp:6
Audio
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
Generated on Fri Jan 16 2015 17:55:16 for Jamie Slowgrove - PGG Assignment 1 - SDL by
1.8.8