Home
last modified time | relevance | path

Searched refs:framesWritten (Results 1 – 16 of 16) sorted by relevance

/frameworks/av/media/libaaudio/tests/
Dtest_recovery.cpp100 int32_t framesWritten = AAudioStream_write(aaudioStream, in main() local
103 if (framesWritten < 0) { in main()
104 result = framesWritten; in main()
108 } else if (framesWritten != framesPerBurst) { in main()
109 printf("write() returned %d, frames = %d\n", framesWritten, (int)framesTotal); in main()
112 framesTotal += framesWritten; in main()
Dtest_aaudio_monkey.cpp108 int64_t framesWritten = AAudioStream_getFramesWritten(getStream()); in validate() local
113 (unsigned long long) framesWritten, in validate()
117 if (framesWritten < framesRead) { in validate()
119 (int) (framesWritten - framesRead)); in validate()
Dtest_return_stop.cpp156 const int64_t framesWritten = AAudioStream_getFramesWritten(engine->stream); in s_checkEnginePositions() local
157 const int32_t delta = (int32_t)(framesWritten - framesRead); in s_checkEnginePositions()
161 (int32_t) framesWritten, in s_checkEnginePositions()
Dtest_steal_exclusive.cpp210 const int64_t framesWritten = AAudioStream_getFramesWritten(mStream); in checkEnginePositions() local
211 const int32_t delta = (int32_t)(framesWritten - framesRead); in checkEnginePositions()
216 (int32_t) framesWritten, in checkEnginePositions()
/frameworks/av/media/libaaudio/src/client/
DAudioStreamInternalPlay.cpp163 int32_t framesWritten = writeNowWithConversion(buffer, numFrames); in processDataNow() local
167 ATRACE_INT("aaWrote", framesWritten); in processDataNow()
182 if (framesWritten != 0) { in processDataNow()
203 return framesWritten; in processDataNow()
238 int32_t framesWritten = numFrames - framesLeft; in writeNowWithConversion() local
239 mAudioEndpoint->advanceWriteIndex(framesWritten); in writeNowWithConversion()
241 return framesWritten; in writeNowWithConversion()
DAudioEndpoint.h71 void setDataWriteCounter(android::fifo_counter_t framesWritten);
/frameworks/av/services/audioflinger/
DFastCapture.cpp214 ssize_t framesWritten = mPipeSink->write(mReadBuffer, mReadBufferState); in onWork() local
220 mReadBuffer, mFormat.mFormat, framesWritten * mFormat.mChannelCount); in onWork()
221 patchBuffer.frameCount = framesWritten; in onWork()
223 } else if (cblk != NULL && framesWritten > 0) { in onWork()
228 android_atomic_release_store(framesWritten + rear, &cblk->u.mStreaming.mRear); in onWork()
229 cblk->mServer += framesWritten; in onWork()
DFastMixer.cpp493 ssize_t framesWritten = mOutputSink->write(buffer, frameCount); in onWork() local
496 if (framesWritten >= 0) { in onWork()
497 ALOG_ASSERT((size_t) framesWritten <= frameCount); in onWork()
498 mTotalNativeFramesWritten += framesWritten; in onWork()
DTracks.cpp836 const size_t framesWritten = patchRecord->writeFrames( in interceptBuffer() local
838 const size_t framesLeft = frameCount - framesWritten; in interceptBuffer()
841 framesWritten, frameCount, framesLeft); in interceptBuffer()
1313 int64_t framesWritten, size_t audioHalFrames) in presentationComplete() argument
1327 (long long)mPresentationCompleteFrames, (long long)framesWritten); in presentationComplete()
1329 mPresentationCompleteFrames = framesWritten + audioHalFrames; in presentationComplete()
1340 complete = framesWritten >= (int64_t) mPresentationCompleteFrames; in presentationComplete()
1342 complete = framesWritten >= (int64_t) mPresentationCompleteFrames in presentationComplete()
2467 size_t framesWritten = patchBuffer.frameCount; in writeFramesHelper() local
2469 return framesWritten; in writeFramesHelper()
[all …]
DThreads.cpp2042 dprintf(fd, " PipeSink frames written: %lld\n", (long long)mPipeSink->framesWritten()); in dumpInternals_l()
2945 int64_t framesWritten = mBytesWritten / mFrameSize; in getRenderPosition() local
2946 *halFrames = framesWritten; in getRenderPosition()
2952 (framesWritten >= (int64_t)latencyFrames ? framesWritten - latencyFrames : 0); in getRenderPosition()
3103 ssize_t framesWritten = mNormalSink->write((char *)mSinkBuffer + offset, count); in threadLoop_write() local
3105 if (framesWritten > 0) { in threadLoop_write()
3106 bytesWritten = framesWritten * mFrameSize; in threadLoop_write()
3108 mTee.write((char *)mSinkBuffer + offset, framesWritten); in threadLoop_write()
3111 bytesWritten = framesWritten; in threadLoop_write()
4623 (long long)mPipeSink->framesWritten(), pipeFrames); in threadLoop_standby()
[all …]
DPlaybackTracks.h220 bool presentationComplete(int64_t framesWritten, size_t audioHalFrames);
/frameworks/av/media/libaaudio/src/fifo/
DFifoBuffer.cpp174 fifo_frames_t framesWritten = numFrames - framesLeft; in write() local
175 mFifo->advanceWriteIndex(framesWritten); in write()
176 return framesWritten; in write()
/frameworks/av/media/libaaudio/examples/write_sine/src/
Dwrite_sine_callback.cpp123 … const int32_t framesWritten = (int32_t) AAudioStream_getFramesWritten(player.getStream()); in testOpenPlayClose() local
130 framesWritten, in testOpenPlayClose()
132 framesWritten - framesRead, in testOpenPlayClose()
/frameworks/av/media/libaaudio/examples/loopback/src/
Dloopback.cpp729 int32_t framesWritten = AAudioStream_getFramesWritten(inputStream); in main() local
730 const int64_t framesAvailable = framesWritten - framesRead; in main()
733 printf(" framesWritten = %8d\n", framesWritten); in main()
749 int32_t framesWritten = AAudioStream_getFramesWritten(outputStream); in main() local
753 printf(" framesWritten = %8d\n", framesWritten); in main()
/frameworks/av/media/libaaudio/src/legacy/
DAudioStreamTrack.cpp444 int32_t framesWritten = (int32_t)(bytesWritten / bytesPerFrame); in write() local
445 incrementFramesWritten(framesWritten); in write()
452 return framesWritten; in write()
/frameworks/av/media/libnbaio/include_mono/media/nbaio/
DNBAIO.h151 virtual int64_t framesWritten() const { return mFramesWritten; } in framesWritten() function