Added sound and music volume control.

Issue #120.
This commit is contained in:
Muzychenko Andrey committed 2022-01-12 17:17:38 +03:00
1 parent 43af97127b
commit 0a2d6847ba
8 files changed
+99 -46

No files matched your search

+3
View File
@@ -78,6 +78,8 @@ struct optionsStruct
bool HybridSleep;
bool Prefer3DPBGameData;
bool IntegerScaling;
int SoundVolume;
int MusicVolume;
};
struct ControlRef
@@ -95,6 +97,7 @@ public:
DefUps = 120, DefFps = 60;
// Original uses 8 sound channels
static constexpr int MaxSoundChannels = 32, MinSoundChannels = 1, DefSoundChannels = 8;
static constexpr int MaxVolume = MIX_MAX_VOLUME, MinVolume = 0, DefVolume = MaxVolume;
static optionsStruct Options;
static void InitPrimary();