Speed up the player stop

This commit is contained in:
nemunaire 2023-11-04 09:50:46 +01:00
parent fe418ae32f
commit 0a15d514a2
1 changed files with 2 additions and 2 deletions

View File

@ -223,10 +223,10 @@ loop:
// Calm down music
loopcalm:
for i := 0; i < 128 && p.volume >= 15000; i += 1 {
for i := 0; i < 64 && p.volume >= 15000; i += 1 {
timer := time.NewTimer(40 * time.Millisecond)
p.volume -= 256
p.volume -= 512
p.SetVolume(p.volume)
select {