| 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 22 matching lines...) Expand all Loading... |
| 33 namespace blink { | 33 namespace blink { |
| 34 | 34 |
| 35 class DynamicsCompressor; | 35 class DynamicsCompressor; |
| 36 | 36 |
| 37 class MODULES_EXPORT DynamicsCompressorHandler final : public AudioHandler { | 37 class MODULES_EXPORT DynamicsCompressorHandler final : public AudioHandler { |
| 38 public: | 38 public: |
| 39 static PassRefPtr<DynamicsCompressorHandler> create(AudioNode&, float sample
Rate, AudioParamHandler& threshold, AudioParamHandler& knee, AudioParamHandler&
ratio, AudioParamHandler& reduction, AudioParamHandler& attack, AudioParamHandle
r& release); | 39 static PassRefPtr<DynamicsCompressorHandler> create(AudioNode&, float sample
Rate, AudioParamHandler& threshold, AudioParamHandler& knee, AudioParamHandler&
ratio, AudioParamHandler& reduction, AudioParamHandler& attack, AudioParamHandle
r& release); |
| 40 ~DynamicsCompressorHandler(); | 40 ~DynamicsCompressorHandler(); |
| 41 | 41 |
| 42 // AudioHandler | 42 // AudioHandler |
| 43 virtual void process(size_t framesToProcess) override; | 43 void process(size_t framesToProcess) override; |
| 44 virtual void initialize() override; | 44 void initialize() override; |
| 45 virtual void clearInternalStateWhenDisabled() override; | 45 void clearInternalStateWhenDisabled() override; |
| 46 | 46 |
| 47 private: | 47 private: |
| 48 DynamicsCompressorHandler(AudioNode&, float sampleRate, AudioParamHandler& t
hreshold, AudioParamHandler& knee, AudioParamHandler& ratio, AudioParamHandler&
reduction, AudioParamHandler& attack, AudioParamHandler& release); | 48 DynamicsCompressorHandler(AudioNode&, float sampleRate, AudioParamHandler& t
hreshold, AudioParamHandler& knee, AudioParamHandler& ratio, AudioParamHandler&
reduction, AudioParamHandler& attack, AudioParamHandler& release); |
| 49 virtual double tailTime() const override; | 49 double tailTime() const override; |
| 50 virtual double latencyTime() const override; | 50 double latencyTime() const override; |
| 51 | 51 |
| 52 OwnPtr<DynamicsCompressor> m_dynamicsCompressor; | 52 OwnPtr<DynamicsCompressor> m_dynamicsCompressor; |
| 53 RefPtr<AudioParamHandler> m_threshold; | 53 RefPtr<AudioParamHandler> m_threshold; |
| 54 RefPtr<AudioParamHandler> m_knee; | 54 RefPtr<AudioParamHandler> m_knee; |
| 55 RefPtr<AudioParamHandler> m_ratio; | 55 RefPtr<AudioParamHandler> m_ratio; |
| 56 RefPtr<AudioParamHandler> m_reduction; | 56 RefPtr<AudioParamHandler> m_reduction; |
| 57 RefPtr<AudioParamHandler> m_attack; | 57 RefPtr<AudioParamHandler> m_attack; |
| 58 RefPtr<AudioParamHandler> m_release; | 58 RefPtr<AudioParamHandler> m_release; |
| 59 | 59 |
| 60 // TODO(tkent): Use FRIEND_TEST macro provided by gtest_prod.h | 60 // TODO(tkent): Use FRIEND_TEST macro provided by gtest_prod.h |
| (...skipping 24 matching lines...) Expand all Loading... |
| 85 Member<AudioParam> m_attack; | 85 Member<AudioParam> m_attack; |
| 86 Member<AudioParam> m_release; | 86 Member<AudioParam> m_release; |
| 87 | 87 |
| 88 // TODO(tkent): Use FRIEND_TEST macro provided by gtest_prod.h | 88 // TODO(tkent): Use FRIEND_TEST macro provided by gtest_prod.h |
| 89 friend class DynamicsCompressorNodeTest_ProcessorLifetime_Test; | 89 friend class DynamicsCompressorNodeTest_ProcessorLifetime_Test; |
| 90 }; | 90 }; |
| 91 | 91 |
| 92 } // namespace blink | 92 } // namespace blink |
| 93 | 93 |
| 94 #endif // DynamicsCompressorNode_h | 94 #endif // DynamicsCompressorNode_h |
| OLD | NEW |