mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-11 19:48:54 +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"
|
"io/ioutil"
|
||||||
|
|
||||||
"github.com/hajimehoshi/ebiten/exp/audio"
|
"github.com/hajimehoshi/ebiten/exp/audio"
|
||||||
"github.com/hajimehoshi/go-vorbis"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// TODO: src should be ReadCloser?
|
// TODO: src should be ReadCloser?
|
||||||
|
|
||||||
func Decode(context *audio.Context, src audio.ReadSeekCloser) (*Stream, error) {
|
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 {
|
if err != nil {
|
||||||
return nil, err
|
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