Krig Game Engine
src
SoundFX.h
Go to the documentation of this file.
1
7
#ifndef _SOUNDFX_H_
8
#define _SOUNDFX_H_
9
10
#include <AL/al.h>
11
#include <AL/alut.h>
12
#include <string>
13
#include <map>
14
#include <dirent.h>
15
#include "constants.h"
16
17
class
SoundFX
{
18
public
:
19
SoundFX
();
20
~
SoundFX
();
21
22
void
PlaySFX(
const
std::string&);
23
void
SetSFX(
24
const
std::string&,
25
const
ALfloat&,
const
ALfloat&,
const
ALfloat&,
26
const
ALfloat&,
const
ALfloat&,
const
ALfloat&,
27
const
ALboolean&
28
);
29
30
void
SetSFXListener(
31
const
ALfloat&,
const
ALfloat&,
const
ALfloat&,
32
const
ALfloat&,
const
ALfloat&,
const
ALfloat&
33
);
34
35
private
:
36
ALuint *Sources;
// Data for loading in the sound effects
37
ALuint *Buffers;
38
39
int
Num_of_SFX;
40
std::map <std::string, int> File_Hash;
41
};
42
43
#endif
SoundFX
Definition:
SoundFX.h:17
Generated on Wed May 3 2017 00:46:51 for Krig Game Engine by
1.8.13