Skip to content

Commit

Permalink
fix minor mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
GalaxyMaster2 committed Apr 28, 2022
1 parent c1aaf99 commit d2da0e4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions HitsoundTweaks/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
2 changes: 1 addition & 1 deletion HitsoundTweaks/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit d2da0e4

Please sign in to comment.