| 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 25 matching lines...) Expand all Loading... |
| 36 #include "platform/audio/ReverbConvolverStage.h" | 36 #include "platform/audio/ReverbConvolverStage.h" |
| 37 #include "platform/audio/ReverbInputBuffer.h" | 37 #include "platform/audio/ReverbInputBuffer.h" |
| 38 #include "wtf/OwnPtr.h" | 38 #include "wtf/OwnPtr.h" |
| 39 #include "wtf/RefCounted.h" | 39 #include "wtf/RefCounted.h" |
| 40 #include "wtf/Vector.h" | 40 #include "wtf/Vector.h" |
| 41 | 41 |
| 42 namespace blink { | 42 namespace blink { |
| 43 class WebThread; | 43 class WebThread; |
| 44 } | 44 } |
| 45 | 45 |
| 46 namespace WebCore { | 46 namespace blink { |
| 47 | 47 |
| 48 class AudioChannel; | 48 class AudioChannel; |
| 49 | 49 |
| 50 class PLATFORM_EXPORT ReverbConvolver { | 50 class PLATFORM_EXPORT ReverbConvolver { |
| 51 WTF_MAKE_NONCOPYABLE(ReverbConvolver); | 51 WTF_MAKE_NONCOPYABLE(ReverbConvolver); |
| 52 public: | 52 public: |
| 53 // maxFFTSize can be adjusted (from say 2048 to 32768) depending on how much
precision is necessary. | 53 // maxFFTSize can be adjusted (from say 2048 to 32768) depending on how much
precision is necessary. |
| 54 // For certain tweaky de-convolving applications the phase errors add up qui
ckly and lead to non-sensical results with | 54 // For certain tweaky de-convolving applications the phase errors add up qui
ckly and lead to non-sensical results with |
| 55 // larger FFT sizes and single-precision floats. In these cases 2048 is a g
ood size. | 55 // larger FFT sizes and single-precision floats. In these cases 2048 is a g
ood size. |
| 56 // If not doing multi-threaded convolution, then should not go > 8192. | 56 // If not doing multi-threaded convolution, then should not go > 8192. |
| (...skipping 22 matching lines...) Expand all Loading... |
| 79 size_t m_minFFTSize; | 79 size_t m_minFFTSize; |
| 80 size_t m_maxFFTSize; | 80 size_t m_maxFFTSize; |
| 81 | 81 |
| 82 // But don't exceed this size in the real-time thread (if we're doing backgr
ound processing). | 82 // But don't exceed this size in the real-time thread (if we're doing backgr
ound processing). |
| 83 size_t m_maxRealtimeFFTSize; | 83 size_t m_maxRealtimeFFTSize; |
| 84 | 84 |
| 85 // Background thread and synchronization | 85 // Background thread and synchronization |
| 86 OwnPtr<blink::WebThread> m_backgroundThread; | 86 OwnPtr<blink::WebThread> m_backgroundThread; |
| 87 }; | 87 }; |
| 88 | 88 |
| 89 } // namespace WebCore | 89 } // namespace blink |
| 90 | 90 |
| 91 #endif // ReverbConvolver_h | 91 #endif // ReverbConvolver_h |
| OLD | NEW |