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

Unified Diff: third_party/WebKit/Source/modules/webaudio/GainNode.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/GainNode.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/GainNode.cpp b/third_party/WebKit/Source/modules/webaudio/GainNode.cpp
index 581becbcc31791bc67c4fb32593f2ccab243c4c2..6c8ad44f22c19bbfa9e88346b24fbcc099cf33ab 100644
--- a/third_party/WebKit/Source/modules/webaudio/GainNode.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/GainNode.cpp
@@ -116,7 +116,7 @@ void GainHandler::checkNumberOfChannelsForInput(AudioNodeInput* input)
GainNode::GainNode(AbstractAudioContext& context, float sampleRate)
: AudioNode(context)
- , m_gain(AudioParam::create(context, 1.0))
+ , m_gain(AudioParam::create(context, ParamTypeGainGain, 1.0))
{
setHandler(GainHandler::create(*this, sampleRate, m_gain->handler()));
}

Powered by Google App Engine
This is Rietveld 408576698