mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
audio/internal/cbackend: add comments
This commit is contained in:
parent
12d274eb0a
commit
858f3926ee
@ -259,6 +259,7 @@ func (p *playerImpl) Seek(offset int64, whence int) (int64, error) {
|
|||||||
p.m.Lock()
|
p.m.Lock()
|
||||||
defer p.m.Unlock()
|
defer p.m.Unlock()
|
||||||
|
|
||||||
|
// If a player is playing, keep playing even after this seeking.
|
||||||
if p.state == playerPlay {
|
if p.state == playerPlay {
|
||||||
defer p.playImpl()
|
defer p.playImpl()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user