mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
Revert "audio: Seek the source first at readerPlayer"
This reverts commit 68f12f066e
.
Reason: Some data can be read after seeking before resetting
This commit is contained in:
parent
68f12f066e
commit
78789a511c
@ -134,11 +134,8 @@ 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 nil
|
||||
return p.src.Seek(offset)
|
||||
}
|
||||
|
||||
func (p *readerPlayer) source() io.Reader {
|
||||
|
Loading…
Reference in New Issue
Block a user