Fix player returning to high volume on stop
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
nemunaire 2024-04-13 10:39:03 +02:00
parent 84e05c8b55
commit c2925a2159

View File

@ -228,7 +228,7 @@ loop:
// Calm down music
loopcalm:
for i := 0; i < 128 && p.volume >= 500; i += 1 {
for i := 0; i < 128 && p.volume >= 768; i += 1 {
timer := time.NewTimer(40 * time.Millisecond)
p.volume -= 768