/external/chromium_org/third_party/WebKit/Source/modules/webaudio/ |
D | WaveShaperDSPKernel.cpp | 60 void WaveShaperDSPKernel::process(const float* source, float* destination, size_t framesToProcess) in process() argument 64 processCurve(source, destination, framesToProcess); in process() 67 processCurve2x(source, destination, framesToProcess); in process() 70 processCurve4x(source, destination, framesToProcess); in process() 78 … WaveShaperDSPKernel::processCurve(const float* source, float* destination, size_t framesToProcess) in processCurve() argument 85 memcpy(destination, source, sizeof(float) * framesToProcess); in processCurve() 95 memcpy(destination, source, sizeof(float) * framesToProcess); in processCurve() 100 for (unsigned i = 0; i < framesToProcess; ++i) { in processCurve() 131 …aveShaperDSPKernel::processCurve2x(const float* source, float* destination, size_t framesToProcess) in processCurve2x() argument 133 bool isSafe = framesToProcess == RenderingQuantum; in processCurve2x() [all …]
|
D | OscillatorNode.cpp | 150 bool OscillatorNode::calculateSampleAccuratePhaseIncrements(size_t framesToProcess) in calculateSampleAccuratePhaseIncrements() argument 152 …bool isGood = framesToProcess <= m_phaseIncrements.size() && framesToProcess <= m_detuneValues.siz… in calculateSampleAccuratePhaseIncrements() 175 m_frequency->calculateSampleAccurateValues(phaseIncrements, framesToProcess); in calculateSampleAccuratePhaseIncrements() 188 m_detune->calculateSampleAccurateValues(detuneValues, framesToProcess); in calculateSampleAccuratePhaseIncrements() 192 vsmul(detuneValues, 1, &k, detuneValues, 1, framesToProcess); in calculateSampleAccuratePhaseIncrements() 193 for (unsigned i = 0; i < framesToProcess; ++i) in calculateSampleAccuratePhaseIncrements() 198 vmul(detuneValues, 1, phaseIncrements, 1, phaseIncrements, 1, framesToProcess); in calculateSampleAccuratePhaseIncrements() 210 vsmul(phaseIncrements, 1, &finalScale, phaseIncrements, 1, framesToProcess); in calculateSampleAccuratePhaseIncrements() 216 void OscillatorNode::process(size_t framesToProcess) in process() argument 225 ASSERT(framesToProcess <= m_phaseIncrements.size()); in process() [all …]
|
D | AudioBufferSourceNode.cpp | 86 void AudioBufferSourceNode::process(size_t framesToProcess) in process() argument 114 updateSchedulingInfo(framesToProcess, in process() 141 …erSourceNode::renderSilenceAndFinishIfNotLooping(AudioBus*, unsigned index, size_t framesToProcess) in renderSilenceAndFinishIfNotLooping() argument 146 if (framesToProcess > 0) { in renderSilenceAndFinishIfNotLooping() 150 memset(m_destinationChannels[i] + index, 0, sizeof(float) * framesToProcess); in renderSilenceAndFinishIfNotLooping() 243 int framesToProcess = numberOfFrames; in renderFromBuffer() local 256 while (framesToProcess > 0) { in renderFromBuffer() 258 int framesThisTime = min(framesToProcess, framesToEnd); in renderFromBuffer() 266 framesToProcess -= framesThisTime; in renderFromBuffer() 271 if (renderSilenceAndFinishIfNotLooping(bus, writeIndex, framesToProcess)) in renderFromBuffer() [all …]
|
D | GainNode.cpp | 53 void GainNode::process(size_t framesToProcess) in process() argument 69 ASSERT(framesToProcess <= m_sampleAccurateGainValues.size()); in process() 70 if (framesToProcess <= m_sampleAccurateGainValues.size()) { in process() 72 gain()->calculateSampleAccurateValues(gainValues, framesToProcess); in process() 73 … outputBus->copyWithSampleAccurateGainValuesFrom(*inputBus, gainValues, framesToProcess); in process()
|
D | WaveShaperDSPKernel.h | 46 virtual void process(const float* source, float* dest, size_t framesToProcess) OVERRIDE; 56 void processCurve(const float* source, float* dest, size_t framesToProcess); 59 void processCurve2x(const float* source, float* dest, size_t framesToProcess); 60 void processCurve4x(const float* source, float* dest, size_t framesToProcess);
|
D | ScriptProcessorNode.cpp | 151 void ScriptProcessorNode::process(size_t framesToProcess) in process() argument 175 …& bufferSize() == outputBuffer->length() && m_bufferReadWriteIndex + framesToProcess <= bufferSize… in process() 186 …bool isFramesToProcessGood = framesToProcess && bufferSize() >= framesToProcess && !(bufferSize() … in process() 199 …ChannelMemory(i, inputBuffer->getChannelData(i)->data() + m_bufferReadWriteIndex, framesToProcess); in process() 206 …outputBuffer->getChannelData(i)->data() + m_bufferReadWriteIndex, sizeof(float) * framesToProcess); in process() 209 m_bufferReadWriteIndex = (m_bufferReadWriteIndex + framesToProcess) % bufferSize(); in process()
|
D | AudioBasicProcessorNode.cpp | 70 void AudioBasicProcessorNode::process(size_t framesToProcess) in process() argument 83 processor()->process(sourceBus, destinationBus, framesToProcess); in process() 88 void AudioBasicProcessorNode::pullInputs(size_t framesToProcess) in pullInputs() argument 91 input(0)->pull(output(0)->bus(), framesToProcess); in pullInputs()
|
D | OfflineAudioDestinationNode.cpp | 116 size_t framesToProcess = m_renderTarget->length(); in offlineRender() local 120 while (framesToProcess > 0) { in offlineRender() 124 size_t framesAvailableToCopy = min(framesToProcess, renderQuantumSize); in offlineRender() 133 framesToProcess -= framesAvailableToCopy; in offlineRender()
|
D | RealtimeAnalyser.cpp | 90 void RealtimeAnalyser::writeInput(AudioBus* bus, size_t framesToProcess) in writeInput() argument 92 …ool isBusGood = bus && bus->numberOfChannels() > 0 && bus->channel(0)->length() >= framesToProcess; in writeInput() 98 …bool isDestinationGood = m_writeIndex < m_inputBuffer.size() && m_writeIndex + framesToProcess <= … in writeInput() 108 memcpy(dest, source, sizeof(float) * framesToProcess); in writeInput() 115 VectorMath::vadd(dest, 1, source, 1, dest, 1, framesToProcess); in writeInput() 118 VectorMath::vsmul(dest, 1, &scale, dest, 1, framesToProcess); in writeInput() 121 m_writeIndex += framesToProcess; in writeInput()
|
D | ChannelSplitterNode.cpp | 59 void ChannelSplitterNode::process(size_t framesToProcess) in process() argument 63 ASSERT_UNUSED(framesToProcess, framesToProcess == source->length()); in process()
|
D | AudioNodeInput.cpp | 190 void AudioNodeInput::sumAllConnections(AudioBus* summingBus, size_t framesToProcess) in sumAllConnections() argument 210 AudioBus* connectionBus = output->pull(0, framesToProcess); in sumAllConnections() 217 AudioBus* AudioNodeInput::pull(AudioBus* inPlaceBus, size_t framesToProcess) in pull() argument 225 return output->pull(inPlaceBus, framesToProcess); in pull() 238 sumAllConnections(internalSummingBus, framesToProcess); in pull()
|
/external/chromium_org/third_party/WebKit/Source/platform/audio/ |
D | Reverb.cpp | 136 void Reverb::process(const AudioBus* sourceBus, AudioBus* destinationBus, size_t framesToProcess) in process() argument 141 …&& framesToProcess <= MaxFrameSize && framesToProcess <= sourceBus->length() && framesToProcess <=… in process() 165 m_convolvers[0]->process(sourceChannelL, destinationChannelL, framesToProcess); in process() 166 m_convolvers[1]->process(sourceChannelR, destinationChannelR, framesToProcess); in process() 171 m_convolvers[i]->process(sourceChannelL, destinationChannel, framesToProcess); in process() 175 m_convolvers[0]->process(sourceChannelL, destinationChannelL, framesToProcess); in process() 179 …data() && destinationChannelL->length() >= framesToProcess && destinationChannelR->length() >= fra… in process() 183 …(destinationChannelR->mutableData(), destinationChannelL->data(), sizeof(float) * framesToProcess); in process() 186 m_convolvers[0]->process(sourceChannelL, destinationChannelL, framesToProcess); in process() 196 m_convolvers[0]->process(sourceChannelL, destinationChannelL, framesToProcess); in process() [all …]
|
D | ReverbConvolverStage.cpp | 96 void ReverbConvolverStage::processInBackground(ReverbConvolver* convolver, size_t framesToProcess) in processInBackground() argument 99 float* source = inputBuffer->directReadFrom(&m_inputReadIndex, framesToProcess); in processInBackground() 100 process(source, framesToProcess); in processInBackground() 103 void ReverbConvolverStage::process(const float* source, size_t framesToProcess) in process() argument 117 bool isPreDelaySafe = m_preReadWriteIndex + framesToProcess <= m_preDelayBuffer.size(); in process() 122 isTemporaryBufferSafe = framesToProcess <= m_temporaryBuffer.size(); in process() 133 isTemporaryBufferSafe = framesToProcess <= m_preDelayBuffer.size(); in process() 143 m_accumulationBuffer->updateReadIndex(&m_accumulationReadIndex, framesToProcess); in process() 149 … m_fftConvolver->process(m_fftKernel.get(), preDelayedSource, temporaryBuffer, framesToProcess); in process() 151 …directConvolver->process(m_directKernel.get(), preDelayedSource, temporaryBuffer, framesToProcess); in process() [all …]
|
D | VectorMath.cpp | 58 …ourceP, int sourceStride, const float* scale, float* destP, int destStride, size_t framesToProcess) in vsmul() argument 61 ::vsmul(sourceP, sourceStride, scale, destP, destStride, framesToProcess); in vsmul() 63 vDSP_vsmul(sourceP, sourceStride, scale, destP, destStride, framesToProcess); in vsmul() 67 …e1, const float* source2P, int sourceStride2, float* destP, int destStride, size_t framesToProcess) in vadd() argument 70 ::vadd(source1P, sourceStride1, source2P, sourceStride2, destP, destStride, framesToProcess); in vadd() 72 vDSP_vadd(source1P, sourceStride1, source2P, sourceStride2, destP, destStride, framesToProcess); in vadd() 76 …e1, const float* source2P, int sourceStride2, float* destP, int destStride, size_t framesToProcess) in vmul() argument 79 ::vmul(source1P, sourceStride1, source2P, sourceStride2, destP, destStride, framesToProcess); in vmul() 81 vDSP_vmul(source1P, sourceStride1, source2P, sourceStride2, destP, destStride, framesToProcess); in vmul() 85 …nst float* real2P, const float* imag2P, float* realDestP, float* imagDestP, size_t framesToProcess) in zvmul() argument [all …]
|
D | VectorMath.h | 36 …urceP, int sourceStride, const float* scale, float* destP, int destStride, size_t framesToProcess); 38 …urceP, int sourceStride, const float* scale, float* destP, int destStride, size_t framesToProcess); 39 …1, const float* source2P, int sourceStride2, float* destP, int destStride, size_t framesToProcess); 42 …M_EXPORT void vmaxmgv(const float* sourceP, int sourceStride, float* maxP, size_t framesToProcess); 45 …RM_EXPORT void vsvesq(const float* sourceP, int sourceStride, float* sumP, size_t framesToProcess); 48 …1, const float* source2P, int sourceStride2, float* destP, int destStride, size_t framesToProcess); 51 …st float* real2P, const float* imag2P, float* realDestP, float* imagDestP, size_t framesToProcess); 54 … lowThresholdP, const float* highThresholdP, float* destP, int destStride, size_t framesToProcess);
|
D | MultiChannelResampler.cpp | 56 virtual void provideInput(AudioBus* bus, size_t framesToProcess) OVERRIDE in provideInput() argument 66 m_framesToProcess = framesToProcess; in provideInput() 67 m_multiChannelBus = AudioBus::create(m_numberOfChannels, framesToProcess); in provideInput() 68 m_multiChannelProvider->provideInput(m_multiChannelBus.get(), framesToProcess); in provideInput() 72 bool isGood = m_multiChannelBus.get() && framesToProcess == m_framesToProcess; in provideInput() 80 …ableData(), m_multiChannelBus->channel(m_currentChannel)->data(), sizeof(float) * framesToProcess); in provideInput() 103 …nelResampler::process(AudioSourceProvider* provider, AudioBus* destination, size_t framesToProcess) in process() argument 117 framesToProcess); in process()
|
D | AudioResamplerKernel.cpp | 51 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()
|
D | FFTConvolver.cpp | 50 …Convolver::process(FFTFrame* fftKernel, const float* sourceP, float* destP, size_t framesToProcess) in process() argument 56 bool isGood = !(halfSize % framesToProcess && framesToProcess % halfSize); in process() 61 size_t numberOfDivisions = halfSize <= framesToProcess ? (framesToProcess / halfSize) : 1; in process() 62 size_t divisionSize = numberOfDivisions == 1 ? framesToProcess : halfSize; in process()
|
D | DirectConvolver.cpp | 55 …ess(AudioFloatArray* convolutionKernel, const float* sourceP, float* destP, size_t framesToProcess) in process() argument 57 ASSERT(framesToProcess == m_inputBlockSize); in process() 58 if (framesToProcess != m_inputBlockSize) in process() 83 …ippsConv_32f(static_cast<const Ipp32f*>(sourceP), framesToProcess, static_cast<Ipp32f*>(kernelP), … in process() 85 vadd(outputBuffer, 1, overlayBuffer, 1, destP, 1, framesToProcess); in process() 91 memcpy(inputP, sourceP, sizeof(float) * framesToProcess); in process() 95 …conv(inputP - kernelSize + 1, 1, kernelP + kernelSize - 1, -1, destP, 1, framesToProcess, kernelSi… in process() 97 …vDSP_conv(inputP - kernelSize + 1, 1, kernelP + kernelSize - 1, -1, destP, 1, framesToProcess, ker… in process() 108 while (i < framesToProcess) { in process() 374 memcpy(m_buffer.data(), inputP, sizeof(float) * framesToProcess); in process()
|
D | ReverbConvolver.cpp | 153 …rocess(const AudioChannel* sourceChannel, AudioChannel* destinationChannel, size_t framesToProcess) in process() argument 155 …ationChannel && sourceChannel->length() >= framesToProcess && destinationChannel->length() >= fram… in process() 168 m_inputBuffer.write(source, framesToProcess); in process() 172 m_stages[i]->process(source, framesToProcess); in process() 175 m_accumulationBuffer.readAndClear(destination, framesToProcess); in process()
|
D | Biquad.cpp | 77 void Biquad::process(const float* sourceP, float* destP, size_t framesToProcess) in process() argument 81 processFast(sourceP, destP, framesToProcess); in process() 84 ippsIIR64f_32f(sourceP, destP, static_cast<int>(framesToProcess), m_biquadState); in process() 87 int n = framesToProcess; in process() 134 void Biquad::processFast(const float* sourceP, float* destP, size_t framesToProcess) in processFast() argument 151 int n = framesToProcess; in processFast() 170 …ad::processSliceFast(double* sourceP, double* destP, double* coefficientsP, size_t framesToProcess) in processSliceFast() argument 173 vDSP_deq22D(sourceP, 1, coefficientsP, destP, 1, framesToProcess); in processSliceFast() 178 sourceP[0] = sourceP[framesToProcess - 2 + 2]; in processSliceFast() 179 sourceP[1] = sourceP[framesToProcess - 1 + 2]; in processSliceFast() [all …]
|
D | EqualPowerPanner.cpp | 52 …imuth, double /*elevation*/, const AudioBus* inputBus, AudioBus* outputBus, size_t framesToProcess) in pan() argument 54 …us->numberOfChannels() == 1 || inputBus->numberOfChannels() == 2) && framesToProcess <= inputBus->… in pan() 61 …bool isOutputSafe = outputBus && outputBus->numberOfChannels() == 2 && framesToProcess <= outputBu… in pan() 121 int n = framesToProcess; in pan()
|
D | Biquad.h | 53 void process(const float* sourceP, float* destP, size_t framesToProcess); 97 void processFast(const float* sourceP, float* destP, size_t framesToProcess); 98 …id processSliceFast(double* sourceP, double* destP, double* coefficientsP, size_t framesToProcess);
|
D | AudioDestination.cpp | 167 void AudioDestination::provideInput(AudioBus* bus, size_t framesToProcess) in provideInput() argument 170 if (m_inputFifo->framesInFifo() >= framesToProcess) { in provideInput() 171 m_inputFifo->consume(m_inputBus.get(), framesToProcess); in provideInput() 175 m_callback.render(sourceBus, bus, framesToProcess); in provideInput()
|
D | HRTFPanner.cpp | 121 …edAzimuth, double elevation, const AudioBus* inputBus, AudioBus* outputBus, size_t framesToProcess) in pan() argument 128 …bool isOutputGood = outputBus && outputBus->numberOfChannels() == 2 && framesToProcess <= outputBu… in pan() 202 ASSERT(1UL << static_cast<int>(log2(framesToProcess)) == framesToProcess); in pan() 203 ASSERT(framesToProcess >= RenderingQuantum); in pan() 206 const unsigned numberOfSegments = framesToProcess / framesPerSegment; in pan()
|