mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-11-05 10:49:41 +01:00
60 lines
970 B
C++
60 lines
970 B
C++
#ifndef MUSIC_H
|
|
#define MUSIC_H
|
|
|
|
#include "SoundSystem.h"
|
|
#include "BinaryBlob.h"
|
|
|
|
#include <vector>
|
|
|
|
#define musicroom(rx, ry) ((rx) + ((ry) * 20))
|
|
|
|
class musicclass
|
|
{
|
|
public:
|
|
void init();
|
|
|
|
void play(int t);
|
|
void haltdasmusik();
|
|
void silencedasmusik();
|
|
void fadeMusicVolumeIn(int ms);
|
|
void fadeout();
|
|
void processmusicfadein();
|
|
void processmusic();
|
|
void niceplay(int t);
|
|
|
|
void changemusicarea(int x, int y);
|
|
|
|
int currentsong, musicfade, musicfadein;
|
|
int resumesong;
|
|
|
|
void playef(int t);
|
|
|
|
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;
|
|
|
|
// MMMMMM mod settings
|
|
bool mmmmmm;
|
|
bool usingmmmmmm;
|
|
|
|
binaryBlob musicReadBlob;
|
|
};
|
|
|
|
extern musicclass music;
|
|
|
|
#endif /* MUSIC_H */
|