The Game Engine
1
Main Page
Related Pages
Classes
Files
File List
File Members
Audio.h
Go to the documentation of this file.
1
#ifndef __AUDIO_H__
2
#define __AUDIO_H__
3
#include <SDL/SDL.h>
4
#include <SDL/SDL_audio.h>
5
#include <string>
6
#include "
fns.h
"
7
#include <map>
8
17
class
Audio
18
{
19
public
:
20
21
26
Audio
();
27
28
29
int
LoadAudio
(std::string name,
string
location = NULL,
bool
play_on_start =
true
,
int
play_count=1);
30
34
void
LoadAudioConfig
();
35
39
void
initialize
();
40
44
void
play
(
int
index
);
45
49
void
stop
(
int
index);
50
54
void
stopAll
();
55
59
void
tone
();
60
61
62
63
protected
:
65
map<std::string,int>
mCached
;
66
67
68
};
69
#endif
Audio.h
Generated on Tue Apr 16 2013 02:32:41 for The Game Engine by
1.8.3.1