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 14 matching lines...) Expand all Loading... |
25 #ifndef ConvolverNode_h | 25 #ifndef ConvolverNode_h |
26 #define ConvolverNode_h | 26 #define ConvolverNode_h |
27 | 27 |
28 #include "base/gtest_prod_util.h" | 28 #include "base/gtest_prod_util.h" |
29 #include "modules/ModulesExport.h" | 29 #include "modules/ModulesExport.h" |
30 #include "modules/webaudio/AudioNode.h" | 30 #include "modules/webaudio/AudioNode.h" |
31 #include "wtf/OwnPtr.h" | 31 #include "wtf/OwnPtr.h" |
32 #include "wtf/RefPtr.h" | 32 #include "wtf/RefPtr.h" |
33 #include "wtf/ThreadingPrimitives.h" | 33 #include "wtf/ThreadingPrimitives.h" |
34 | 34 |
35 #if ENABLE(WEB_AUDIO) | |
36 | |
37 namespace blink { | 35 namespace blink { |
38 | 36 |
39 class AudioBuffer; | 37 class AudioBuffer; |
40 class ExceptionState; | 38 class ExceptionState; |
41 class Reverb; | 39 class Reverb; |
42 | 40 |
43 class MODULES_EXPORT ConvolverHandler final : public AudioHandler { | 41 class MODULES_EXPORT ConvolverHandler final : public AudioHandler { |
44 public: | 42 public: |
45 static PassRefPtr<ConvolverHandler> create(AudioNode&, float sampleRate); | 43 static PassRefPtr<ConvolverHandler> create(AudioNode&, float sampleRate); |
46 ~ConvolverHandler() override; | 44 ~ConvolverHandler() override; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 | 84 |
87 private: | 85 private: |
88 ConvolverNode(AbstractAudioContext&, float sampleRate); | 86 ConvolverNode(AbstractAudioContext&, float sampleRate); |
89 ConvolverHandler& convolverHandler() const; | 87 ConvolverHandler& convolverHandler() const; |
90 | 88 |
91 FRIEND_TEST_ALL_PREFIXES(ConvolverNodeTest, ReverbLifetime); | 89 FRIEND_TEST_ALL_PREFIXES(ConvolverNodeTest, ReverbLifetime); |
92 }; | 90 }; |
93 | 91 |
94 } // namespace blink | 92 } // namespace blink |
95 | 93 |
96 #endif // ENABLE(WEB_AUDIO) | |
97 | |
98 #endif // ConvolverNode_h | 94 #endif // ConvolverNode_h |
OLD | NEW |