| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Intel Inc. All rights reserved. | 2 * Copyright (C) 2012 Intel 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 12 matching lines...) Expand all Loading... |
| 23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | 23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
| 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 #include "config.h" | 29 #include "config.h" |
| 30 | 30 |
| 31 #if ENABLE(WEB_AUDIO) | 31 #if ENABLE(WEB_AUDIO) |
| 32 | 32 |
| 33 #include "DirectConvolver.h" | 33 #include "core/platform/audio/DirectConvolver.h" |
| 34 | 34 |
| 35 #if OS(DARWIN) | 35 #if OS(DARWIN) |
| 36 #include <Accelerate/Accelerate.h> | 36 #include <Accelerate/Accelerate.h> |
| 37 #endif | 37 #endif |
| 38 | 38 |
| 39 #include "VectorMath.h" | 39 #include "core/platform/audio/VectorMath.h" |
| 40 | 40 |
| 41 namespace WebCore { | 41 namespace WebCore { |
| 42 | 42 |
| 43 using namespace VectorMath; | 43 using namespace VectorMath; |
| 44 | 44 |
| 45 DirectConvolver::DirectConvolver(size_t inputBlockSize) | 45 DirectConvolver::DirectConvolver(size_t inputBlockSize) |
| 46 : m_inputBlockSize(inputBlockSize) | 46 : m_inputBlockSize(inputBlockSize) |
| 47 #if USE(WEBAUDIO_IPP) | 47 #if USE(WEBAUDIO_IPP) |
| 48 , m_overlayBuffer(inputBlockSize) | 48 , m_overlayBuffer(inputBlockSize) |
| 49 #endif // USE(WEBAUDIO_IPP) | 49 #endif // USE(WEBAUDIO_IPP) |
| (...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 376 { | 376 { |
| 377 m_buffer.zero(); | 377 m_buffer.zero(); |
| 378 #if USE(WEBAUDIO_IPP) | 378 #if USE(WEBAUDIO_IPP) |
| 379 m_overlayBuffer.zero(); | 379 m_overlayBuffer.zero(); |
| 380 #endif // USE(WEBAUDIO_IPP) | 380 #endif // USE(WEBAUDIO_IPP) |
| 381 } | 381 } |
| 382 | 382 |
| 383 } // namespace WebCore | 383 } // namespace WebCore |
| 384 | 384 |
| 385 #endif // ENABLE(WEB_AUDIO) | 385 #endif // ENABLE(WEB_AUDIO) |
| OLD | NEW |