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.cpp137 int32_t minFrames = (framesToPlay < framesPerWrite) ? framesToPlay : framesPerWrite; in main() local
140 actual = AAudioStream_write(aaudioStream, floatData, minFrames, timeoutNanos); in main()
142 actual = AAudioStream_write(aaudioStream, shortData, 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.cpp1173 uint32_t minFrames = ~0; in processAudioBuffer() local
1175 minFrames = (markerPosition - position).value(); in processAudioBuffer()
1179 if (remaining < minFrames) { in processAudioBuffer()
1180 minFrames = remaining; in processAudioBuffer()
1186 if (kPoll > 0 && mTransfer == TRANSFER_CALLBACK && kPoll * notificationFrames < minFrames) { in processAudioBuffer()
1187 minFrames = kPoll * notificationFrames; in processAudioBuffer()
1192 if (minFrames != (uint32_t) ~0) { in processAudioBuffer()
1195 ns = ((minFrames * 1000000000LL) / mSampleRate) + kFudgeNs; in processAudioBuffer()
DAudioTrack.cpp2061 uint32_t minFrames = ~0; in processAudioBuffer() local
2063 minFrames = (markerPosition - position).value(); in processAudioBuffer()
2065 if (loopPeriod > 0 && loopPeriod < minFrames) { in processAudioBuffer()
2067 minFrames = loopPeriod; in processAudioBuffer()
2070 minFrames = min(minFrames, (newPosition - position).value()); in processAudioBuffer()
2075 if (kPoll > 0 && mTransfer == TRANSFER_CALLBACK && kPoll * notificationFrames < minFrames) { in processAudioBuffer()
2076 minFrames = kPoll * notificationFrames; in processAudioBuffer()
2085 if (minFrames != (uint32_t) ~0) { in processAudioBuffer()
2091 const nsecs_t estimatedNs = framesToNanoseconds(minFrames, sampleRate, speed); in processAudioBuffer()
/frameworks/av/services/audioflinger/
DThreads.cpp4955 uint32_t minFrames = 1; in prepareTracks_l() local
4958 minFrames = desiredFrames; in prepareTracks_l()
4968 if ((framesReady >= minFrames) && track->isReady() && in prepareTracks_l()
5691 uint32_t minFrames; in prepareTracks_l() local
5694 minFrames = mNormalFrameCount; in prepareTracks_l()
5696 minFrames = 1; in prepareTracks_l()
5706 if ((framesReady >= minFrames) && track->isReady() && !track->isPaused() && in prepareTracks_l()
5794 framesReady, minFrames, mFormat); in prepareTracks_l()