| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 | 52 |
| 53 float m_lastGain; // for de-zippering | 53 float m_lastGain; // for de-zippering |
| 54 RefPtr<AudioParamHandler> m_gain; | 54 RefPtr<AudioParamHandler> m_gain; |
| 55 | 55 |
| 56 AudioFloatArray m_sampleAccurateGainValues; | 56 AudioFloatArray m_sampleAccurateGainValues; |
| 57 }; | 57 }; |
| 58 | 58 |
| 59 class GainNode final : public AudioNode { | 59 class GainNode final : public AudioNode { |
| 60 DEFINE_WRAPPERTYPEINFO(); | 60 DEFINE_WRAPPERTYPEINFO(); |
| 61 public: | 61 public: |
| 62 static GainNode* create(AbstractAudioContext&, float sampleRate); | 62 static GainNode* create(AbstractAudioContext&, ExceptionState&); |
| 63 DECLARE_VIRTUAL_TRACE(); | 63 DECLARE_VIRTUAL_TRACE(); |
| 64 | 64 |
| 65 AudioParam* gain() const; | 65 AudioParam* gain() const; |
| 66 | 66 |
| 67 private: | 67 private: |
| 68 GainNode(AbstractAudioContext&, float sampleRate); | 68 GainNode(AbstractAudioContext&); |
| 69 | 69 |
| 70 Member<AudioParam> m_gain; | 70 Member<AudioParam> m_gain; |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 } // namespace blink | 73 } // namespace blink |
| 74 | 74 |
| 75 #endif // GainNode_h | 75 #endif // GainNode_h |
| OLD | NEW |