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

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

Issue 2793593002: AudioWorklet prototype
Patch Set: Rebase after ThreadedWorkletMessaginProxy change Created 3 years, 6 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 case kParamTypeAudioListenerForwardZ: 130 case kParamTypeAudioListenerForwardZ:
131 return "AudioListener.forwardZ"; 131 return "AudioListener.forwardZ";
132 case kParamTypeAudioListenerUpX: 132 case kParamTypeAudioListenerUpX:
133 return "AudioListener.upX"; 133 return "AudioListener.upX";
134 case kParamTypeAudioListenerUpY: 134 case kParamTypeAudioListenerUpY:
135 return "AudioListener.upY"; 135 return "AudioListener.upY";
136 case kParamTypeAudioListenerUpZ: 136 case kParamTypeAudioListenerUpZ:
137 return "AudioListener.upZ"; 137 return "AudioListener.upZ";
138 case kParamTypeConstantSourceValue: 138 case kParamTypeConstantSourceValue:
139 return "ConstantSource.sourceValue"; 139 return "ConstantSource.sourceValue";
140 case kParamTypeAudioWorkletNode:
141 return "AudioWorkletNode.param";
140 }; 142 };
141 143
142 NOTREACHED(); 144 NOTREACHED();
143 return "UnknownNode.unknownAudioParam"; 145 return "UnknownNode.unknownAudioParam";
144 } 146 }
145 147
146 float AudioParamHandler::Value() { 148 float AudioParamHandler::Value() {
147 // Update value for timeline. 149 // Update value for timeline.
148 float v = IntrinsicValue(); 150 float v = IntrinsicValue();
149 if (GetDeferredTaskHandler().IsAudioThread()) { 151 if (GetDeferredTaskHandler().IsAudioThread()) {
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 return this; 506 return this;
505 } 507 }
506 508
507 AudioParam* AudioParam::cancelAndHoldAtTime(double start_time, 509 AudioParam* AudioParam::cancelAndHoldAtTime(double start_time,
508 ExceptionState& exception_state) { 510 ExceptionState& exception_state) {
509 Handler().Timeline().CancelAndHoldAtTime(start_time, exception_state); 511 Handler().Timeline().CancelAndHoldAtTime(start_time, exception_state);
510 return this; 512 return this;
511 } 513 }
512 514
513 } // namespace blink 515 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698