Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(546)

Side by Side Diff: Source/platform/audio/ReverbConvolverStage.cpp

Issue 400543004: Rename WebCore namespace to blink in Platform (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/platform/audio/ReverbConvolverStage.h ('k') | Source/platform/audio/ReverbInputBuffer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 20 matching lines...) Expand all
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/PassOwnPtr.h" 39 #include "wtf/PassOwnPtr.h"
40 40
41 namespace WebCore { 41 namespace blink {
42 42
43 using namespace VectorMath; 43 using namespace VectorMath;
44 44
45 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,
46 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)
47 : m_accumulationBuffer(accumulationBuffer) 47 : m_accumulationBuffer(accumulationBuffer)
48 , m_accumulationReadIndex(0) 48 , m_accumulationReadIndex(0)
49 , m_inputReadIndex(0) 49 , m_inputReadIndex(0)
50 , m_directMode(directMode) 50 , m_directMode(directMode)
51 { 51 {
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 if (!m_directMode) 172 if (!m_directMode)
173 m_fftConvolver->reset(); 173 m_fftConvolver->reset();
174 else 174 else
175 m_directConvolver->reset(); 175 m_directConvolver->reset();
176 m_preDelayBuffer.zero(); 176 m_preDelayBuffer.zero();
177 m_accumulationReadIndex = 0; 177 m_accumulationReadIndex = 0;
178 m_inputReadIndex = 0; 178 m_inputReadIndex = 0;
179 m_framesProcessed = 0; 179 m_framesProcessed = 0;
180 } 180 }
181 181
182 } // namespace WebCore 182 } // namespace blink
183 183
184 #endif // ENABLE(WEB_AUDIO) 184 #endif // ENABLE(WEB_AUDIO)
OLDNEW
« no previous file with comments | « Source/platform/audio/ReverbConvolverStage.h ('k') | Source/platform/audio/ReverbInputBuffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698