Skip to content

Commit

Permalink
Fix suggested value in audio offset adjust control being opposite in …
Browse files Browse the repository at this point in the history
…signs
  • Loading branch information
frenzibyte committed Dec 30, 2023
1 parent 68dd103 commit e6fe631
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ private void updateDisplay(object? _, NotifyCollectionChangedEventArgs e)
break;
}

SuggestedOffset.Value = averageHitErrorHistory.Any() ? -averageHitErrorHistory.Average(dataPoint => dataPoint.SuggestedGlobalAudioOffset) : null;
SuggestedOffset.Value = averageHitErrorHistory.Any() ? averageHitErrorHistory.Average(dataPoint => dataPoint.SuggestedGlobalAudioOffset) : null;
}

private float getXPositionForOffset(double offset) => (float)(Math.Clamp(offset, current.MinValue, current.MaxValue) / (2 * current.MaxValue));
Expand Down

0 comments on commit e6fe631

Please sign in to comment.