| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 public: | 52 public: |
| 53 static const double DefaultSmoothingConstant; | 53 static const double DefaultSmoothingConstant; |
| 54 static const double SnapThreshold; | 54 static const double SnapThreshold; |
| 55 | 55 |
| 56 static PassRefPtrWillBeRawPtr<AudioParam> create(AudioContext* context, doub
le defaultValue) | 56 static PassRefPtrWillBeRawPtr<AudioParam> create(AudioContext* context, doub
le defaultValue) |
| 57 { | 57 { |
| 58 return adoptRefWillBeNoop(new AudioParam(context, defaultValue)); | 58 return adoptRefWillBeNoop(new AudioParam(context, defaultValue)); |
| 59 } | 59 } |
| 60 | 60 |
| 61 // AudioSummingJunction | 61 // AudioSummingJunction |
| 62 #if !ENABLE(OILPAN) | |
| 63 virtual bool canUpdateState() OVERRIDE { return true; } | 62 virtual bool canUpdateState() OVERRIDE { return true; } |
| 64 #endif | |
| 65 virtual void didUpdate() OVERRIDE { } | 63 virtual void didUpdate() OVERRIDE { } |
| 66 | 64 |
| 67 // Intrinsic value. | 65 // Intrinsic value. |
| 68 float value(); | 66 float value(); |
| 69 void setValue(float); | 67 void setValue(float); |
| 70 | 68 |
| 71 // Final value for k-rate parameters, otherwise use calculateSampleAccurateV
alues() for a-rate. | 69 // Final value for k-rate parameters, otherwise use calculateSampleAccurateV
alues() for a-rate. |
| 72 // Must be called in the audio thread. | 70 // Must be called in the audio thread. |
| 73 float finalValue(); | 71 float finalValue(); |
| 74 | 72 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 | 121 |
| 124 // Smoothing (de-zippering) | 122 // Smoothing (de-zippering) |
| 125 double m_smoothedValue; | 123 double m_smoothedValue; |
| 126 | 124 |
| 127 AudioParamTimeline m_timeline; | 125 AudioParamTimeline m_timeline; |
| 128 }; | 126 }; |
| 129 | 127 |
| 130 } // namespace blink | 128 } // namespace blink |
| 131 | 129 |
| 132 #endif // AudioParam_h | 130 #endif // AudioParam_h |
| OLD | NEW |