audio/mp3, audio/vorbis, audio/wav: Remove deprecated functions

Updates #1127
This commit is contained in:
Hajime Hoshi 2020-10-04 15:35:02 +09:00
parent 46dddab71d
commit 825972b3e1
4 changed files with 0 additions and 28 deletions

View File

@ -98,13 +98,6 @@ func (s *Stream) Length() int64 {
return int64(len(s.leftData) * 4) 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 seeks the next frame and returns the new buffer with the new position.
// seekNextFrame also returns true when seeking is successful, or false otherwise. // seekNextFrame also returns true when seeking is successful, or false otherwise.
// //

View File

@ -67,13 +67,6 @@ func (s *Stream) Length() int64 {
return s.orig.Length() 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 decodes MP3 source and returns a decoded stream.
// //
// Decode returns error when decoding fails or IO error happens. // Decode returns error when decoding fails or IO error happens.

View File

@ -56,13 +56,6 @@ func (s *Stream) Length() int64 {
return s.size 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 { type decoder interface {
Read([]float32) (int, error) Read([]float32) (int, error)
SetPosition(int64) error SetPosition(int64) error

View File

@ -54,13 +54,6 @@ func (s *Stream) Length() int64 {
return s.size 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 { type stream struct {
src audio.ReadSeekCloser src audio.ReadSeekCloser
headerSize int64 headerSize int64