audio: Add comment about #146

This commit is contained in:
Hajime Hoshi 2016-02-09 03:27:09 +09:00
parent 8c23c8ba34
commit 1c10d46288

View File

@ -20,6 +20,12 @@ import (
"github.com/gopherjs/gopherjs/js" "github.com/gopherjs/gopherjs/js"
) )
// Known issue (#146): We can't change the sample rate of a AudioContext.
// This means that if AudioContext's sample rate is 48000,
// there is no way to play 44.1Hz PCM properly without resampling.
// Let's wait for the new spec and browser implementation:
// https://github.com/WebAudio/web-audio-api/issues/300
// Keep this so as not to be destroyed by GC. // Keep this so as not to be destroyed by GC.
var ( var (
nodes = []*js.Object{} nodes = []*js.Object{}