-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcSound.h
More file actions
36 lines (29 loc) · 687 Bytes
/
cSound.h
File metadata and controls
36 lines (29 loc) · 687 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
==========================================================================
cSound.h
==========================================================================
*/
#ifndef _SOUND_H
#define _SOUND_H
// OpenGL Headers
#include "GameConstants.h"
#include <string>
#include <iostream>
#include <fstream>
using namespace std;
class cSound
{
private:
Mix_Chunk * SoundFX = NULL;
Mix_Music * sMusic = NULL;
soundType theSoundType;
public:
cSound();
cSound(soundType sndType);
~cSound();
bool load(LPCSTR filename);
void setSoundTYpe(soundType sndType);
soundType getSoundType();
void play(int loop); // use -1 for indifinate loop
};
#endif