mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-24 00:24:14 +00:00
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:
parent
ee5a02020e
commit
3dc4ffe44f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user