Home | History | Annotate | Download | only in audioflinger

Lines Matching refs:frames

903         //       track, and thus for us to get the frames released of the wrong track.
1006 // a track is considered presented when the total number of frames written to audio HAL
1007 // corresponds to the number of frames written when presentationComplete() is called for the
1010 // to detect when all frames have been played. In this case framesWritten isn't
1321 "Bad bookkeeping while updating frames pending. Timed buffer is"
1328 "Bad bookkeeping while updating frames pending. Should have at"
1329 " least %u queued frames, but we think we have only %u. (update"
1616 " least %u queued frames, but we think we have only %u",
1711 bool AudioFlinger::PlaybackThread::OutputTrack::write(int16_t* data, uint32_t frames)
1717 inBuffer.frameCount = frames;
1722 if (!mActive && frames != 0) {
1727 if (mFrameCount > frames) {
1729 uint32_t startFrames = (mFrameCount - frames);
1798 // If we could not write all frames, allocate a buffer and queue it for next time.
1822 if (frames == 0 && mBufferQueue.size() == 0) {
1826 frames = mFrameCount - user;
1828 pInBuffer->mBuffer = new int16_t[frames * channelCount];
1829 pInBuffer->frameCount = frames;
1831 memset(pInBuffer->raw, 0, frames * channelCount * sizeof(int16_t));