/external/chromium_org/third_party/WebKit/Source/modules/webaudio/ |
D | WaveShaperDSPKernel.cpp | 58 void WaveShaperDSPKernel::process(const float* source, float* destination, size_t framesToProcess) in process() argument 62 processCurve(source, destination, framesToProcess); in process() 65 processCurve2x(source, destination, framesToProcess); in process() 68 processCurve4x(source, destination, framesToProcess); in process() 76 … WaveShaperDSPKernel::processCurve(const float* source, float* destination, size_t framesToProcess) in processCurve() argument 83 memcpy(destination, source, sizeof(float) * framesToProcess); in processCurve() 93 memcpy(destination, source, sizeof(float) * framesToProcess); in processCurve() 98 for (unsigned i = 0; i < framesToProcess; ++i) { in processCurve() 129 …aveShaperDSPKernel::processCurve2x(const float* source, float* destination, size_t framesToProcess) in processCurve2x() argument 131 bool isSafe = framesToProcess == RenderingQuantum; in processCurve2x() [all …]
|
D | OscillatorNode.cpp | 153 bool OscillatorNode::calculateSampleAccuratePhaseIncrements(size_t framesToProcess) in calculateSampleAccuratePhaseIncrements() argument 155 …bool isGood = framesToProcess <= m_phaseIncrements.size() && framesToProcess <= m_detuneValues.siz… in calculateSampleAccuratePhaseIncrements() 178 m_frequency->calculateSampleAccurateValues(phaseIncrements, framesToProcess); in calculateSampleAccuratePhaseIncrements() 191 m_detune->calculateSampleAccurateValues(detuneValues, framesToProcess); in calculateSampleAccuratePhaseIncrements() 195 vsmul(detuneValues, 1, &k, detuneValues, 1, framesToProcess); in calculateSampleAccuratePhaseIncrements() 196 for (unsigned i = 0; i < framesToProcess; ++i) in calculateSampleAccuratePhaseIncrements() 201 vmul(detuneValues, 1, phaseIncrements, 1, phaseIncrements, 1, framesToProcess); in calculateSampleAccuratePhaseIncrements() 213 vsmul(phaseIncrements, 1, &finalScale, phaseIncrements, 1, framesToProcess); in calculateSampleAccuratePhaseIncrements() 219 void OscillatorNode::process(size_t framesToProcess) in process() argument 228 ASSERT(framesToProcess <= m_phaseIncrements.size()); in process() [all …]
|
D | GainNode.cpp | 52 void GainNode::process(size_t framesToProcess) in process() argument 68 ASSERT(framesToProcess <= m_sampleAccurateGainValues.size()); in process() 69 if (framesToProcess <= m_sampleAccurateGainValues.size()) { in process() 71 gain()->calculateSampleAccurateValues(gainValues, framesToProcess); in process() 72 … outputBus->copyWithSampleAccurateGainValuesFrom(*inputBus, gainValues, framesToProcess); in process()
|
D | ScriptProcessorNode.cpp | 156 void ScriptProcessorNode::process(size_t framesToProcess) in process() argument 180 …& bufferSize() == outputBuffer->length() && m_bufferReadWriteIndex + framesToProcess <= bufferSize… in process() 191 …bool isFramesToProcessGood = framesToProcess && bufferSize() >= framesToProcess && !(bufferSize() … in process() 204 …ChannelMemory(i, inputBuffer->getChannelData(i)->data() + m_bufferReadWriteIndex, framesToProcess); in process() 211 …outputBuffer->getChannelData(i)->data() + m_bufferReadWriteIndex, sizeof(float) * framesToProcess); in process() 214 m_bufferReadWriteIndex = (m_bufferReadWriteIndex + framesToProcess) % bufferSize(); in process()
|
D | AudioBufferSourceNode.cpp | 89 void AudioBufferSourceNode::process(size_t framesToProcess) in process() argument 117 updateSchedulingInfo(framesToProcess, in process() 144 …erSourceNode::renderSilenceAndFinishIfNotLooping(AudioBus*, unsigned index, size_t framesToProcess) in renderSilenceAndFinishIfNotLooping() argument 149 if (framesToProcess > 0) { in renderSilenceAndFinishIfNotLooping() 153 memset(m_destinationChannels[i] + index, 0, sizeof(float) * framesToProcess); in renderSilenceAndFinishIfNotLooping() 246 int framesToProcess = numberOfFrames; in renderFromBuffer() local 259 while (framesToProcess > 0) { in renderFromBuffer() 261 int framesThisTime = std::min(framesToProcess, framesToEnd); in renderFromBuffer() 269 framesToProcess -= framesThisTime; in renderFromBuffer() 274 if (renderSilenceAndFinishIfNotLooping(bus, writeIndex, framesToProcess)) in renderFromBuffer() [all …]
|
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 | AudioBasicProcessorNode.cpp | 87 void AudioBasicProcessorNode::process(size_t framesToProcess) in process() argument 100 processor()->process(sourceBus, destinationBus, framesToProcess); in process() 105 void AudioBasicProcessorNode::pullInputs(size_t framesToProcess) in pullInputs() argument 108 input(0)->pull(output(0)->bus(), framesToProcess); in pullInputs()
|
D | OfflineAudioDestinationNode.cpp | 119 size_t framesToProcess = m_renderTarget->length(); in offlineRender() local 123 while (framesToProcess > 0) { in offlineRender() 127 size_t framesAvailableToCopy = std::min(framesToProcess, renderQuantumSize); in offlineRender() 136 framesToProcess -= framesAvailableToCopy; in offlineRender()
|
D | AudioNodeInput.cpp | 180 void AudioNodeInput::sumAllConnections(AudioBus* summingBus, size_t framesToProcess) in sumAllConnections() argument 200 AudioBus* connectionBus = output->pull(0, framesToProcess); in sumAllConnections() 207 AudioBus* AudioNodeInput::pull(AudioBus* inPlaceBus, size_t framesToProcess) in pull() argument 215 return output->pull(inPlaceBus, framesToProcess); in pull() 228 sumAllConnections(internalSummingBus, framesToProcess); in pull()
|
D | ChannelSplitterNode.cpp | 58 void ChannelSplitterNode::process(size_t framesToProcess) in process() argument 62 ASSERT_UNUSED(framesToProcess, framesToProcess == source->length()); in process()
|
D | RealtimeAnalyser.cpp | 88 void RealtimeAnalyser::writeInput(AudioBus* bus, size_t framesToProcess) in writeInput() argument 90 …ool isBusGood = bus && bus->numberOfChannels() > 0 && bus->channel(0)->length() >= framesToProcess; in writeInput() 96 …bool isDestinationGood = m_writeIndex < m_inputBuffer.size() && m_writeIndex + framesToProcess <= … in writeInput() 106 memcpy(dest, source, sizeof(float) * framesToProcess); in writeInput() 113 VectorMath::vadd(dest, 1, source, 1, dest, 1, framesToProcess); in writeInput() 116 VectorMath::vsmul(dest, 1, &scale, dest, 1, framesToProcess); in writeInput() 119 m_writeIndex += framesToProcess; in writeInput()
|
/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 | 49 float* AudioResamplerKernel::getSourcePointer(size_t framesToProcess, size_t* numberOfSourceFramesN… in getSourcePointer() argument 51 ASSERT(framesToProcess <= MaxFramesToProcess); in getSourcePointer() 54 double nextFractionalIndex = m_virtualReadIndex + framesToProcess * rate(); in getSourcePointer() 74 void AudioResamplerKernel::process(float* destination, size_t framesToProcess) in process() argument 76 ASSERT(framesToProcess <= MaxFramesToProcess); in process() 94 ASSERT(framesToProcess > 0); in process() 95 …ASSERT(virtualReadIndex >= 0 && 1 + static_cast<unsigned>(virtualReadIndex + (framesToProcess - 1)… in process() 98 int n = framesToProcess; in process()
|
D | DirectConvolver.cpp | 59 …ess(AudioFloatArray* convolutionKernel, const float* sourceP, float* destP, size_t framesToProcess) in process() argument 61 ASSERT(framesToProcess == m_inputBlockSize); in process() 62 if (framesToProcess != m_inputBlockSize) in process() 87 …ippsConv_32f(static_cast<const Ipp32f*>(sourceP), framesToProcess, static_cast<Ipp32f*>(kernelP), … in process() 89 vadd(outputBuffer, 1, overlayBuffer, 1, destP, 1, framesToProcess); in process() 95 memcpy(inputP, sourceP, sizeof(float) * framesToProcess); in process() 99 …conv(inputP - kernelSize + 1, 1, kernelP + kernelSize - 1, -1, destP, 1, framesToProcess, kernelSi… in process() 101 …vDSP_conv(inputP - kernelSize + 1, 1, kernelP + kernelSize - 1, -1, destP, 1, framesToProcess, ker… in process() 109 if ((kernelSize % 4 == 0) && (framesToProcess % 4 == 0)) { in process() 122 for (i = 0; i < framesToProcess; i += 4) { in process() [all …]
|
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 | 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 | 50 …imuth, double /*elevation*/, const AudioBus* inputBus, AudioBus* outputBus, size_t framesToProcess) in pan() argument 52 …us->numberOfChannels() == 1 || inputBus->numberOfChannels() == 2) && framesToProcess <= inputBus->… in pan() 59 …bool isOutputSafe = outputBus && outputBus->numberOfChannels() == 2 && framesToProcess <= outputBu… in pan() 119 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 | 130 …edAzimuth, double elevation, const AudioBus* inputBus, AudioBus* outputBus, size_t framesToProcess) in pan() argument 137 …bool isOutputGood = outputBus && outputBus->numberOfChannels() == 2 && framesToProcess <= outputBu… in pan() 211 ASSERT(1UL << static_cast<int>(log2(framesToProcess)) == framesToProcess); in pan() 212 ASSERT(framesToProcess >= RenderingQuantum); in pan() 215 const unsigned numberOfSegments = framesToProcess / framesPerSegment; in pan()
|