mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-09-20 05:12:18 +02:00
audio/mp3: Adjust timeout
This commit is contained in:
parent
3855bcc5a4
commit
50a6158513
@ -205,7 +205,7 @@ func decode(context *audio.Context, buf []byte) (*Stream, error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
case <-time.After(10 * time.Second):
|
||||
case <-time.After(3 * time.Second):
|
||||
// Sometimes decode fails without calling the callbacks (#464).
|
||||
// Let's just try again in this case.
|
||||
return nil, errTimeout
|
||||
|
Loading…
Reference in New Issue
Block a user