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 21 matching lines...) Expand all Loading... |
32 | 32 |
33 #include "platform/audio/DirectConvolver.h" | 33 #include "platform/audio/DirectConvolver.h" |
34 | 34 |
35 #if OS(MACOSX) | 35 #if OS(MACOSX) |
36 #include <Accelerate/Accelerate.h> | 36 #include <Accelerate/Accelerate.h> |
37 #endif | 37 #endif |
38 | 38 |
39 #include "platform/audio/VectorMath.h" | 39 #include "platform/audio/VectorMath.h" |
40 #include "wtf/CPU.h" | 40 #include "wtf/CPU.h" |
41 | 41 |
42 namespace WebCore { | 42 namespace blink { |
43 | 43 |
44 using namespace VectorMath; | 44 using namespace VectorMath; |
45 | 45 |
46 DirectConvolver::DirectConvolver(size_t inputBlockSize) | 46 DirectConvolver::DirectConvolver(size_t inputBlockSize) |
47 : m_inputBlockSize(inputBlockSize) | 47 : m_inputBlockSize(inputBlockSize) |
48 #if USE(WEBAUDIO_IPP) | 48 #if USE(WEBAUDIO_IPP) |
49 , m_overlayBuffer(inputBlockSize) | 49 , m_overlayBuffer(inputBlockSize) |
50 #endif // USE(WEBAUDIO_IPP) | 50 #endif // USE(WEBAUDIO_IPP) |
51 , m_buffer(inputBlockSize * 2) | 51 , m_buffer(inputBlockSize * 2) |
52 { | 52 { |
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 } | 376 } |
377 | 377 |
378 void DirectConvolver::reset() | 378 void DirectConvolver::reset() |
379 { | 379 { |
380 m_buffer.zero(); | 380 m_buffer.zero(); |
381 #if USE(WEBAUDIO_IPP) | 381 #if USE(WEBAUDIO_IPP) |
382 m_overlayBuffer.zero(); | 382 m_overlayBuffer.zero(); |
383 #endif // USE(WEBAUDIO_IPP) | 383 #endif // USE(WEBAUDIO_IPP) |
384 } | 384 } |
385 | 385 |
386 } // namespace WebCore | 386 } // namespace blink |
387 | 387 |
388 #endif // ENABLE(WEB_AUDIO) | 388 #endif // ENABLE(WEB_AUDIO) |
OLD | NEW |