mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 10:48:53 +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) {
|
||||
d, err := mp3.Decode(src)
|
||||
d, err := mp3.NewDecoder(src)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user