| OLD | NEW |
| 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 13 matching lines...) Expand all Loading... |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #include "modules/webaudio/AudioParam.h" | 26 #include "modules/webaudio/AudioParam.h" |
| 27 | 27 |
| 28 #include "core/dom/ExceptionCode.h" | 28 #include "core/dom/ExceptionCode.h" |
| 29 #include "core/inspector/ConsoleMessage.h" | 29 #include "core/inspector/ConsoleMessage.h" |
| 30 #include "modules/webaudio/AudioNode.h" | 30 #include "modules/webaudio/AudioNode.h" |
| 31 #include "modules/webaudio/AudioNodeOutput.h" | 31 #include "modules/webaudio/AudioNodeOutput.h" |
| 32 #include "platform/Histogram.h" | 32 #include "platform/Histogram.h" |
| 33 #include "platform/audio/AudioUtilities.h" | 33 #include "platform/audio/AudioUtilities.h" |
| 34 #include "wtf/MathExtras.h" | 34 #include "platform/wtf/MathExtras.h" |
| 35 | 35 |
| 36 namespace blink { | 36 namespace blink { |
| 37 | 37 |
| 38 const double AudioParamHandler::kDefaultSmoothingConstant = 0.05; | 38 const double AudioParamHandler::kDefaultSmoothingConstant = 0.05; |
| 39 const double AudioParamHandler::kSnapThreshold = 0.001; | 39 const double AudioParamHandler::kSnapThreshold = 0.001; |
| 40 | 40 |
| 41 AudioParamHandler::AudioParamHandler(BaseAudioContext& context, | 41 AudioParamHandler::AudioParamHandler(BaseAudioContext& context, |
| 42 AudioParamType param_type, | 42 AudioParamType param_type, |
| 43 double default_value, | 43 double default_value, |
| 44 float min_value, | 44 float min_value, |
| (...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 519 return this; | 519 return this; |
| 520 } | 520 } |
| 521 | 521 |
| 522 AudioParam* AudioParam::cancelAndHoldAtTime(double start_time, | 522 AudioParam* AudioParam::cancelAndHoldAtTime(double start_time, |
| 523 ExceptionState& exception_state) { | 523 ExceptionState& exception_state) { |
| 524 Handler().Timeline().CancelAndHoldAtTime(start_time, exception_state); | 524 Handler().Timeline().CancelAndHoldAtTime(start_time, exception_state); |
| 525 return this; | 525 return this; |
| 526 } | 526 } |
| 527 | 527 |
| 528 } // namespace blink | 528 } // namespace blink |
| OLD | NEW |