summaryrefslogtreecommitdiffhomepage
path: root/StarsEx/AudioConfig.h
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2024-03-08 00:09:56 +0100
committerAki <please@ignore.pl>2024-03-08 00:21:55 +0100
commitc45d494472bf0b812c0cf9d57e00ef75e7c155d0 (patch)
tree9b2dedc2f4a659a9ac40d631118d5edd05934d8a /StarsEx/AudioConfig.h
parentb995b5de7ee3cccfdf93bc4ed4a56143a6463947 (diff)
downloadstarshatter-c45d494472bf0b812c0cf9d57e00ef75e7c155d0.zip
starshatter-c45d494472bf0b812c0cf9d57e00ef75e7c155d0.tar.gz
starshatter-c45d494472bf0b812c0cf9d57e00ef75e7c155d0.tar.bz2
You can now adjust master volumes in settings
Changes may not take effect until restarting the game. It seems some singletons are initialized when needed, then they are reused for each mission, but have sound volume assigned at awkward times.
Diffstat (limited to 'StarsEx/AudioConfig.h')
-rw-r--r--StarsEx/AudioConfig.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/StarsEx/AudioConfig.h b/StarsEx/AudioConfig.h
index f721592..1f01868 100644
--- a/StarsEx/AudioConfig.h
+++ b/StarsEx/AudioConfig.h
@@ -40,6 +40,9 @@ public:
static int Silence();
static void SetTraining(bool t);
+ int GetMasterVolume() const { return master_volume; }
+ int GetMusicVolume() const { return music_volume; }
+ int GetWorldVolume() const { return world_volume; }
int GetMenuMusic() const { return menu_music; }
int GetGameMusic() const { return game_music; }
int GetEfxVolume() const { return efx_volume; }
@@ -47,6 +50,9 @@ public:
int GetWrnVolume() const { return wrn_volume; }
int GetVoxVolume() const { return vox_volume; }
+ void SetMasterVolume(int v);
+ void SetMusicVolume(int v);
+ void SetWorldVolume(int v);
void SetMenuMusic(int v);
void SetGameMusic(int v);
void SetEfxVolume(int v);
@@ -55,6 +61,10 @@ public:
void SetVoxVolume(int v);
protected:
+ int master_volume;
+ int music_volume;
+ int world_volume;
+
int menu_music;
int game_music;