Improve music end

This commit is contained in:
nemunaire 2024-03-02 15:35:11 +01:00
parent d683fe8fde
commit 157fc04150
1 changed files with 2 additions and 2 deletions

View File

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