Improve music end
This commit is contained in:
parent
d683fe8fde
commit
157fc04150
@ -228,10 +228,10 @@ loop:
|
||||
|
||||
// Calm down music
|
||||
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)
|
||||
|
||||
p.volume -= 512
|
||||
p.volume -= 768
|
||||
p.SetVolume(p.volume)
|
||||
|
||||
select {
|
||||
|
Loading…
Reference in New Issue
Block a user