Bug 804387. Part 7.2: Let BiquadFilterNode use the actual context sample rate. r=ehsan

--HG--
rename : content/media/MediaStreamGraph.cpp => content/media/MediaStreamGraphImpl.h
extra : rebase_source : 3d50af2ff2dff9fa047d59d0f3c815dec5cc686c
This commit is contained in:
Robert O'Callahan 2013-02-05 10:55:50 +13:00
parent a2cc2eaf26
commit 93a3ca0e54

View File

@ -22,9 +22,7 @@ NS_IMPL_RELEASE_INHERITED(BiquadFilterNode, AudioNode)
static float
Nyquist(AudioContext* aContext)
{
// TODO: Replace the hardcoded 44100 here with AudioContext::SampleRate()
// when we implement that.
return 0.5f * 44100;
return 0.5f * aContext->SampleRate();
}
BiquadFilterNode::BiquadFilterNode(AudioContext* aContext)