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

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

Issue 1803153002: Add min/max values for AudioParams (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments Created 4 years, 7 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
« no previous file with comments | « third_party/WebKit/Source/modules/webaudio/OscillatorNode.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 de4c8ceb38b68b67ce5006af59a475d023f635d4..b410eb46d9284c9db3079dcaa1ab44ef4538fb4f 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, ParamTypeStereoPannerPan, 0))
+ , m_pan(AudioParam::create(context, ParamTypeStereoPannerPan, 0, -1, 1))
{
setHandler(StereoPannerHandler::create(*this, sampleRate, m_pan->handler()));
}
« no previous file with comments | « third_party/WebKit/Source/modules/webaudio/OscillatorNode.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698