| 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 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | 21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
| 22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH | 22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH |
| 23 * DAMAGE. | 23 * DAMAGE. |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #ifndef GainNode_h | 26 #ifndef GainNode_h |
| 27 #define GainNode_h | 27 #define GainNode_h |
| 28 | 28 |
| 29 #include "modules/webaudio/AudioNode.h" | 29 #include "modules/webaudio/AudioNode.h" |
| 30 #include "modules/webaudio/AudioParam.h" | 30 #include "modules/webaudio/AudioParam.h" |
| 31 #include "wtf/PassRefPtr.h" | 31 #include "platform/wtf/PassRefPtr.h" |
| 32 #include "wtf/Threading.h" | 32 #include "platform/wtf/Threading.h" |
| 33 | 33 |
| 34 namespace blink { | 34 namespace blink { |
| 35 | 35 |
| 36 class BaseAudioContext; | 36 class BaseAudioContext; |
| 37 class GainOptions; | 37 class GainOptions; |
| 38 | 38 |
| 39 // GainNode is an AudioNode with one input and one output which applies a gain | 39 // GainNode is an AudioNode with one input and one output which applies a gain |
| 40 // (volume) change to the audio signal. De-zippering (smoothing) is applied | 40 // (volume) change to the audio signal. De-zippering (smoothing) is applied |
| 41 // when the gain value is changed dynamically. | 41 // when the gain value is changed dynamically. |
| 42 | 42 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 | 77 |
| 78 private: | 78 private: |
| 79 GainNode(BaseAudioContext&); | 79 GainNode(BaseAudioContext&); |
| 80 | 80 |
| 81 Member<AudioParam> gain_; | 81 Member<AudioParam> gain_; |
| 82 }; | 82 }; |
| 83 | 83 |
| 84 } // namespace blink | 84 } // namespace blink |
| 85 | 85 |
| 86 #endif // GainNode_h | 86 #endif // GainNode_h |
| OLD | NEW |