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

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

Issue 2789883002: setValueCurveAtTime takes sequence<float> for curve (Closed)
Patch Set: Use references; fix merge mistake. Created 3 years, 8 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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 AudioParam* linearRampToValueAtTime(float value, 239 AudioParam* linearRampToValueAtTime(float value,
240 double time, 240 double time,
241 ExceptionState&); 241 ExceptionState&);
242 AudioParam* exponentialRampToValueAtTime(float value, 242 AudioParam* exponentialRampToValueAtTime(float value,
243 double time, 243 double time,
244 ExceptionState&); 244 ExceptionState&);
245 AudioParam* setTargetAtTime(float target, 245 AudioParam* setTargetAtTime(float target,
246 double time, 246 double time,
247 double time_constant, 247 double time_constant,
248 ExceptionState&); 248 ExceptionState&);
249 AudioParam* setValueCurveAtTime(DOMFloat32Array* curve, 249 AudioParam* setValueCurveAtTime(const Vector<float>& curve,
250 double time, 250 double time,
251 double duration, 251 double duration,
252 ExceptionState&); 252 ExceptionState&);
253 AudioParam* cancelScheduledValues(double start_time, ExceptionState&); 253 AudioParam* cancelScheduledValues(double start_time, ExceptionState&);
254 AudioParam* cancelAndHoldAtTime(double start_time, ExceptionState&); 254 AudioParam* cancelAndHoldAtTime(double start_time, ExceptionState&);
255 255
256 private: 256 private:
257 AudioParam(BaseAudioContext&, 257 AudioParam(BaseAudioContext&,
258 AudioParamType, 258 AudioParamType,
259 double default_value, 259 double default_value,
260 float min, 260 float min,
261 float max); 261 float max);
262 262
263 void WarnIfOutsideRange(const String& param_methd, float value); 263 void WarnIfOutsideRange(const String& param_methd, float value);
264 264
265 RefPtr<AudioParamHandler> handler_; 265 RefPtr<AudioParamHandler> handler_;
266 Member<BaseAudioContext> context_; 266 Member<BaseAudioContext> context_;
267 }; 267 };
268 268
269 } // namespace blink 269 } // namespace blink
270 270
271 #endif // AudioParam_h 271 #endif // AudioParam_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698