Home
last modified time | relevance | path

Searched refs:framesRead (Results 1 – 19 of 19) sorted by relevance

/frameworks/av/media/libaaudio/src/flowgraph/
DSinkFloat.cpp35 int32_t framesRead = pull(framesLeft); in read() local
36 if (framesRead <= 0) { in read()
40 int32_t numSamples = framesRead * channelCount; in read()
43 framesLeft -= framesRead; in read()
DSinkI32.cpp37 int32_t framesRead = pull(framesLeft); in read() local
38 if (framesRead <= 0) { in read()
42 int32_t numSamples = framesRead * channelCount; in read()
52 framesLeft -= framesRead; in read()
DSinkI16.cpp39 int32_t framesRead = pull(framesLeft); in read() local
40 if (framesRead <= 0) { in read()
44 int32_t numSamples = framesRead * channelCount; in read()
55 framesLeft -= framesRead; in read()
DSinkI24.cpp39 int32_t framesRead = pull(framesLeft); in read() local
40 if (framesRead <= 0) { in read()
44 int32_t numSamples = framesRead * channelCount; in read()
62 framesLeft -= framesRead; in read()
/frameworks/av/media/libaaudio/tests/
Dtest_return_stop.cpp46 std::atomic<int32_t> framesRead{}; member
53 framesRead.store(0); in reset()
77 engine->framesRead = (int32_t)AAudioStream_getFramesRead(stream); in s_myDataCallbackProc()
79 engine->startingFramesRead.store(engine->framesRead.load()); in s_myDataCallbackProc()
155 const int64_t framesRead = AAudioStream_getFramesRead(engine->stream); in s_checkEnginePositions() local
157 const int32_t delta = (int32_t)(framesWritten - framesRead); in s_checkEnginePositions()
160 (int32_t) framesRead, in s_checkEnginePositions()
283 if (engine.startingFramesRead.load() == engine.framesRead.load()) { in main()
Dtest_bad_disconnect.cpp40 int64_t framesRead = 0; member
55 s_AudioEngine.framesRead = AAudioStream_getFramesRead(stream); in s_myDataCallbackProc()
161 printf("playing silence #%d, framesRead = %d\n", i, (int) s_AudioEngine.framesRead); in main()
Dtest_aaudio_monkey.cpp110 int64_t framesRead = AAudioStream_getFramesRead(getStream()); in validate() local
117 (unsigned long long) framesRead, in validate()
120 if (state != AAUDIO_STREAM_STATE_STARTING && framesWritten < framesRead) { in validate()
122 (int) (framesWritten - framesRead)); in validate()
Dtest_steal_exclusive.cpp209 const int64_t framesRead = AAudioStream_getFramesRead(mStream); in checkEnginePositions() local
211 const int32_t delta = (int32_t)(framesWritten - framesRead); in checkEnginePositions()
215 (int32_t) framesRead, in checkEnginePositions()
/frameworks/av/media/libaaudio/examples/loopback/src/
Dloopback.cpp154 int32_t framesRead = AAUDIO_ERROR_INVALID_FORMAT; in readFormattedData() local
156 framesRead = AAudioStream_read(myData->inputStream, myData->inputShortData, in readFormattedData()
160 framesRead = AAudioStream_read(myData->inputStream, myData->inputFloatData, in readFormattedData()
167 if (framesRead < 0) { in readFormattedData()
170 myData->inputError = framesRead; in readFormattedData()
171 printf("ERROR in read = %d = %s\n", framesRead, in readFormattedData()
172 AAudio_convertResultToText(framesRead)); in readFormattedData()
174 framesRead = 0; in readFormattedData()
177 myData->framesReadTotal += framesRead; in readFormattedData()
179 return framesRead; in readFormattedData()
[all …]
/frameworks/av/services/audioflinger/
DFastCapture.cpp186 ssize_t framesRead = mInputSource->read(mReadBuffer, frameCount); in onWork() local
189 if (framesRead >= 0) { in onWork()
190 LOG_ALWAYS_FATAL_IF((size_t) framesRead > frameCount); in onWork()
191 mTotalNativeFramesRead += framesRead; in onWork()
193 mReadBufferState = framesRead; in onWork()
194 patchBuffer.frameCount = framesRead; in onWork()
DThreads.cpp7429 ssize_t framesRead; in threadLoop() local
7441 framesRead = mPipeSource->read((uint8_t*)mRsmpInBuffer + rear * mFrameSize, in threadLoop()
7443 if (framesRead != OVERRUN) break; in threadLoop()
7458 if (framesRead < 0) { in threadLoop()
7459 status_t status = (status_t) framesRead; in threadLoop()
7463 framesRead = 0; in threadLoop()
7467 framesRead = -1; // Will cause an attempt to recover. in threadLoop()
7482 framesRead = result; in threadLoop()
7484 framesRead = bytesRead / mFrameSize; in threadLoop()
7492 if (framesRead >= 0) { in threadLoop()
[all …]
/frameworks/av/media/libnbaio/
DAudioStreamInSource.cpp81 size_t framesRead = bytesRead / mFrameSize; in read() local
82 mFramesRead += framesRead; in read()
83 return framesRead; in read()
/frameworks/av/media/libaaudio/src/client/
DAudioEndpoint.cpp214 void AudioEndpoint::setDataReadCounter(fifo_counter_t framesRead) { in setDataReadCounter() argument
215 mDataQueue->setReadCounter(framesRead); in setDataReadCounter()
222 void AudioEndpoint::setDataWriteCounter(fifo_counter_t framesRead) { in setDataWriteCounter() argument
223 mDataQueue->setWriteCounter(framesRead); in setDataWriteCounter()
DAudioEndpoint.h67 void setDataReadCounter(android::fifo_counter_t framesRead);
/frameworks/av/media/libaaudio/src/fifo/
DFifoBuffer.cpp141 fifo_frames_t framesRead = numFrames - framesLeft; in read() local
142 mFifo->advanceReadIndex(framesRead); in read()
143 return framesRead; in read()
/frameworks/av/media/libaaudio/examples/write_sine/src/
Dwrite_sine_callback.cpp124 const int32_t framesRead = (int32_t) AAudioStream_getFramesRead(player.getStream()); in testOpenPlayClose() local
131 framesRead, in testOpenPlayClose()
132 framesWritten - framesRead, in testOpenPlayClose()
/frameworks/av/media/libaaudio/examples/input_monitor/src/
Dinput_monitor.cpp175 int64_t framesRead = AAudioStream_getFramesRead(aaudioStream); in main() local
177 double latencyMillis = calculateLatencyMillis(framesRead, realTime, in main()
/frameworks/av/media/libaaudio/src/legacy/
DAudioStreamRecord.cpp497 int32_t framesRead = (int32_t)(totalBytesRead / bytesPerDeviceFrame); in read() local
498 incrementFramesRead(framesRead); in read()
505 return (aaudio_result_t) framesRead; in read()
/frameworks/av/media/libnbaio/include_mono/media/nbaio/
DNBAIO.h243 virtual int64_t framesRead() const { return mFramesRead; } in framesRead() function