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

Side by Side Diff: Source/modules/webaudio/AudioParamTimeline.cpp

Issue 403013002: Rename WebCore to blink in Modules (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 18 matching lines...) Expand all
29 29
30 #include "modules/webaudio/AudioParamTimeline.h" 30 #include "modules/webaudio/AudioParamTimeline.h"
31 31
32 #include "bindings/core/v8/ExceptionState.h" 32 #include "bindings/core/v8/ExceptionState.h"
33 #include "core/dom/ExceptionCode.h" 33 #include "core/dom/ExceptionCode.h"
34 #include "platform/audio/AudioUtilities.h" 34 #include "platform/audio/AudioUtilities.h"
35 #include "platform/FloatConversion.h" 35 #include "platform/FloatConversion.h"
36 #include "wtf/MathExtras.h" 36 #include "wtf/MathExtras.h"
37 #include <algorithm> 37 #include <algorithm>
38 38
39 namespace WebCore { 39 namespace blink {
40 40
41 void AudioParamTimeline::setValueAtTime(float value, double time) 41 void AudioParamTimeline::setValueAtTime(float value, double time)
42 { 42 {
43 insertEvent(ParamEvent(ParamEvent::SetValue, value, time, 0, 0, nullptr)); 43 insertEvent(ParamEvent(ParamEvent::SetValue, value, time, 0, 0, nullptr));
44 } 44 }
45 45
46 void AudioParamTimeline::linearRampToValueAtTime(float value, double time) 46 void AudioParamTimeline::linearRampToValueAtTime(float value, double time)
47 { 47 {
48 insertEvent(ParamEvent(ParamEvent::LinearRampToValue, value, time, 0, 0, nul lptr)); 48 insertEvent(ParamEvent(ParamEvent::LinearRampToValue, value, time, 0, 0, nul lptr));
49 } 49 }
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 } 369 }
370 370
371 // If there's any time left after processing the last event then just propag ate the last value 371 // If there's any time left after processing the last event then just propag ate the last value
372 // to the end of the values buffer. 372 // to the end of the values buffer.
373 for (; writeIndex < numberOfValues; ++writeIndex) 373 for (; writeIndex < numberOfValues; ++writeIndex)
374 values[writeIndex] = value; 374 values[writeIndex] = value;
375 375
376 return value; 376 return value;
377 } 377 }
378 378
379 } // namespace WebCore 379 } // namespace blink
380 380
381 #endif // ENABLE(WEB_AUDIO) 381 #endif // ENABLE(WEB_AUDIO)
OLDNEW
« no previous file with comments | « Source/modules/webaudio/AudioParamTimeline.h ('k') | Source/modules/webaudio/AudioProcessingEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698