audio/vorbis: Bug fix: Set sample rate in JavaScript

This commit is contained in:
Hajime Hoshi 2016-03-20 04:12:02 +09:00
parent 11c9ab3fbf
commit 3acb3e08ce

View File

@ -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?