Lines Matching refs:frames

137 // minimum normal mix buffer size, expressed in milliseconds rather than frames
2059 ALOGW("HAL output buffer size is %u frames but AudioMixer requires multiples of 16 frames",
2068 // round up minimum and round down maximum to nearest 16 frames to satisfy AudioMixer
2098 // round up to nearest 16 frames to satisfy AudioMixer
2100 ALOGI("HAL output buffer size %u frames, normal mix buffer size %u frames", mFrameCount, mNormalFrameCount);
2131 // return an estimation of rendered frames when the output is suspended
2132 int32_t frames = mBytesWritten - latency_l();
2133 if (frames < 0) {
2134 frames = 0;
2136 *dspFrames = (uint32_t)frames;
2997 // track has provided at least some frames recently: reset retry count
3006 // were any of the recent underruns "empty" (no frames available)?
3103 // make sure that we have enough frames to mix one full buffer.
3116 // add frames already consumed but not yet released by the resampler
3117 // because cblk->framesReady() will include these frames
3119 // the minimum track buffer size is normally twice the number of frames necessary
3121 // of unreleased frames after each pass, but just in case...
4288 void* AudioFlinger::ThreadBase::TrackBase::getBuffer(uint32_t offset, uint32_t frames) const {
4292 int8_t *bufferEnd = bufferStart + frames * frameSize;
4782 // a track is considered presented when the total number of frames written to audio HAL
4783 // corresponds to the number of frames written when presentationComplete() is called for the
5040 "Bad bookkeeping while updating frames pending. Timed buffer is"
5047 "Bad bookkeeping while updating frames pending. Should have at"
5048 " least %u queued frames, but we think we have only %u. (update"
5333 " least %u queued frames, but we think we have only %u",
5542 bool AudioFlinger::PlaybackThread::OutputTrack::write(int16_t* data, uint32_t frames)
5548 inBuffer.frameCount = frames;
5553 if (!mActive && frames != 0) {
5558 if (mCblk->frameCount > frames){
5560 uint32_t startFrames = (mCblk->frameCount - frames);
5622 // If we could not write all frames, allocate a buffer and queue it for next time.
5643 if (frames == 0 && mBufferQueue.size() == 0) {
5645 frames = mCblk->frameCount - mCblk->user;
5647 pInBuffer->mBuffer = new int16_t[frames * channelCount];
5648 pInBuffer->frameCount = frames;
5650 memset(pInBuffer->raw, 0, frames * channelCount * sizeof(int16_t));