mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
audio/mp3, audio/vorbis, audio/wav: Remove deprecated functions
Updates #1127
This commit is contained in:
parent
46dddab71d
commit
825972b3e1
@ -98,13 +98,6 @@ func (s *Stream) Length() int64 {
|
||||
return int64(len(s.leftData) * 4)
|
||||
}
|
||||
|
||||
// Size returns the size of decoded stream in bytes.
|
||||
//
|
||||
// Deprecated: (as of 1.6.0) Use Length instead.
|
||||
func (s *Stream) Size() int64 {
|
||||
return s.Length()
|
||||
}
|
||||
|
||||
// seekNextFrame seeks the next frame and returns the new buffer with the new position.
|
||||
// seekNextFrame also returns true when seeking is successful, or false otherwise.
|
||||
//
|
||||
|
@ -67,13 +67,6 @@ func (s *Stream) Length() int64 {
|
||||
return s.orig.Length()
|
||||
}
|
||||
|
||||
// Size returns the size of decoded stream in bytes.
|
||||
//
|
||||
// Deprecated: (as of 1.6.0) Use Length instead.
|
||||
func (s *Stream) Size() int64 {
|
||||
return s.Length()
|
||||
}
|
||||
|
||||
// Decode decodes MP3 source and returns a decoded stream.
|
||||
//
|
||||
// Decode returns error when decoding fails or IO error happens.
|
||||
|
@ -56,13 +56,6 @@ func (s *Stream) Length() int64 {
|
||||
return s.size
|
||||
}
|
||||
|
||||
// Size returns the size of decoded stream in bytes.
|
||||
//
|
||||
// Deprecated: (as of 1.6.0) Use Length instead.
|
||||
func (s *Stream) Size() int64 {
|
||||
return s.Length()
|
||||
}
|
||||
|
||||
type decoder interface {
|
||||
Read([]float32) (int, error)
|
||||
SetPosition(int64) error
|
||||
|
@ -54,13 +54,6 @@ func (s *Stream) Length() int64 {
|
||||
return s.size
|
||||
}
|
||||
|
||||
// Size returns the size of decoded stream in bytes.
|
||||
//
|
||||
// Deprecated: (as of 1.6.0) Use Length instead.
|
||||
func (s *Stream) Size() int64 {
|
||||
return s.Length()
|
||||
}
|
||||
|
||||
type stream struct {
|
||||
src audio.ReadSeekCloser
|
||||
headerSize int64
|
||||
|
Loading…
Reference in New Issue
Block a user