Lines Matching refs:frames

143 // minimum normal mix buffer size, expressed in milliseconds rather than frames
2002 ALOGW("HAL output buffer size is %u frames but AudioMixer requires multiples of 16 frames",
2011 // round up minimum and round down maximum to nearest 16 frames to satisfy AudioMixer
2041 // round up to nearest 16 frames to satisfy AudioMixer
2043 ALOGI("HAL output buffer size %u frames, normal mix buffer size %u frames", mFrameCount, mNormalFrameCount);
2957 // track has provided at least some frames recently: reset retry count
2966 // were any of the recent underruns "empty" (no frames available)?
3063 // make sure that we have enough frames to mix one full buffer.
3076 // add frames already consumed but not yet released by the resampler
3077 // because cblk->framesReady() will include these frames
3079 // the minimum track buffer size is normally twice the number of frames necessary
3081 // of unreleased frames after each pass, but just in case...
4245 void* AudioFlinger::ThreadBase::TrackBase::getBuffer(uint32_t offset, uint32_t frames) const {
4249 int8_t *bufferEnd = bufferStart + frames * frameSize;
4746 // a track is considered presented when the total number of frames written to audio HAL
4747 // corresponds to the number of frames written when presentationComplete() is called for the
5004 "Bad bookkeeping while updating frames pending. Timed buffer is"
5011 "Bad bookkeeping while updating frames pending. Should have at"
5012 " least %u queued frames, but we think we have only %u. (update"
5297 " least %u queued frames, but we think we have only %u",
5498 bool AudioFlinger::PlaybackThread::OutputTrack::write(int16_t* data, uint32_t frames)
5504 inBuffer.frameCount = frames;
5509 if (!mActive && frames != 0) {
5514 if (mCblk->frameCount > frames){
5516 uint32_t startFrames = (mCblk->frameCount - frames);
5578 // If we could not write all frames, allocate a buffer and queue it for next time.
5599 if (frames == 0 && mBufferQueue.size() == 0) {
5601 frames = mCblk->frameCount - mCblk->user;
5603 pInBuffer->mBuffer = new int16_t[frames * channelCount];
5604 pInBuffer->frameCount = frames;
5606 memset(pInBuffer->raw, 0, frames * channelCount * sizeof(int16_t));