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 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 15 matching lines...) Expand all Loading... |
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 */ | 27 */ |
28 | 28 |
29 #ifndef Reverb_h | 29 #ifndef Reverb_h |
30 #define Reverb_h | 30 #define Reverb_h |
31 | 31 |
32 #include "platform/audio/ReverbConvolver.h" | 32 #include "platform/audio/ReverbConvolver.h" |
33 #include "wtf/Noncopyable.h" | 33 #include "wtf/Noncopyable.h" |
34 #include "wtf/Vector.h" | 34 #include "wtf/Vector.h" |
35 | 35 |
36 namespace WebCore { | 36 namespace blink { |
37 | 37 |
38 class AudioBus; | 38 class AudioBus; |
39 | 39 |
40 // Multi-channel convolution reverb with channel matrixing - one or more ReverbC
onvolver objects are used internally. | 40 // Multi-channel convolution reverb with channel matrixing - one or more ReverbC
onvolver objects are used internally. |
41 | 41 |
42 class PLATFORM_EXPORT Reverb { | 42 class PLATFORM_EXPORT Reverb { |
43 WTF_MAKE_NONCOPYABLE(Reverb); | 43 WTF_MAKE_NONCOPYABLE(Reverb); |
44 public: | 44 public: |
45 enum { MaxFrameSize = 256 }; | 45 enum { MaxFrameSize = 256 }; |
46 | 46 |
(...skipping 10 matching lines...) Expand all Loading... |
57 void initialize(AudioBus* impulseResponseBuffer, size_t renderSliceSize, siz
e_t maxFFTSize, size_t numberOfChannels, bool useBackgroundThreads); | 57 void initialize(AudioBus* impulseResponseBuffer, size_t renderSliceSize, siz
e_t maxFFTSize, size_t numberOfChannels, bool useBackgroundThreads); |
58 | 58 |
59 size_t m_impulseResponseLength; | 59 size_t m_impulseResponseLength; |
60 | 60 |
61 Vector<OwnPtr<ReverbConvolver> > m_convolvers; | 61 Vector<OwnPtr<ReverbConvolver> > m_convolvers; |
62 | 62 |
63 // For "True" stereo processing | 63 // For "True" stereo processing |
64 RefPtr<AudioBus> m_tempBuffer; | 64 RefPtr<AudioBus> m_tempBuffer; |
65 }; | 65 }; |
66 | 66 |
67 } // namespace WebCore | 67 } // namespace blink |
68 | 68 |
69 #endif // Reverb_h | 69 #endif // Reverb_h |
OLD | NEW |