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

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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 case ParamTypeAudioListenerForwardY: 127 case ParamTypeAudioListenerForwardY:
128 return "AudioListener.forwardY"; 128 return "AudioListener.forwardY";
129 case ParamTypeAudioListenerForwardZ: 129 case ParamTypeAudioListenerForwardZ:
130 return "AudioListener.forwardZ"; 130 return "AudioListener.forwardZ";
131 case ParamTypeAudioListenerUpX: 131 case ParamTypeAudioListenerUpX:
132 return "AudioListener.upX"; 132 return "AudioListener.upX";
133 case ParamTypeAudioListenerUpY: 133 case ParamTypeAudioListenerUpY:
134 return "AudioListener.upY"; 134 return "AudioListener.upY";
135 case ParamTypeAudioListenerUpZ: 135 case ParamTypeAudioListenerUpZ:
136 return "AudioListener.upZ"; 136 return "AudioListener.upZ";
137 case ParamTypeConstantSourceValue:
138 return "ConstantSource.sourceValue";
137 }; 139 };
138 140
139 NOTREACHED(); 141 NOTREACHED();
140 return "UnknownNode.unknownAudioParam"; 142 return "UnknownNode.unknownAudioParam";
141 } 143 }
142 144
143 float AudioParamHandler::value() 145 float AudioParamHandler::value()
144 { 146 {
145 // Update value for timeline. 147 // Update value for timeline.
146 float v = intrinsicValue(); 148 float v = intrinsicValue();
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 } 499 }
498 500
499 AudioParam* AudioParam::cancelScheduledValues(double startTime, ExceptionState& exceptionState) 501 AudioParam* AudioParam::cancelScheduledValues(double startTime, ExceptionState& exceptionState)
500 { 502 {
501 handler().timeline().cancelScheduledValues(startTime, exceptionState); 503 handler().timeline().cancelScheduledValues(startTime, exceptionState);
502 return this; 504 return this;
503 } 505 }
504 506
505 } // namespace blink 507 } // namespace blink
506 508
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698