| 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 18 matching lines...) Expand all Loading... |
| 29 #include "config.h" | 29 #include "config.h" |
| 30 | 30 |
| 31 #if ENABLE(WEB_AUDIO) | 31 #if ENABLE(WEB_AUDIO) |
| 32 | 32 |
| 33 #include "platform/audio/ReverbConvolverStage.h" | 33 #include "platform/audio/ReverbConvolverStage.h" |
| 34 | 34 |
| 35 #include "platform/audio/ReverbAccumulationBuffer.h" | 35 #include "platform/audio/ReverbAccumulationBuffer.h" |
| 36 #include "platform/audio/ReverbConvolver.h" | 36 #include "platform/audio/ReverbConvolver.h" |
| 37 #include "platform/audio/ReverbInputBuffer.h" | 37 #include "platform/audio/ReverbInputBuffer.h" |
| 38 #include "platform/audio/VectorMath.h" | 38 #include "platform/audio/VectorMath.h" |
| 39 #include "wtf/OwnPtr.h" | |
| 40 #include "wtf/PassOwnPtr.h" | 39 #include "wtf/PassOwnPtr.h" |
| 41 | 40 |
| 42 namespace WebCore { | 41 namespace WebCore { |
| 43 | 42 |
| 44 using namespace VectorMath; | 43 using namespace VectorMath; |
| 45 | 44 |
| 46 ReverbConvolverStage::ReverbConvolverStage(const float* impulseResponse, size_t,
size_t reverbTotalLatency, size_t stageOffset, size_t stageLength, | 45 ReverbConvolverStage::ReverbConvolverStage(const float* impulseResponse, size_t,
size_t reverbTotalLatency, size_t stageOffset, size_t stageLength, |
| 47 size_t fftSize, size_t renderPhase, s
ize_t renderSliceSize, ReverbAccumulationBuffer* accumulationBuffer, bool direct
Mode) | 46 size_t fftSize, size_t renderPhase, s
ize_t renderSliceSize, ReverbAccumulationBuffer* accumulationBuffer, bool direct
Mode) |
| 48 : m_accumulationBuffer(accumulationBuffer) | 47 : m_accumulationBuffer(accumulationBuffer) |
| 49 , m_accumulationReadIndex(0) | 48 , m_accumulationReadIndex(0) |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 m_directConvolver->reset(); | 175 m_directConvolver->reset(); |
| 177 m_preDelayBuffer.zero(); | 176 m_preDelayBuffer.zero(); |
| 178 m_accumulationReadIndex = 0; | 177 m_accumulationReadIndex = 0; |
| 179 m_inputReadIndex = 0; | 178 m_inputReadIndex = 0; |
| 180 m_framesProcessed = 0; | 179 m_framesProcessed = 0; |
| 181 } | 180 } |
| 182 | 181 |
| 183 } // namespace WebCore | 182 } // namespace WebCore |
| 184 | 183 |
| 185 #endif // ENABLE(WEB_AUDIO) | 184 #endif // ENABLE(WEB_AUDIO) |
| OLD | NEW |