mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 11:18:54 +01:00
audio/mp3: Replace magic numbers with consts in io package
This commit is contained in:
parent
908ccb9404
commit
bb44eebe78
@ -77,11 +77,11 @@ func (s *Stream) Read(b []byte) (int, error) {
|
||||
func (s *Stream) Seek(offset int64, whence int) (int64, error) {
|
||||
next := int64(0)
|
||||
switch whence {
|
||||
case 0:
|
||||
case io.SeekStart:
|
||||
next = offset
|
||||
case 1:
|
||||
case io.SeekCurrent:
|
||||
next = int64(s.posInBytes) + offset
|
||||
case 2:
|
||||
case io.SeekEnd:
|
||||
next = s.Size() + offset
|
||||
}
|
||||
s.posInBytes = int(next)
|
||||
|
Loading…
Reference in New Issue
Block a user