mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
audio/vorbis: Bug fix: Set sample rate in JavaScript
This commit is contained in:
parent
11c9ab3fbf
commit
3acb3e08ce
@ -33,7 +33,9 @@ func Decode(context *audio.Context, src io.Reader) (Stream, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
s := &stream{}
|
s := &stream{
|
||||||
|
sampleRate: context.SampleRate(),
|
||||||
|
}
|
||||||
ch := make(chan struct{})
|
ch := make(chan struct{})
|
||||||
|
|
||||||
// TODO: 1 is a correct second argument?
|
// TODO: 1 is a correct second argument?
|
||||||
|
Loading…
Reference in New Issue
Block a user