| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 float m_reduction; | 74 float m_reduction; |
| 75 RefPtr<AudioParamHandler> m_attack; | 75 RefPtr<AudioParamHandler> m_attack; |
| 76 RefPtr<AudioParamHandler> m_release; | 76 RefPtr<AudioParamHandler> m_release; |
| 77 | 77 |
| 78 FRIEND_TEST_ALL_PREFIXES(DynamicsCompressorNodeTest, ProcessorLifetime); | 78 FRIEND_TEST_ALL_PREFIXES(DynamicsCompressorNodeTest, ProcessorLifetime); |
| 79 }; | 79 }; |
| 80 | 80 |
| 81 class MODULES_EXPORT DynamicsCompressorNode final : public AudioNode { | 81 class MODULES_EXPORT DynamicsCompressorNode final : public AudioNode { |
| 82 DEFINE_WRAPPERTYPEINFO(); | 82 DEFINE_WRAPPERTYPEINFO(); |
| 83 public: | 83 public: |
| 84 static DynamicsCompressorNode* create(AbstractAudioContext&, float sampleRat
e); | 84 static DynamicsCompressorNode* create(AbstractAudioContext&, ExceptionState&
); |
| 85 DECLARE_VIRTUAL_TRACE(); | 85 DECLARE_VIRTUAL_TRACE(); |
| 86 | 86 |
| 87 AudioParam* threshold() const; | 87 AudioParam* threshold() const; |
| 88 AudioParam* knee() const; | 88 AudioParam* knee() const; |
| 89 AudioParam* ratio() const; | 89 AudioParam* ratio() const; |
| 90 float reduction() const; | 90 float reduction() const; |
| 91 AudioParam* attack() const; | 91 AudioParam* attack() const; |
| 92 AudioParam* release() const; | 92 AudioParam* release() const; |
| 93 | 93 |
| 94 private: | 94 private: |
| 95 DynamicsCompressorNode(AbstractAudioContext&, float sampleRate); | 95 DynamicsCompressorNode(AbstractAudioContext&); |
| 96 DynamicsCompressorHandler& dynamicsCompressorHandler() const; | 96 DynamicsCompressorHandler& dynamicsCompressorHandler() const; |
| 97 | 97 |
| 98 Member<AudioParam> m_threshold; | 98 Member<AudioParam> m_threshold; |
| 99 Member<AudioParam> m_knee; | 99 Member<AudioParam> m_knee; |
| 100 Member<AudioParam> m_ratio; | 100 Member<AudioParam> m_ratio; |
| 101 Member<AudioParam> m_attack; | 101 Member<AudioParam> m_attack; |
| 102 Member<AudioParam> m_release; | 102 Member<AudioParam> m_release; |
| 103 | 103 |
| 104 FRIEND_TEST_ALL_PREFIXES(DynamicsCompressorNodeTest, ProcessorLifetime); | 104 FRIEND_TEST_ALL_PREFIXES(DynamicsCompressorNodeTest, ProcessorLifetime); |
| 105 }; | 105 }; |
| 106 | 106 |
| 107 } // namespace blink | 107 } // namespace blink |
| 108 | 108 |
| 109 #endif // DynamicsCompressorNode_h | 109 #endif // DynamicsCompressorNode_h |
| OLD | NEW |