Home
last modified time | relevance | path

Searched refs:framesToProcess (Results 1 – 25 of 59) sorted by relevance

123

/external/webkit/Source/WebCore/platform/audio/
DReverb.cpp127 void Reverb::process(AudioBus* sourceBus, AudioBus* destinationBus, size_t framesToProcess) in process() argument
132 …&& framesToProcess <= MaxFrameSize && framesToProcess <= sourceBus->length() && framesToProcess <=… in process()
156 m_convolvers[0]->process(sourceChannelL, destinationChannelL, framesToProcess); in process()
157 m_convolvers[1]->process(sourceChannelR, destinationChannelR, framesToProcess); in process()
162 m_convolvers[i]->process(sourceChannelL, destinationChannel, framesToProcess); in process()
166 m_convolvers[0]->process(sourceChannelL, destinationChannelL, framesToProcess); in process()
170 …data() && destinationChannelL->length() >= framesToProcess && destinationChannelR->length() >= fra… in process()
174 … memcpy(destinationChannelR->data(), destinationChannelL->data(), sizeof(float) * framesToProcess); in process()
177 m_convolvers[0]->process(sourceChannelL, destinationChannelL, framesToProcess); in process()
187 m_convolvers[0]->process(sourceChannelL, destinationChannelL, framesToProcess); in process()
[all …]
DReverbConvolverStage.cpp84 void ReverbConvolverStage::processInBackground(ReverbConvolver* convolver, size_t framesToProcess) in processInBackground() argument
87 float* source = inputBuffer->directReadFrom(&m_inputReadIndex, framesToProcess); in processInBackground()
88 process(source, framesToProcess); in processInBackground()
91 void ReverbConvolverStage::process(float* source, size_t framesToProcess) in process() argument
104 bool isPreDelaySafe = m_preReadWriteIndex + framesToProcess <= m_preDelayBuffer.size(); in process()
109 isTemporaryBufferSafe = framesToProcess <= m_temporaryBuffer.size(); in process()
118 isTemporaryBufferSafe = framesToProcess <= m_preDelayBuffer.size(); in process()
130 m_accumulationBuffer->updateReadIndex(&m_accumulationReadIndex, framesToProcess); in process()
135 m_convolver->process(&m_fftKernel, preDelayedSource, temporaryBuffer, framesToProcess); in process()
138 …writeIndex = m_accumulationBuffer->accumulate(temporaryBuffer, framesToProcess, &m_accumulationRea… in process()
[all …]
DVectorMath.cpp44 …ourceP, int sourceStride, const float* scale, float* destP, int destStride, size_t framesToProcess) in vsmul() argument
47 ::vsmul(sourceP, sourceStride, scale, destP, destStride, framesToProcess); in vsmul()
49 vDSP_vsmul(sourceP, sourceStride, scale, destP, destStride, framesToProcess); in vsmul()
53 …e1, const float* source2P, int sourceStride2, float* destP, int destStride, size_t framesToProcess) in vadd() argument
56 ::vadd(source1P, sourceStride1, source2P, sourceStride2, destP, destStride, framesToProcess); in vadd()
58 vDSP_vadd(source1P, sourceStride1, source2P, sourceStride2, destP, destStride, framesToProcess); in vadd()
64 …ourceP, int sourceStride, const float* scale, float* destP, int destStride, size_t framesToProcess)
67 int n = framesToProcess;
76 …e1, const float* source2P, int sourceStride2, float* destP, int destStride, size_t framesToProcess)
79 int n = framesToProcess;
DAudioResamplerKernel.cpp51 float* AudioResamplerKernel::getSourcePointer(size_t framesToProcess, size_t* numberOfSourceFramesN… in getSourcePointer() argument
53 ASSERT(framesToProcess <= MaxFramesToProcess); in getSourcePointer()
56 double nextFractionalIndex = m_virtualReadIndex + framesToProcess * rate(); in getSourcePointer()
76 void AudioResamplerKernel::process(float* destination, size_t framesToProcess) in process() argument
78 ASSERT(framesToProcess <= MaxFramesToProcess); in process()
96 ASSERT(framesToProcess > 0); in process()
97 …ASSERT(virtualReadIndex >= 0 && 1 + static_cast<unsigned>(virtualReadIndex + (framesToProcess - 1)… in process()
100 int n = framesToProcess; in process()
DFFTConvolver.cpp50 …id FFTConvolver::process(FFTFrame* fftKernel, float* sourceP, float* destP, size_t framesToProcess) in process() argument
58 …bool isCopyGood1 = sourceP && inputP && m_readWriteIndex + framesToProcess <= m_inputBuffer.size(); in process()
63 memcpy(inputP + m_readWriteIndex, sourceP, sizeof(float) * framesToProcess); in process()
69 …bool isCopyGood2 = destP && outputP && m_readWriteIndex + framesToProcess <= m_outputBuffer.size(); in process()
74 memcpy(destP, outputP + m_readWriteIndex, sizeof(float) * framesToProcess); in process()
75 m_readWriteIndex += framesToProcess; in process()
DBiquad.cpp67 void Biquad::process(const float* sourceP, float* destP, size_t framesToProcess) in process() argument
71 processFast(sourceP, destP, framesToProcess); in process()
73 int n = framesToProcess; in process()
121 void Biquad::processFast(const float* sourceP, float* destP, size_t framesToProcess) in processFast() argument
139 int n = framesToProcess; in processFast()
158 …ad::processSliceFast(double* sourceP, double* destP, double* coefficientsP, size_t framesToProcess) in processSliceFast() argument
161 vDSP_deq22D(sourceP, 1, coefficientsP, destP, 1, framesToProcess); in processSliceFast()
166 sourceP[0] = sourceP[framesToProcess - 2 + 2]; in processSliceFast()
167 sourceP[1] = sourceP[framesToProcess - 1 + 2]; in processSliceFast()
168 destP[0] = destP[framesToProcess - 2 + 2]; in processSliceFast()
[all …]
DReverbConvolver.cpp178 …ver::process(AudioChannel* sourceChannel, AudioChannel* destinationChannel, size_t framesToProcess) in process() argument
180 …ationChannel && sourceChannel->length() >= framesToProcess && destinationChannel->length() >= fram… in process()
193 m_inputBuffer.write(source, framesToProcess); in process()
197 m_stages[i]->process(source, framesToProcess); in process()
200 m_accumulationBuffer.readAndClear(destination, framesToProcess); in process()
DEqualPowerPanner.cpp49 …ble azimuth, double /*elevation*/, AudioBus* inputBus, AudioBus* outputBus, size_t framesToProcess) in pan() argument
52 …bool isInputSafe = inputBus && inputBus->numberOfChannels() == 1 && framesToProcess <= inputBus->l… in pan()
57 …bool isOutputSafe = outputBus && outputBus->numberOfChannels() == 2 && framesToProcess <= outputBu… in pan()
96 int n = framesToProcess; in pan()
DHRTFPanner.cpp114 … desiredAzimuth, double elevation, AudioBus* inputBus, AudioBus* outputBus, size_t framesToProcess) in pan() argument
121 …bool isOutputGood = outputBus && outputBus->numberOfChannels() == 2 && framesToProcess <= outputBu… in pan()
163 ASSERT(1UL << static_cast<int>(log2(framesToProcess)) == framesToProcess); in pan()
164 ASSERT(framesToProcess >= 128); in pan()
167 const unsigned numberOfSegments = framesToProcess / framesPerSegment; in pan()
DBiquad.h49 void process(const float* sourceP, float* destP, size_t framesToProcess);
89 void processFast(const float* sourceP, float* destP, size_t framesToProcess);
90 …id processSliceFast(double* sourceP, double* destP, double* coefficientsP, size_t framesToProcess);
DAudioBus.cpp259 int framesToProcess = length(); in processWithGainFromMonoStereo() local
265 while (framesToProcess--) { in processWithGainFromMonoStereo()
277 while (framesToProcess--) { in processWithGainFromMonoStereo()
287 while (framesToProcess--) { in processWithGainFromMonoStereo()
299 while (framesToProcess--) { in processWithGainFromMonoStereo()
311 while (framesToProcess--) { in processWithGainFromMonoStereo()
321 while (framesToProcess--) { in processWithGainFromMonoStereo()
DAudioResampler.cpp74 …Resampler::process(AudioSourceProvider* provider, AudioBus* destinationBus, size_t framesToProcess) in process() argument
92 float* fillPointer = m_kernels[i]->getSourcePointer(framesToProcess, &framesNeeded); in process()
107 m_kernels[i]->process(destination, framesToProcess); in process()
DVectorMath.h34 …urceP, int sourceStride, const float* scale, float* destP, int destStride, size_t framesToProcess);
35 …1, const float* source2P, int sourceStride2, float* destP, int destStride, size_t framesToProcess);
/external/webkit/Source/WebCore/webaudio/
DAudioBufferSourceNode.cpp79 void AudioBufferSourceNode::process(size_t framesToProcess) in process() argument
95 double quantumEndTime = quantumStartTime + framesToProcess / sampleRate; in process()
124 m_resampler.process(this, outputBus, framesToProcess); in process()
185 int framesToProcess = numberOfFrames; in provideInput() local
191 ASSERT(m_schedulingFrameDelay <= framesToProcess); in provideInput()
192 if (m_schedulingFrameDelay <= framesToProcess) { in provideInput()
202 framesToProcess -= m_schedulingFrameDelay; in provideInput()
209 while (framesToProcess > 0) { in provideInput()
216 int framesThisTime = min(framesToProcess, framesAvailable); in provideInput()
232 framesToProcess -= framesThisTime; in provideInput()
[all …]
DRealtimeAnalyserNode.cpp52 void RealtimeAnalyserNode::process(size_t framesToProcess) in process() argument
64 m_analyser.writeInput(inputBus, framesToProcess); in process()
75 void RealtimeAnalyserNode::pullInputs(size_t framesToProcess) in pullInputs() argument
78 input(0)->pull(output(0)->bus(), framesToProcess); in pullInputs()
DJavaScriptAudioNode.cpp127 void JavaScriptAudioNode::process(size_t framesToProcess) in process() argument
151 && m_bufferReadWriteIndex + framesToProcess <= bufferSize(); in process()
157 …bool isFramesToProcessGood = framesToProcess && bufferSize() >= framesToProcess && !(bufferSize() … in process()
175 size_t bytesToCopy = sizeof(float) * framesToProcess; in process()
191 m_bufferReadWriteIndex = (m_bufferReadWriteIndex + framesToProcess) % bufferSize(); in process()
DAudioBasicProcessorNode.cpp70 void AudioBasicProcessorNode::process(size_t framesToProcess) in process() argument
85 processor()->process(sourceBus, destinationBus, framesToProcess); in process()
96 void AudioBasicProcessorNode::pullInputs(size_t framesToProcess) in pullInputs() argument
99 input(0)->pull(output(0)->bus(), framesToProcess); in pullInputs()
DOfflineAudioDestinationNode.cpp125 size_t framesToProcess = m_renderTarget->length(); in render() local
129 while (framesToProcess > 0) { in render()
133 size_t framesAvailableToCopy = min(framesToProcess, renderQuantumSize); in render()
142 framesToProcess -= framesAvailableToCopy; in render()
DAudioChannelSplitter.cpp54 void AudioChannelSplitter::process(size_t framesToProcess) in process() argument
58 ASSERT_UNUSED(framesToProcess, framesToProcess == source->length()); in process()
DAudioNode.cpp146 void AudioNode::processIfNecessary(size_t framesToProcess) in processIfNecessary() argument
160 pullInputs(framesToProcess); in processIfNecessary()
161 process(framesToProcess); in processIfNecessary()
165 void AudioNode::pullInputs(size_t framesToProcess) in pullInputs() argument
171 input(i)->pull(0, framesToProcess); in pullInputs()
DAudioChannelMerger.cpp58 void AudioChannelMerger::process(size_t framesToProcess) in process() argument
62 ASSERT_UNUSED(framesToProcess, framesToProcess == output->bus()->length()); in process()
DAudioNodeInput.cpp217 void AudioNodeInput::sumAllConnections(AudioBus* summingBus, size_t framesToProcess) in sumAllConnections() argument
235 AudioBus* connectionBus = output->pull(0, framesToProcess); in sumAllConnections()
242 AudioBus* AudioNodeInput::pull(AudioBus* inPlaceBus, size_t framesToProcess) in pull() argument
250 return output->pull(inPlaceBus, framesToProcess); in pull()
263 sumAllConnections(internalSummingBus, framesToProcess); in pull()
DAudioBufferSourceNode.h53 virtual void process(size_t framesToProcess);
139 void readFromBuffer(AudioBus* destinationBus, size_t framesToProcess);
142 …(float* sourceL, float* sourceR, float* destinationL, float* destinationR, size_t framesToProcess);
DAudioNode.h91 virtual void process(size_t framesToProcess) = 0;
122 void processIfNecessary(size_t framesToProcess);
143 virtual void pullInputs(size_t framesToProcess);
DRealtimeAnalyser.cpp101 void RealtimeAnalyser::writeInput(AudioBus* bus, size_t framesToProcess) in writeInput() argument
103 …ool isBusGood = bus && bus->numberOfChannels() > 0 && bus->channel(0)->length() >= framesToProcess; in writeInput()
109 …bool isDestinationGood = m_writeIndex < m_inputBuffer.size() && m_writeIndex + framesToProcess <= … in writeInput()
120 memcpy(m_inputBuffer.data() + m_writeIndex, source, sizeof(float) * framesToProcess); in writeInput()
122 m_writeIndex += framesToProcess; in writeInput()

123