Changed the default number of sound buffers

Updated version number.
This commit is contained in:
NovaRain
2022-07-26 08:28:59 +08:00
parent 0ed00a0a41
commit 81af621b3c
3 changed files with 9 additions and 10 deletions
+4 -4
View File
@@ -1,5 +1,5 @@
;sfall configuration settings
;v3.8.36
;v3.8.36.1
[Main]
;Set to 1 if you want to use command line arguments to tell sfall to use another ini file
@@ -101,8 +101,8 @@ WorldMapTerrainInfo=0
;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
[Sound]
;Sets the number of allowed simultaneous sound effects
;Set to 0 to leave the default unchanged (i.e. 4). The maximum is 32
NumSoundBuffers=0
;Set to 0 to leave the default unchanged (i.e. 8). The maximum is 32
NumSoundBuffers=8
;Set to 1 to allow attaching sound files to combat float messages
AllowSoundForFloats=0
@@ -520,7 +520,7 @@ BonusHtHDamageFix=1
DisplayBonusDamage=0
;Modify the maximum number of animations allowed to run on a map. (Default is 32, and the maximum is 127)
AnimationsAtOnceLimit=120
AnimationsAtOnceLimit=64
;Set to 1 to remove the limits that stop the player rolling critical successes/misses in the first few days of game time
RemoveCriticalTimelimits=0
+3 -4
View File
@@ -1048,10 +1048,9 @@ void Sound::init() {
};
HookCalls(audioOpen_hook, audioOpenAddr);
int sBuff = IniReader::GetConfigInt("Sound", "NumSoundBuffers", 0);
if (sBuff > 4) {
SafeWrite8(0x451129, (sBuff > 32) ? (BYTE)32 : (BYTE)sBuff);
}
int sBuff = IniReader::GetConfigInt("Sound", "NumSoundBuffers", 8);
if (sBuff < 8) sBuff = 8; // new default
SafeWrite8(0x451129, (sBuff > 32) ? (BYTE)32 : (BYTE)sBuff);
if (IniReader::GetConfigInt("Sound", "AllowSoundForFloats", 0)) {
HookCall(0x42B7C7, combatai_msg_hook); // copy msg
+2 -2
View File
@@ -25,6 +25,6 @@
#define VERSION_MAJOR 3
#define VERSION_MINOR 8
#define VERSION_BUILD 36
#define VERSION_REV 0
#define VERSION_REV 1
#define VERSION_STRING "3.8.36"
#define VERSION_STRING "3.8.36.1"