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

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: 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 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 case ParamTypeDynamicsCompressorRelease: 70 case ParamTypeDynamicsCompressorRelease:
71 return "DynamicsCompressor.release"; 71 return "DynamicsCompressor.release";
72 case ParamTypeGainGain: 72 case ParamTypeGainGain:
73 return "Gain.gain"; 73 return "Gain.gain";
74 case ParamTypeOscillatorFrequency: 74 case ParamTypeOscillatorFrequency:
75 return "Oscillator.frequency"; 75 return "Oscillator.frequency";
76 case ParamTypeOscillatorDetune: 76 case ParamTypeOscillatorDetune:
77 return "Oscillator.detune"; 77 return "Oscillator.detune";
78 case ParamTypeStereoPannerPan: 78 case ParamTypeStereoPannerPan:
79 return "StereoPanner.pan"; 79 return "StereoPanner.pan";
80 case ParamTypePannerPositionX:
81 return "Panner.positionX";
82 case ParamTypePannerPositionY:
83 return "Panner.positionY";
84 case ParamTypePannerPositionZ:
85 return "Panner.positionZ";
86 case ParamTypePannerOrientationX:
87 return "Panner.orientationX";
88 case ParamTypePannerOrientationY:
89 return "Panner.orientationY";
90 case ParamTypePannerOrientationZ:
91 return "Panner.orientationZ";
92 case ParamTypeAudioListenerPositionX:
93 return "AudioListener.positionX";
94 case ParamTypeAudioListenerPositionY:
95 return "AudioListener.positionY";
96 case ParamTypeAudioListenerPositionZ:
97 return "AudioListener.positionZ";
98 case ParamTypeAudioListenerForwardX:
99 return "AudioListener.forwardX";
100 case ParamTypeAudioListenerForwardY:
101 return "AudioListener.forwardY";
102 case ParamTypeAudioListenerForwardZ:
103 return "AudioListener.forwardZ";
104 case ParamTypeAudioListenerUpX:
105 return "AudioListener.upX";
106 case ParamTypeAudioListenerUpY:
107 return "AudioListener.upY";
108 case ParamTypeAudioListenerUpZ:
109 return "AudioListener.upZ";
80 }; 110 };
81 111
82 NOTREACHED(); 112 NOTREACHED();
83 return "UnknownNode.unknownAudioParam"; 113 return "UnknownNode.unknownAudioParam";
84 } 114 }
85 115
86 float AudioParamHandler::value() 116 float AudioParamHandler::value()
87 { 117 {
88 // Update value for timeline. 118 // Update value for timeline.
89 float v = intrinsicValue(); 119 float v = intrinsicValue();
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 } 329 }
300 330
301 AudioParam* AudioParam::cancelScheduledValues(double startTime, ExceptionState& exceptionState) 331 AudioParam* AudioParam::cancelScheduledValues(double startTime, ExceptionState& exceptionState)
302 { 332 {
303 handler().timeline().cancelScheduledValues(startTime, exceptionState); 333 handler().timeline().cancelScheduledValues(startTime, exceptionState);
304 return this; 334 return this;
305 } 335 }
306 336
307 } // namespace blink 337 } // namespace blink
308 338
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698