| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 | 68 |
| 69 // Normalize the impulse response or not. Must default to true. | 69 // Normalize the impulse response or not. Must default to true. |
| 70 bool m_normalize; | 70 bool m_normalize; |
| 71 | 71 |
| 72 FRIEND_TEST_ALL_PREFIXES(ConvolverNodeTest, ReverbLifetime); | 72 FRIEND_TEST_ALL_PREFIXES(ConvolverNodeTest, ReverbLifetime); |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 class MODULES_EXPORT ConvolverNode final : public AudioNode { | 75 class MODULES_EXPORT ConvolverNode final : public AudioNode { |
| 76 DEFINE_WRAPPERTYPEINFO(); | 76 DEFINE_WRAPPERTYPEINFO(); |
| 77 public: | 77 public: |
| 78 static ConvolverNode* create(AbstractAudioContext&, float sampleRate); | 78 static ConvolverNode* create(BaseAudioContext&, float sampleRate); |
| 79 | 79 |
| 80 AudioBuffer* buffer() const; | 80 AudioBuffer* buffer() const; |
| 81 void setBuffer(AudioBuffer*, ExceptionState&); | 81 void setBuffer(AudioBuffer*, ExceptionState&); |
| 82 bool normalize() const; | 82 bool normalize() const; |
| 83 void setNormalize(bool); | 83 void setNormalize(bool); |
| 84 | 84 |
| 85 private: | 85 private: |
| 86 ConvolverNode(AbstractAudioContext&, float sampleRate); | 86 ConvolverNode(BaseAudioContext&, float sampleRate); |
| 87 ConvolverHandler& convolverHandler() const; | 87 ConvolverHandler& convolverHandler() const; |
| 88 | 88 |
| 89 FRIEND_TEST_ALL_PREFIXES(ConvolverNodeTest, ReverbLifetime); | 89 FRIEND_TEST_ALL_PREFIXES(ConvolverNodeTest, ReverbLifetime); |
| 90 }; | 90 }; |
| 91 | 91 |
| 92 } // namespace blink | 92 } // namespace blink |
| 93 | 93 |
| 94 #endif // ConvolverNode_h | 94 #endif // ConvolverNode_h |
| OLD | NEW |