31 #ifndef CRAB_MUSICMANAGER_H 32 #define CRAB_MUSICMANAGER_H 34 #include "audio/mixer.h" 36 #include "crab/music/musicparam.h" 40 namespace pyrodactyl {
58 ChunkKey _notify, _repInc, _repDec;
65 _musicHandle =
nullptr;
69 bool load(rapidxml::xml_node<char> *node);
73 void playMusic(
const MusicKey &
id);
74 void playEffect(
const ChunkKey &
id,
const int &loops);
80 static void resume() {
88 static void volEffects(
const int &volume,
const bool &unmute =
false) {
94 static int volEffects() {
98 static void volMusic(
const int &volume,
const bool &unmute =
false) {
104 static int volMusic() {
126 #endif // CRAB_MUSICMANAGER_H
virtual Audio::Mixer * getMixer()=0
virtual void muteSoundType(SoundType type, bool mute)=0
Definition: audiostream.h:212
virtual void pauseAll(bool paused)=0
virtual int getVolumeForSoundType(SoundType type) const =0
Definition: musicparam.h:51
Definition: moveeffect.h:37
virtual void setVolumeForSoundType(SoundType type, int volume)=0
Definition: MusicManager.h:42