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 ee5a02020e
commit 3dc4ffe44f

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)