Home | History | Annotate | Download | only in webaudio

Lines Matching defs:outputBuffer

131         RefPtrWillBeRawPtr<AudioBuffer> outputBuffer = m_numberOfOutputChannels ? AudioBuffer::create(m_numberOfOutputChannels, bufferSize(), sampleRate) : nullptr;
134 m_outputBuffers.append(outputBuffer);
155 // Additionally, there is a double-buffering for input and output which is exposed directly to JavaScript (see inputBuffer and outputBuffer below).
156 // This node is the producer for inputBuffer and the consumer for outputBuffer.
157 // The JavaScript code is the consumer of inputBuffer and the producer for outputBuffer.
171 AudioBuffer* outputBuffer = m_outputBuffers[doubleBufferIndex].get();
175 bool buffersAreGood = outputBuffer && bufferSize() == outputBuffer->length() && m_bufferReadWriteIndex + framesToProcess <= bufferSize();
206 memcpy(outputBus->channel(i)->mutableData(), outputBuffer->getChannelData(i)->data() + m_bufferReadWriteIndex, sizeof(float) * framesToProcess);
221 outputBuffer->zero();
258 AudioBuffer* outputBuffer = m_outputBuffers[m_doubleBufferIndexForEvent].get();
259 ASSERT(outputBuffer);
260 if (!outputBuffer)
269 // The outputBuffer being passed to JS will be played after exhuasting previous outputBuffer by double-buffering.
273 dispatchEvent(AudioProcessingEvent::create(inputBuffer, outputBuffer, playbackTime));