1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-26 06:28:30 +02:00
VVVVVV/desktop_version/src/Music.h

69 lines
1.4 KiB
C
Raw Normal View History

2020-01-01 21:29:24 +01:00
#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;
int fadeoutqueuesong; // -1 if no song queued
bool dontquickfade;
2020-01-01 21:29:24 +01:00
// MMMMMM mod settings
bool mmmmmm;
bool usingmmmmmm;
};
#endif /* MUSIC_H */