Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(333)

Unified Diff: third_party/WebKit/Source/modules/webaudio/BiquadFilterNode.cpp

Issue 1928163002: Add a name attribute for each AudioParam (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compilation error Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/webaudio/BiquadFilterNode.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/BiquadFilterNode.cpp b/third_party/WebKit/Source/modules/webaudio/BiquadFilterNode.cpp
index 45a2fc7942c8be6bcb4a6a4e2517d45da67a0276..90951fcc105ca9b3cb08365a74222c62b96c719f 100644
--- a/third_party/WebKit/Source/modules/webaudio/BiquadFilterNode.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/BiquadFilterNode.cpp
@@ -29,10 +29,10 @@ namespace blink {
BiquadFilterNode::BiquadFilterNode(AbstractAudioContext& context, float sampleRate)
: AudioNode(context)
- , m_frequency(AudioParam::create(context, 350.0))
- , m_q(AudioParam::create(context, 1))
- , m_gain(AudioParam::create(context, 0.0))
- , m_detune(AudioParam::create(context, 0.0))
+ , m_frequency(AudioParam::create(context, ParamTypeBiquadFilterFrequency, 350.0))
+ , m_q(AudioParam::create(context, ParamTypeBiquadFilterQ, 1))
+ , m_gain(AudioParam::create(context, ParamTypeBiquadFilterGain, 0.0))
+ , m_detune(AudioParam::create(context, ParamTypeBiquadFilterDetune, 0.0))
{
setHandler(AudioBasicProcessorHandler::create(AudioHandler::NodeTypeBiquadFilter, *this, sampleRate, adoptPtr(new BiquadProcessor(sampleRate, 1, m_frequency->handler(), m_q->handler(), m_gain->handler(), m_detune->handler()))));
}
« no previous file with comments | « third_party/WebKit/Source/modules/webaudio/AudioParam.cpp ('k') | third_party/WebKit/Source/modules/webaudio/DelayNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698