audio/mp3: Use new go-mp3 API

This commit is contained in:
Hajime Hoshi 2017-07-04 22:01:06 +09:00
parent 46a3f1530e
commit 16f84f6a89

View File

@ -50,7 +50,7 @@ func (s *Stream) Size() int64 {
}
func Decode(context *audio.Context, src audio.ReadSeekCloser) (*Stream, error) {
d, err := mp3.Decode(src)
d, err := mp3.NewDecoder(src)
if err != nil {
return nil, err
}