mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-24 18:02:02 +01:00
audio: Seek the source first at readerPlayer
This commit is contained in:
parent
2f8172f819
commit
68f12f066e
@ -134,8 +134,11 @@ func (p *readerPlayer) Seek(offset time.Duration) error {
|
||||
p.m.Lock()
|
||||
defer p.m.Unlock()
|
||||
|
||||
if err := p.src.Seek(offset); err != nil {
|
||||
return err
|
||||
}
|
||||
p.player.Reset()
|
||||
return p.src.Seek(offset)
|
||||
return nil
|
||||
}
|
||||
|
||||
func (p *readerPlayer) source() io.Reader {
|
||||
|
Loading…
Reference in New Issue
Block a user