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 13 matching lines...) Expand all Loading... |
24 | 24 |
25 #ifndef DynamicsCompressorNode_h | 25 #ifndef DynamicsCompressorNode_h |
26 #define DynamicsCompressorNode_h | 26 #define DynamicsCompressorNode_h |
27 | 27 |
28 #include "base/gtest_prod_util.h" | 28 #include "base/gtest_prod_util.h" |
29 #include "modules/ModulesExport.h" | 29 #include "modules/ModulesExport.h" |
30 #include "modules/webaudio/AudioNode.h" | 30 #include "modules/webaudio/AudioNode.h" |
31 #include "modules/webaudio/AudioParam.h" | 31 #include "modules/webaudio/AudioParam.h" |
32 #include "wtf/OwnPtr.h" | 32 #include "wtf/OwnPtr.h" |
33 | 33 |
34 #if ENABLE(WEB_AUDIO) | |
35 | |
36 namespace blink { | 34 namespace blink { |
37 | 35 |
38 class AbstractAudioContext; | 36 class AbstractAudioContext; |
39 class DynamicsCompressor; | 37 class DynamicsCompressor; |
40 | 38 |
41 class MODULES_EXPORT DynamicsCompressorHandler final : public AudioHandler { | 39 class MODULES_EXPORT DynamicsCompressorHandler final : public AudioHandler { |
42 public: | 40 public: |
43 static PassRefPtr<DynamicsCompressorHandler> create(AudioNode&, float sample
Rate, AudioParamHandler& threshold, AudioParamHandler& knee, AudioParamHandler&
ratio, AudioParamHandler& reduction, AudioParamHandler& attack, AudioParamHandle
r& release); | 41 static PassRefPtr<DynamicsCompressorHandler> create(AudioNode&, float sample
Rate, AudioParamHandler& threshold, AudioParamHandler& knee, AudioParamHandler&
ratio, AudioParamHandler& reduction, AudioParamHandler& attack, AudioParamHandle
r& release); |
44 ~DynamicsCompressorHandler(); | 42 ~DynamicsCompressorHandler(); |
45 | 43 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 Member<AudioParam> m_ratio; | 84 Member<AudioParam> m_ratio; |
87 Member<AudioParam> m_reduction; | 85 Member<AudioParam> m_reduction; |
88 Member<AudioParam> m_attack; | 86 Member<AudioParam> m_attack; |
89 Member<AudioParam> m_release; | 87 Member<AudioParam> m_release; |
90 | 88 |
91 FRIEND_TEST_ALL_PREFIXES(DynamicsCompressorNodeTest, ProcessorLifetime); | 89 FRIEND_TEST_ALL_PREFIXES(DynamicsCompressorNodeTest, ProcessorLifetime); |
92 }; | 90 }; |
93 | 91 |
94 } // namespace blink | 92 } // namespace blink |
95 | 93 |
96 #endif // ENABLE(WEB_AUDIO) | |
97 | |
98 #endif // DynamicsCompressorNode_h | 94 #endif // DynamicsCompressorNode_h |
OLD | NEW |