mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +01:00
audio/vorbis: Copy Go file from go-vorbis
This commit is contained in:
parent
38d10e31db
commit
ba2df59c3a
@ -23,13 +23,12 @@ import (
|
||||
"io/ioutil"
|
||||
|
||||
"github.com/hajimehoshi/ebiten/exp/audio"
|
||||
"github.com/hajimehoshi/go-vorbis"
|
||||
)
|
||||
|
||||
// TODO: src should be ReadCloser?
|
||||
|
||||
func Decode(context *audio.Context, src audio.ReadSeekCloser) (*Stream, error) {
|
||||
decoded, channels, sampleRate, err := vorbis.Decode(src)
|
||||
decoded, channels, sampleRate, err := decode(src)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
5663
exp/audio/vorbis/vorbis.go
Normal file
5663
exp/audio/vorbis/vorbis.go
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user