Changed the default number of sound buffers

Updated version number.
This commit is contained in:
NovaRain
2022-07-26 08:23:47 +08:00
parent d0fa304035
commit be2af4a3a2
3 changed files with 9 additions and 10 deletions
+4 -4
View File
@@ -1,5 +1,5 @@
;sfall configuration settings
;v4.3.6
;v4.3.6.1
[Main]
;Set to 1 to enable the built-in High Resolution Patch mode that is similar to the hi-res patch by Mash
@@ -132,8 +132,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
@@ -530,7 +530,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
@@ -1038,10 +1038,9 @@ void Sound::init() {
0x4A96CC // sfxc_decode_
});
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 4
#define VERSION_MINOR 3
#define VERSION_BUILD 6
#define VERSION_REV 0
#define VERSION_REV 1
#define VERSION_STRING "4.3.6"
#define VERSION_STRING "4.3.6.1"