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 // Normalize the impulse response or not. Must default to true. | 68 // Normalize the impulse response or not. Must default to true. |
69 bool m_normalize; | 69 bool m_normalize; |
70 | 70 |
71 // TODO(tkent): Use FRIEND_TEST macro provided by gtest_prod.h | 71 // TODO(tkent): Use FRIEND_TEST macro provided by gtest_prod.h |
72 friend class ConvolverNodeTest_ReverbLifetime_Test; | 72 friend class ConvolverNodeTest_ReverbLifetime_Test; |
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(AudioContext&, float sampleRate); | 78 static ConvolverNode* create(AbstractAudioContext&, 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(AudioContext&, float sampleRate); | 86 ConvolverNode(AbstractAudioContext&, float sampleRate); |
87 ConvolverHandler& convolverHandler() const; | 87 ConvolverHandler& convolverHandler() const; |
88 | 88 |
89 // TODO(tkent): Use FRIEND_TEST macro provided by gtest_prod.h | 89 // TODO(tkent): Use FRIEND_TEST macro provided by gtest_prod.h |
90 friend class ConvolverNodeTest_ReverbLifetime_Test; | 90 friend class ConvolverNodeTest_ReverbLifetime_Test; |
91 }; | 91 }; |
92 | 92 |
93 } // namespace blink | 93 } // namespace blink |
94 | 94 |
95 #endif // ConvolverNode_h | 95 #endif // ConvolverNode_h |
OLD | NEW |