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

Side by Side Diff: third_party/WebKit/Source/modules/webaudio/AudioParam.cpp

Issue 1820403002: Implement Automations for PannerNode and AutioListener (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and update histograms.xml 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 case ParamTypeDynamicsCompressorRelease: 93 case ParamTypeDynamicsCompressorRelease:
94 return "DynamicsCompressor.release"; 94 return "DynamicsCompressor.release";
95 case ParamTypeGainGain: 95 case ParamTypeGainGain:
96 return "Gain.gain"; 96 return "Gain.gain";
97 case ParamTypeOscillatorFrequency: 97 case ParamTypeOscillatorFrequency:
98 return "Oscillator.frequency"; 98 return "Oscillator.frequency";
99 case ParamTypeOscillatorDetune: 99 case ParamTypeOscillatorDetune:
100 return "Oscillator.detune"; 100 return "Oscillator.detune";
101 case ParamTypeStereoPannerPan: 101 case ParamTypeStereoPannerPan:
102 return "StereoPanner.pan"; 102 return "StereoPanner.pan";
103 case ParamTypePannerPositionX:
104 return "Panner.positionX";
105 case ParamTypePannerPositionY:
106 return "Panner.positionY";
107 case ParamTypePannerPositionZ:
108 return "Panner.positionZ";
109 case ParamTypePannerOrientationX:
110 return "Panner.orientationX";
111 case ParamTypePannerOrientationY:
112 return "Panner.orientationY";
113 case ParamTypePannerOrientationZ:
114 return "Panner.orientationZ";
115 case ParamTypeAudioListenerPositionX:
116 return "AudioListener.positionX";
117 case ParamTypeAudioListenerPositionY:
118 return "AudioListener.positionY";
119 case ParamTypeAudioListenerPositionZ:
120 return "AudioListener.positionZ";
121 case ParamTypeAudioListenerForwardX:
122 return "AudioListener.forwardX";
123 case ParamTypeAudioListenerForwardY:
124 return "AudioListener.forwardY";
125 case ParamTypeAudioListenerForwardZ:
126 return "AudioListener.forwardZ";
127 case ParamTypeAudioListenerUpX:
128 return "AudioListener.upX";
129 case ParamTypeAudioListenerUpY:
130 return "AudioListener.upY";
131 case ParamTypeAudioListenerUpZ:
132 return "AudioListener.upZ";
103 }; 133 };
104 134
105 NOTREACHED(); 135 NOTREACHED();
106 return "UnknownNode.unknownAudioParam"; 136 return "UnknownNode.unknownAudioParam";
107 } 137 }
108 138
109 float AudioParamHandler::value() 139 float AudioParamHandler::value()
110 { 140 {
111 // Update value for timeline. 141 // Update value for timeline.
112 float v = intrinsicValue(); 142 float v = intrinsicValue();
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 } 410 }
381 411
382 AudioParam* AudioParam::cancelScheduledValues(double startTime, ExceptionState& exceptionState) 412 AudioParam* AudioParam::cancelScheduledValues(double startTime, ExceptionState& exceptionState)
383 { 413 {
384 handler().timeline().cancelScheduledValues(startTime, exceptionState); 414 handler().timeline().cancelScheduledValues(startTime, exceptionState);
385 return this; 415 return this;
386 } 416 }
387 417
388 } // namespace blink 418 } // namespace blink
389 419
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698