OLD | NEW |
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 * 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 AudioParamHandler& threshold, | 46 AudioParamHandler& threshold, |
47 AudioParamHandler& knee, | 47 AudioParamHandler& knee, |
48 AudioParamHandler& ratio, | 48 AudioParamHandler& ratio, |
49 AudioParamHandler& attack, | 49 AudioParamHandler& attack, |
50 AudioParamHandler& release); | 50 AudioParamHandler& release); |
51 | 51 |
52 ~DynamicsCompressorHandler(); | 52 ~DynamicsCompressorHandler(); |
53 | 53 |
54 // AudioHandler | 54 // AudioHandler |
55 void process(size_t framesToProcess) override; | 55 void process(size_t framesToProcess) override; |
| 56 void processOnlyAudioParams(size_t framesToProcess) override; |
56 void initialize() override; | 57 void initialize() override; |
57 void clearInternalStateWhenDisabled() override; | 58 void clearInternalStateWhenDisabled() override; |
58 | 59 |
59 float reductionValue() const { return m_reduction; } | 60 float reductionValue() const { return m_reduction; } |
60 | 61 |
61 private: | 62 private: |
62 DynamicsCompressorHandler(AudioNode&, | 63 DynamicsCompressorHandler(AudioNode&, |
63 float sampleRate, | 64 float sampleRate, |
64 AudioParamHandler& threshold, | 65 AudioParamHandler& threshold, |
65 AudioParamHandler& knee, | 66 AudioParamHandler& knee, |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 Member<AudioParam> m_ratio; | 107 Member<AudioParam> m_ratio; |
107 Member<AudioParam> m_attack; | 108 Member<AudioParam> m_attack; |
108 Member<AudioParam> m_release; | 109 Member<AudioParam> m_release; |
109 | 110 |
110 FRIEND_TEST_ALL_PREFIXES(DynamicsCompressorNodeTest, ProcessorLifetime); | 111 FRIEND_TEST_ALL_PREFIXES(DynamicsCompressorNodeTest, ProcessorLifetime); |
111 }; | 112 }; |
112 | 113 |
113 } // namespace blink | 114 } // namespace blink |
114 | 115 |
115 #endif // DynamicsCompressorNode_h | 116 #endif // DynamicsCompressorNode_h |
OLD | NEW |