Lines Matching refs:buffer

264 	// Are we being passed the buffer group we're already using?
268 // Ahh, someone wants us to use a different buffer group. At this point we
272 // earlier, we have to Recycle() that buffer *before* deleting the buffer
273 // group, otherwise we'll deadlock waiting for that buffer to be recycled!
284 // our own buffer group to use from now on
425 // reset our buffer duration, etc. to avoid later calculations
432 TRACE("SoundPlayNode::Connect: buffer duration is %" B_PRId64 "\n",
440 // Set up the buffer group for our connection, as long as nobody handed us
441 // a buffer group (via SetBufferGroup()) prior to this.
510 // a buffer, which catches us up in time by one buffer duration.
518 TRACE("SoundPlayNode::LateNoticeReceived: skipping a buffer to try to catch up\n");
631 // make sure we're both started *and* connected before delivering a buffer
636 // The event->event_time is the time at which the buffer we are preparing
647 // skip buffer creation if output not enabled
650 // Get the next buffer of data
651 BBuffer* buffer = FillNextBuffer(event->event_time);
653 if (buffer) {
672 // send the buffer downstream if and only if output is enabled
673 if (SendBuffer(buffer, fOutput.source, fOutput.destination)
675 // we need to recycle the buffer
679 buffer->Recycle();
691 // The buffer is on its way; now schedule the next one to go
692 // nextEvent is the time at which the buffer should arrive at it's
731 // We want to start sending buffers now, so we set up the buffer-sending
732 // bookkeeping and fire off the first "produce a buffer" event.
801 TRACE("SoundPlayNode::AllocateBuffers: latency = %" B_PRId64 ", buffer "
826 // get a buffer from our buffer group
827 BBuffer* buffer = fBufferGroup->RequestBuffer(
830 // If we fail to get a buffer (for example, if the request times out), we
831 // skip this buffer and go on to the next, to avoid locking up the control
833 if (buffer == NULL) {
839 fPlayer->PlayBuffer(buffer->Data(),
842 memset(buffer->Data(), 0, fOutput.format.u.raw_audio.buffer_size);
844 // fill in the buffer header
845 media_header* header = buffer->Header();
851 return buffer;