mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07: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
a2cc2eaf26
commit
93a3ca0e54
@ -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