mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 11:18:54 +01:00
audio: Bug fix: Reset playing state at the end of the readLoop
This commit is contained in:
parent
d2979e288d
commit
5ecc595ce4
@ -420,6 +420,7 @@ func (p *playerImpl) Play() {
|
||||
func (p *playerImpl) readLoop() {
|
||||
defer func() {
|
||||
p.m.Lock()
|
||||
p.playing = false
|
||||
p.runningReadLoop = false
|
||||
p.m.Unlock()
|
||||
}()
|
||||
|
Loading…
Reference in New Issue
Block a user