Home | History | Annotate | Download | only in webaudio

Lines Matching refs:framesToProcess

79 void AudioBufferSourceNode::process(size_t framesToProcess)
95 double quantumEndTime = quantumStartTime + framesToProcess / sampleRate;
124 m_resampler.process(this, outputBus, framesToProcess);
185 int framesToProcess = numberOfFrames;
191 ASSERT(m_schedulingFrameDelay <= framesToProcess);
192 if (m_schedulingFrameDelay <= framesToProcess) {
202 framesToProcess -= m_schedulingFrameDelay;
209 while (framesToProcess > 0) {
216 int framesThisTime = min(framesToProcess, framesAvailable);
232 framesToProcess -= framesThisTime;
243 if (framesToProcess > 0) {
246 memset(destinationL, 0, sizeof(float) * framesToProcess);
249 memset(destinationR, 0, sizeof(float) * framesToProcess);
263 void AudioBufferSourceNode::readFromBuffer(AudioBus* destinationBus, size_t framesToProcess)
265 bool isBusGood = destinationBus && destinationBus->length() == framesToProcess && destinationBus->numberOfChannels() == numberOfChannels();
282 bool isSourceGood = sourceL && (numberOfChannels == 1 || sourceR) && m_readIndex + framesToProcess <= m_buffer->length();
300 readFromBufferWithGrainEnvelope(sourceL, sourceR, destinationL, destinationR, framesToProcess);
303 memcpy(destinationL, sourceL, sizeof(float) * framesToProcess);
305 memcpy(destinationR, sourceR, sizeof(float) * framesToProcess);
309 m_readIndex += framesToProcess;
312 void AudioBufferSourceNode::readFromBufferWithGrainEnvelope(float* sourceL, float* sourceR, float* destinationL, float* destinationR, size_t framesToProcess)
321 int n = framesToProcess;