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.cpp111 int64_t framesWritten = AAudioStream_getFramesWritten(getStream()); in validate() local
116 (unsigned long long) framesWritten, in validate()
120 if (state != AAUDIO_STREAM_STATE_STARTING && framesWritten < framesRead) { in validate()
122 (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.cpp178 int32_t framesWritten = writeNowWithConversion(buffer, numFrames); in processDataNow() local
182 ATRACE_INT("aaWrote", framesWritten); in processDataNow()
197 if (framesWritten != 0) { in processDataNow()
218 return framesWritten; in processDataNow()
253 int32_t framesWritten = numFrames - framesLeft; in writeNowWithConversion() local
254 mAudioEndpoint->advanceWriteIndex(framesWritten); in writeNowWithConversion()
256 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.cpp503 ssize_t framesWritten = mOutputSink->write(buffer, frameCount); in onWork() local
506 if (framesWritten >= 0) { in onWork()
507 ALOG_ASSERT((size_t) framesWritten <= frameCount); in onWork()
508 mTotalNativeFramesWritten += framesWritten; in onWork()
DTracks.cpp962 const size_t framesWritten = patchRecord->writeFrames( in interceptBuffer() local
964 const size_t framesLeft = frameCount - framesWritten; in interceptBuffer()
967 framesWritten, frameCount, framesLeft); in interceptBuffer()
1466 int64_t framesWritten, size_t audioHalFrames) in presentationComplete() argument
1480 (long long)mPresentationCompleteFrames, (long long)framesWritten); in presentationComplete()
1482 mPresentationCompleteFrames = framesWritten + audioHalFrames; in presentationComplete()
1491 complete = framesWritten >= (int64_t) mPresentationCompleteFrames; in presentationComplete()
1494 (long long) framesWritten, (long long) mPresentationCompleteFrames); in presentationComplete()
1496 complete = framesWritten >= (int64_t) mPresentationCompleteFrames in presentationComplete()
2718 size_t framesWritten = patchBuffer.frameCount; in writeFramesHelper() local
[all …]
DPlaybackTracks.h228 bool presentationComplete(int64_t framesWritten, size_t audioHalFrames);
DThreads.cpp2108 dprintf(fd, " PipeSink frames written: %lld\n", (long long)mPipeSink->framesWritten()); in dumpInternals_l()
3031 int64_t framesWritten = mBytesWritten / mFrameSize; in getRenderPosition() local
3032 *halFrames = framesWritten; in getRenderPosition()
3038 (framesWritten >= (int64_t)latencyFrames ? framesWritten - latencyFrames : 0); in getRenderPosition()
3189 ssize_t framesWritten = mNormalSink->write((char *)mSinkBuffer + offset, count); in threadLoop_write() local
3191 if (framesWritten > 0) { in threadLoop_write()
3192 bytesWritten = framesWritten * mFrameSize; in threadLoop_write()
3194 mTee.write((char *)mSinkBuffer + offset, framesWritten); in threadLoop_write()
3197 bytesWritten = framesWritten; in threadLoop_write()
4736 (long long)mPipeSink->framesWritten(), pipeFrames); in threadLoop_standby()
[all …]
/frameworks/av/media/libaaudio/src/fifo/
DFifoBuffer.cpp172 fifo_frames_t framesWritten = numFrames - framesLeft; in write() local
173 mFifo->advanceWriteIndex(framesWritten); in write()
174 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.cpp734 int32_t framesWritten = AAudioStream_getFramesWritten(inputStream); in main() local
735 const int64_t framesAvailable = framesWritten - framesRead; in main()
738 printf(" framesWritten = %8d\n", framesWritten); in main()
754 int32_t framesWritten = AAudioStream_getFramesWritten(outputStream); in main() local
758 printf(" framesWritten = %8d\n", framesWritten); in main()
/frameworks/av/media/libaaudio/src/legacy/
DAudioStreamTrack.cpp460 int32_t framesWritten = (int32_t)(bytesWritten / bytesPerFrame); in write() local
461 incrementFramesWritten(framesWritten); in write()
468 return framesWritten; in write()
/frameworks/av/media/libnbaio/include_mono/media/nbaio/
DNBAIO.h151 virtual int64_t framesWritten() const { return mFramesWritten; } in framesWritten() function