Skip to content

Commit

Permalink
Speculative fix for Rollbar# 26472
Browse files Browse the repository at this point in the history
  • Loading branch information
Tkael committed Aug 22, 2024
1 parent e6b9c0d commit 30d4b60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SpeechService/SpeechService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ private static void FadeOut ( ISoundOut soundOut )
float fadePer10Milliseconds = soundOut.Volume / ActiveSpeechFadeOutMilliseconds * 10;
while ( soundOut.Volume > 0 )
{
soundOut.Volume -= fadePer10Milliseconds;
soundOut.Volume -= Math.Min( fadePer10Milliseconds, soundOut.Volume );
Thread.Sleep( 10 );
}
}
Expand Down

0 comments on commit 30d4b60

Please sign in to comment.