diff --git a/VisualPinball.Unity/VisualPinball.Unity/Sound/SoundComponent.cs b/VisualPinball.Unity/VisualPinball.Unity/Sound/SoundComponent.cs index e7b92d2e3..7a4c6ff54 100644 --- a/VisualPinball.Unity/VisualPinball.Unity/Sound/SoundComponent.cs +++ b/VisualPinball.Unity/VisualPinball.Unity/Sound/SoundComponent.cs @@ -71,8 +71,10 @@ public async Task Play(float volume = 1f) return; } float timeSinceLastPlay = Time.unscaledTime - _lastPlayStartTime; - if (timeSinceLastPlay < 0.1f) { - Logger.Warn("Sound spam protection engaged. There is probably something wrong with the calling code."); + if (timeSinceLastPlay < 0.01f) { + Logger.Warn($"Sound spam protection engaged. Time since last play was less than " + + $"0.01 seconds ({timeSinceLastPlay}). There is probably something wrong with " + + $"the calling code."); return; }