Home
last modified time | relevance | path

Searched refs:minFrames (Results 1 – 5 of 5) sorted by relevance

/frameworks/av/media/libaaudio/examples/write_sine/src/
Dwrite_sine.cpp167 int32_t minFrames = (framesToPlay < framesPerWrite) ? framesToPlay : framesPerWrite; in main() local
171 actual = AAudioStream_write(aaudioStream, floatData, minFrames, timeoutNanos); in main()
174 actual = AAudioStream_write(aaudioStream, shortData, minFrames, timeoutNanos); in main()
177 actual = AAudioStream_write(aaudioStream, int32Data, minFrames, timeoutNanos); in main()
180 actual = AAudioStream_write(aaudioStream, byteData, minFrames, timeoutNanos); in main()
/frameworks/av/media/libaaudio/examples/input_monitor/src/
Dinput_monitor.cpp129 int minFrames = (framesToRecord < framesPerRead) ? framesToRecord : framesPerRead; in main() local
132 actual = AAudioStream_read(aaudioStream, shortData, minFrames, timeoutNanos); in main()
134 actual = AAudioStream_read(aaudioStream, floatData, minFrames, timeoutNanos); in main()
/frameworks/av/media/libaudioclient/
DAudioRecord.cpp1359 uint32_t minFrames = ~0; in processAudioBuffer() local
1361 minFrames = (markerPosition - position).value(); in processAudioBuffer()
1365 if (remaining < minFrames) { in processAudioBuffer()
1366 minFrames = remaining; in processAudioBuffer()
1372 if (kPoll > 0 && mTransfer == TRANSFER_CALLBACK && kPoll * notificationFrames < minFrames) { in processAudioBuffer()
1373 minFrames = kPoll * notificationFrames; in processAudioBuffer()
1378 if (minFrames != (uint32_t) ~0) { in processAudioBuffer()
1381 ns = ((minFrames * 1000000000LL) / mSampleRate) + kFudgeNs; in processAudioBuffer()
DAudioTrack.cpp2598 uint32_t minFrames = ~0; in processAudioBuffer() local
2600 minFrames = (markerPosition - position).value(); in processAudioBuffer()
2602 if (loopPeriod > 0 && loopPeriod < minFrames) { in processAudioBuffer()
2604 minFrames = loopPeriod; in processAudioBuffer()
2607 minFrames = min(minFrames, (newPosition - position).value()); in processAudioBuffer()
2612 if (kPoll > 0 && mTransfer == TRANSFER_CALLBACK && kPoll * notificationFrames < minFrames) { in processAudioBuffer()
2613 minFrames = kPoll * notificationFrames; in processAudioBuffer()
2622 if (minFrames != (uint32_t) ~0) { in processAudioBuffer()
2628 const nsecs_t estimatedNs = framesToNanoseconds(minFrames, sampleRate, speed); in processAudioBuffer()
/frameworks/av/services/audioflinger/
DThreads.cpp5882 uint32_t minFrames = 1; in prepareTracks_l() local
5885 minFrames = desiredFrames; in prepareTracks_l()
5895 if ((framesReady >= minFrames) && track->isReady() && in prepareTracks_l()
6859 uint32_t minFrames; in prepareTracks_l() local
6862 minFrames = mNormalFrameCount; in prepareTracks_l()
6864 minFrames = 1; in prepareTracks_l()
6874 if ((framesReady >= minFrames) && track->isReady() && !track->isPaused() && in prepareTracks_l()
6965 framesReady, minFrames, mFormat); in prepareTracks_l()