Speed up the player stop
This commit is contained in:
parent
fe418ae32f
commit
0a15d514a2
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user