| 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 13 matching lines...) Expand all Loading... |
| 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 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 ReverbInputBuffer_h | 29 #ifndef ReverbInputBuffer_h |
| 30 #define ReverbInputBuffer_h | 30 #define ReverbInputBuffer_h |
| 31 | 31 |
| 32 #include "platform/PlatformExport.h" | 32 #include "platform/PlatformExport.h" |
| 33 #include "platform/audio/AudioArray.h" | 33 #include "platform/audio/AudioArray.h" |
| 34 #include "wtf/Allocator.h" | 34 #include "platform/wtf/Allocator.h" |
| 35 #include "wtf/Noncopyable.h" | 35 #include "platform/wtf/Noncopyable.h" |
| 36 | 36 |
| 37 namespace blink { | 37 namespace blink { |
| 38 | 38 |
| 39 // ReverbInputBuffer is used to buffer input samples for deferred processing by | 39 // ReverbInputBuffer is used to buffer input samples for deferred processing by |
| 40 // the background threads. | 40 // the background threads. |
| 41 class PLATFORM_EXPORT ReverbInputBuffer { | 41 class PLATFORM_EXPORT ReverbInputBuffer { |
| 42 DISALLOW_NEW(); | 42 DISALLOW_NEW(); |
| 43 WTF_MAKE_NONCOPYABLE(ReverbInputBuffer); | 43 WTF_MAKE_NONCOPYABLE(ReverbInputBuffer); |
| 44 | 44 |
| 45 public: | 45 public: |
| (...skipping 19 matching lines...) Expand all Loading... |
| 65 void reset(); | 65 void reset(); |
| 66 | 66 |
| 67 private: | 67 private: |
| 68 AudioFloatArray m_buffer; | 68 AudioFloatArray m_buffer; |
| 69 size_t m_writeIndex; | 69 size_t m_writeIndex; |
| 70 }; | 70 }; |
| 71 | 71 |
| 72 } // namespace blink | 72 } // namespace blink |
| 73 | 73 |
| 74 #endif // ReverbInputBuffer_h | 74 #endif // ReverbInputBuffer_h |
| OLD | NEW |