mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 11:48:55 +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() {
|
func (p *playerImpl) readLoop() {
|
||||||
defer func() {
|
defer func() {
|
||||||
p.m.Lock()
|
p.m.Lock()
|
||||||
|
p.playing = false
|
||||||
p.runningReadLoop = false
|
p.runningReadLoop = false
|
||||||
p.m.Unlock()
|
p.m.Unlock()
|
||||||
}()
|
}()
|
||||||
|
Loading…
Reference in New Issue
Block a user