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

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

Issue 1928163002: Add a name attribute for each AudioParam (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use enum instead of string 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/StereoPannerNode.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/StereoPannerNode.cpp b/third_party/WebKit/Source/modules/webaudio/StereoPannerNode.cpp
index 0692d9f896475035d7d5b54864c17d3c6d16e8da..241038a854cc2504b6d5e4220bcebc7aa69de889 100644
--- a/third_party/WebKit/Source/modules/webaudio/StereoPannerNode.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/StereoPannerNode.cpp
@@ -136,7 +136,7 @@ void StereoPannerHandler::setChannelCountMode(const String& mode, ExceptionState
StereoPannerNode::StereoPannerNode(AbstractAudioContext& context, float sampleRate)
: AudioNode(context)
- , m_pan(AudioParam::create(context, 0))
+ , m_pan(AudioParam::create(context, AudioParamHandler::StereoPannerPan, 0))
{
setHandler(StereoPannerHandler::create(*this, sampleRate, m_pan->handler()));
}

Powered by Google App Engine
This is Rietveld 408576698