mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +01:00
audio/mp3: Use new go-mp3 API
This commit is contained in:
parent
46a3f1530e
commit
16f84f6a89
@ -50,7 +50,7 @@ func (s *Stream) Size() int64 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func Decode(context *audio.Context, src audio.ReadSeekCloser) (*Stream, error) {
|
func Decode(context *audio.Context, src audio.ReadSeekCloser) (*Stream, error) {
|
||||||
d, err := mp3.Decode(src)
|
d, err := mp3.NewDecoder(src)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user