diff --git a/audio/mp3/decode_js.go b/audio/mp3/decode_js.go index c2c94f218..2bfd12456 100644 --- a/audio/mp3/decode_js.go +++ b/audio/mp3/decode_js.go @@ -205,7 +205,7 @@ func decode(context *audio.Context, buf []byte) (*Stream, error) { if err != nil { return nil, err } - case <-time.After(time.Second): + case <-time.After(10 * time.Second): // Sometimes decode fails without calling the callbacks (#464). // Let's just try again in this case. return nil, errTimeout