diff --git a/HitsoundTweaks/HarmonyPatches/AudioTimeSyncController_dspTimeOffset_Patch.cs b/HitsoundTweaks/HarmonyPatches/AudioTimeSyncController_dspTimeOffset_Patch.cs index 6175547..82c5f14 100644 --- a/HitsoundTweaks/HarmonyPatches/AudioTimeSyncController_dspTimeOffset_Patch.cs +++ b/HitsoundTweaks/HarmonyPatches/AudioTimeSyncController_dspTimeOffset_Patch.cs @@ -64,7 +64,7 @@ static void Postfix(ref double ____dspTimeOffset, AudioSource ____audioSource, f var audioTime = ____audioSource.timeSamples / (double)____audioSource.clip.frequency; var targetOffset = AudioSettings.dspTime - (audioTime / (double)____timeScale); - if (!firstCorrectionDone || Math.Abs(____dspTimeOffset - targetOffset) > maxDiscrepancy) + if (!firstCorrectionDone || Math.Abs(____dspTimeOffset - syncOffset - targetOffset) > maxDiscrepancy) { ____dspTimeOffset = targetOffset + syncOffset; firstCorrectionDone = true; diff --git a/HitsoundTweaks/Properties/AssemblyInfo.cs b/HitsoundTweaks/Properties/AssemblyInfo.cs index c9bc9c1..8181736 100644 --- a/HitsoundTweaks/Properties/AssemblyInfo.cs +++ b/HitsoundTweaks/Properties/AssemblyInfo.cs @@ -31,5 +31,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.1")] -[assembly: AssemblyFileVersion("1.0.1")] +[assembly: AssemblyVersion("1.0.2")] +[assembly: AssemblyFileVersion("1.0.2")] diff --git a/HitsoundTweaks/manifest.json b/HitsoundTweaks/manifest.json index 32be1c8..7019fb3 100644 --- a/HitsoundTweaks/manifest.json +++ b/HitsoundTweaks/manifest.json @@ -3,7 +3,7 @@ "id": "HitsoundTweaks", "name": "HitsoundTweaks", "author": "GalaxyMaster", - "version": "1.0.1", + "version": "1.0.2", "description": "Adds more configurability to hitsounds, and fixes several base game bugs to make them more reliable and consistent.", "gameVersion": "1.21.0", "dependsOn": {