| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 | 56 |
| 57 static PassRefPtr<AudioParamHandler> create(AudioContext& context, double de
faultValue) | 57 static PassRefPtr<AudioParamHandler> create(AudioContext& context, double de
faultValue) |
| 58 { | 58 { |
| 59 return adoptRef(new AudioParamHandler(context, defaultValue)); | 59 return adoptRef(new AudioParamHandler(context, defaultValue)); |
| 60 } | 60 } |
| 61 DECLARE_TRACE(); | 61 DECLARE_TRACE(); |
| 62 // This should be used only in audio rendering thread. | 62 // This should be used only in audio rendering thread. |
| 63 AudioContext* context() const; | 63 AudioContext* context() const; |
| 64 | 64 |
| 65 // AudioSummingJunction | 65 // AudioSummingJunction |
| 66 virtual void didUpdate() override { } | 66 void didUpdate() override { } |
| 67 | 67 |
| 68 AudioParamTimeline& timeline() { return m_timeline; } | 68 AudioParamTimeline& timeline() { return m_timeline; } |
| 69 | 69 |
| 70 // Intrinsic value. | 70 // Intrinsic value. |
| 71 float value(); | 71 float value(); |
| 72 void setValue(float); | 72 void setValue(float); |
| 73 | 73 |
| 74 // Final value for k-rate parameters, otherwise use calculateSampleAccurateV
alues() for a-rate. | 74 // Final value for k-rate parameters, otherwise use calculateSampleAccurateV
alues() for a-rate. |
| 75 // Must be called in the audio thread. | 75 // Must be called in the audio thread. |
| 76 float finalValue(); | 76 float finalValue(); |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 private: | 148 private: |
| 149 AudioParam(AudioContext&, double defaultValue); | 149 AudioParam(AudioContext&, double defaultValue); |
| 150 | 150 |
| 151 RefPtr<AudioParamHandler> m_handler; | 151 RefPtr<AudioParamHandler> m_handler; |
| 152 Member<AudioContext> m_context; | 152 Member<AudioContext> m_context; |
| 153 }; | 153 }; |
| 154 | 154 |
| 155 } // namespace blink | 155 } // namespace blink |
| 156 | 156 |
| 157 #endif // AudioParam_h | 157 #endif // AudioParam_h |
| OLD | NEW |