mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +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 {
|
||||
return nil, err
|
||||
}
|
||||
s := &stream{}
|
||||
s := &stream{
|
||||
sampleRate: context.SampleRate(),
|
||||
}
|
||||
ch := make(chan struct{})
|
||||
|
||||
// TODO: 1 is a correct second argument?
|
||||
|
Loading…
Reference in New Issue
Block a user