mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-27 11:12:44 +01:00
audio: Bug fix: context.ready should be set true after writing
This commit is contained in:
parent
2e35d9dc70
commit
876340da17
@ -422,6 +422,7 @@ func (p *playerImpl) loop() {
|
|||||||
p.context.setError(err)
|
p.context.setError(err)
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
p.context.setReady()
|
||||||
}
|
}
|
||||||
close(wclosed)
|
close(wclosed)
|
||||||
}()
|
}()
|
||||||
@ -483,7 +484,6 @@ func (p *playerImpl) read() ([]byte, bool) {
|
|||||||
buf[2*i+1] = byte(v16 >> 8)
|
buf[2*i+1] = byte(v16 >> 8)
|
||||||
}
|
}
|
||||||
p.pos += int64(len(buf))
|
p.pos += int64(len(buf))
|
||||||
p.context.setReady()
|
|
||||||
|
|
||||||
return buf, true
|
return buf, true
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user