audio/internal/cbackend: add comments

This commit is contained in:
Hajime Hoshi 2022-07-01 02:26:09 +09:00
parent 12d274eb0a
commit 858f3926ee

View File

@ -259,6 +259,7 @@ func (p *playerImpl) Seek(offset int64, whence int) (int64, error) {
p.m.Lock()
defer p.m.Unlock()
// If a player is playing, keep playing even after this seeking.
if p.state == playerPlay {
defer p.playImpl()
}