forked from kroyee/SpeedBlocks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sounds.h
65 lines (58 loc) · 1.73 KB
/
sounds.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#ifndef SOUNDS_H
#define SOUNDS_H
#include <SFML/Audio.hpp>
class soundBank {
public:
sf::SoundBuffer pieceDropBuff;
sf::SoundBuffer lineClearBuff;
sf::SoundBuffer garbAddBuff;
sf::SoundBuffer lineBlockBuff;
sf::SoundBuffer menuSelBuff;
sf::SoundBuffer menuBackBuff;
sf::SoundBuffer combo5Buff;
sf::SoundBuffer combo8Buff;
sf::SoundBuffer combo11Buff;
sf::SoundBuffer combo13Buff;
sf::SoundBuffer combo15Buff;
sf::SoundBuffer combo17Buff;
sf::SoundBuffer combo19Buff;
sf::SoundBuffer combo21Buff;
sf::SoundBuffer startBeepBuff;
sf::Sound pieceDropSound;
sf::Sound lineClearSound;
sf::Sound garbAddSound;
sf::Sound lineBlockSound;
sf::Sound menuSelSound;
sf::Sound menuBackSound;
sf::Sound combo5Sound;
sf::Sound combo8Sound;
sf::Sound combo11Sound;
sf::Sound combo13Sound;
sf::Sound combo15Sound;
sf::Sound combo17Sound;
sf::Sound combo19Sound;
sf::Sound combo21Sound;
sf::Sound startBeep1Sound;
sf::Sound startBeep2Sound;
sf::String loadSounds();
void pieceDrop() { pieceDropSound.play(); }
void lineClear() { lineClearSound.play(); }
void garbAdd() { garbAddSound.play(); }
void lineBlock() { lineBlockSound.play(); }
void menuSel() { menuSelSound.play(); }
void menuBack() { menuBackSound.play(); }
void combo5() { combo5Sound.play(); }
void combo8() { combo8Sound.play(); }
void combo11() { combo11Sound.play(); }
void combo13() { combo13Sound.play(); }
void combo15() { combo15Sound.play(); }
void combo17() { combo17Sound.play(); }
void combo19() { combo19Sound.play(); }
void combo21() { combo21Sound.play(); }
void startBeep1() { startBeep1Sound.play(); }
void startBeep2() { startBeep2Sound.play(); }
void setMusicVolume(short vol);
void setEffectVolume(short vol);
void setChatVolume(short vol);
};
#endif