forked from TerryCavanagh/VVVVVV
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Music.h
65 lines (47 loc) · 1.3 KB
/
Music.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 MUSIC_H
#define MUSIC_H
#include "SoundSystem.h"
#include <vector>
#define musicroom(rx, ry) ((rx) + ((ry) * 20))
class musicclass
{
public:
musicclass();
void play(int t);
void loopmusic();
void stopmusic();
void haltdasmusik();
void silencedasmusik();
void fadeMusicVolumeIn(int ms);
void fadeout();
void processmusicfade();
void processmusicfadein();
void processmusic();
void niceplay(int t);
void changemusicarea(int x, int y);
// public var musicchan:Array = new Array();
// public var musicchannel:SoundChannel, musicchannel2:SoundChannel;
// public var currentmusicchan:int, musicchanlen:int, musicchancur:int, musicstopother:int, resumesong:int;
// public var currentsong:int, musicfade:int, musicfadein:int;
int currentsong, musicfade, musicfadein;
int resumesong;
//public var nicefade:int, nicechange:int;
// Play a sound effect! There are 16 channels, which iterate
void initefchannels();
void playef(int t, int offset = 0);
std::vector<SoundTrack> soundTracks;
std::vector<MusicTrack> musicTracks;
SoundSystem soundSystem;
bool safeToProcessMusic;
int nicechange;
int nicefade;
bool m_doFadeInVol;
int FadeVolAmountPerFrame;
int musicVolume;
float volume;
bool custompd;
// MMMMMM mod settings
bool mmmmmm = false;
bool usingmmmmmm;
};
#endif /* MUSIC_H */