mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 19:58:54 +01:00
audio/internal/readerdriver: Mark EOF at the first reading
This commit is contained in:
parent
46ed239632
commit
88d2663bc5
@ -134,6 +134,7 @@ func (p *player) playImpl() {
|
|||||||
}
|
}
|
||||||
p.p.AppendBuffer(buf[:n])
|
p.p.AppendBuffer(buf[:n])
|
||||||
if err == io.EOF {
|
if err == io.EOF {
|
||||||
|
p.eof = true
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user