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

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

Issue 2134813002: Implement ConstantSourceNode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 2 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 case ParamTypeAudioListenerForwardY: 128 case ParamTypeAudioListenerForwardY:
129 return "AudioListener.forwardY"; 129 return "AudioListener.forwardY";
130 case ParamTypeAudioListenerForwardZ: 130 case ParamTypeAudioListenerForwardZ:
131 return "AudioListener.forwardZ"; 131 return "AudioListener.forwardZ";
132 case ParamTypeAudioListenerUpX: 132 case ParamTypeAudioListenerUpX:
133 return "AudioListener.upX"; 133 return "AudioListener.upX";
134 case ParamTypeAudioListenerUpY: 134 case ParamTypeAudioListenerUpY:
135 return "AudioListener.upY"; 135 return "AudioListener.upY";
136 case ParamTypeAudioListenerUpZ: 136 case ParamTypeAudioListenerUpZ:
137 return "AudioListener.upZ"; 137 return "AudioListener.upZ";
138 case ParamTypeConstantSourceValue:
139 return "ConstantSource.sourceValue";
138 }; 140 };
139 141
140 NOTREACHED(); 142 NOTREACHED();
141 return "UnknownNode.unknownAudioParam"; 143 return "UnknownNode.unknownAudioParam";
142 } 144 }
143 145
144 float AudioParamHandler::value() { 146 float AudioParamHandler::value() {
145 // Update value for timeline. 147 // Update value for timeline.
146 float v = intrinsicValue(); 148 float v = intrinsicValue();
147 if (deferredTaskHandler().isAudioThread()) { 149 if (deferredTaskHandler().isAudioThread()) {
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 return this; 510 return this;
509 } 511 }
510 512
511 AudioParam* AudioParam::cancelScheduledValues(double startTime, 513 AudioParam* AudioParam::cancelScheduledValues(double startTime,
512 ExceptionState& exceptionState) { 514 ExceptionState& exceptionState) {
513 handler().timeline().cancelScheduledValues(startTime, exceptionState); 515 handler().timeline().cancelScheduledValues(startTime, exceptionState);
514 return this; 516 return this;
515 } 517 }
516 518
517 } // namespace blink 519 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/webaudio/AudioParam.h ('k') | third_party/WebKit/Source/modules/webaudio/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698