mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-12 12:08:58 +01:00
Revert "audio: Refactoring: Use the underlying source's Seek in Read"
This reverts commit 15ba3ed4d1
.
Reason: Test failure
This commit is contained in:
parent
15ba3ed4d1
commit
b81736793d
@ -83,13 +83,12 @@ func (i *InfiniteLoop) Read(b []byte) (int, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if err == io.EOF || i.pos == i.length() {
|
if err == io.EOF || i.pos == i.length() {
|
||||||
pos, err := i.src.Seek(i.lstart, io.SeekStart)
|
pos, err := i.Seek(i.lstart, io.SeekStart)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return 0, err
|
return 0, err
|
||||||
}
|
}
|
||||||
i.pos = pos
|
i.pos = pos
|
||||||
}
|
}
|
||||||
|
|
||||||
return n, nil
|
return n, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user