-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSoundManager.h
46 lines (42 loc) · 1.09 KB
/
SoundManager.h
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
37
38
39
40
41
42
43
44
45
46
//
// Music.h
// echoecho
//
// Created by Martin on 14/11/24.
// Copyright (c) 2014? Martin. All rights reserved.
//
#ifndef __echoecho__Music__
#define __echoecho__Music__
#include <stdio.h>
#include <stdio.h>
#include <iostream>
#include <AL/al.h>
#include <AL/alc.h>
typedef unsigned int DWORD;
typedef unsigned char BYTE;
typedef unsigned short WORD;
typedef int LONG;
class SoundManager {
public:
void init();
void playMainMenuMusic();
void playThemeMusic();
void playHoverSound();
void playClickSound();
void playStartSound();
void playScaredSound();
void stopBreathFastSound();
void playBreathFastSound();
void stopMainMenuMusic();
void stopThemeMusic();
int loadWavFile(char* filePath);
int endWithError(char* msg, int error = 0);
void loadAllSoundFiles();
void playSound(int source, float pitch, float gain, ALboolean loop);
void setListenerPosition(ALfloat* pos);
void setListenerVelocity(ALfloat* velocitiy);
void setSourcePosition(int source, ALfloat* pos);
void setSourceVelocity(int source, ALfloat* velocitiy);
void clean();
};
#endif /* defined(__echoecho__Music__) */