/frameworks/av/media/libaaudio/src/flowgraph/ |
D | SinkFloat.cpp | 35 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()
|
D | SinkI32.cpp | 37 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()
|
D | SinkI16.cpp | 39 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()
|
D | SinkI24.cpp | 39 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/ |
D | test_return_stop.cpp | 46 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()
|
D | test_bad_disconnect.cpp | 40 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()
|
D | test_aaudio_monkey.cpp | 110 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()
|
D | test_steal_exclusive.cpp | 209 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/ |
D | loopback.cpp | 154 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/ |
D | FastCapture.cpp | 186 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()
|
D | Threads.cpp | 7429 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/ |
D | AudioStreamInSource.cpp | 81 size_t framesRead = bytesRead / mFrameSize; in read() local 82 mFramesRead += framesRead; in read() 83 return framesRead; in read()
|
/frameworks/av/media/libaaudio/src/client/ |
D | AudioEndpoint.cpp | 214 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()
|
D | AudioEndpoint.h | 67 void setDataReadCounter(android::fifo_counter_t framesRead);
|
/frameworks/av/media/libaaudio/src/fifo/ |
D | FifoBuffer.cpp | 141 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/ |
D | write_sine_callback.cpp | 124 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/ |
D | input_monitor.cpp | 175 int64_t framesRead = AAudioStream_getFramesRead(aaudioStream); in main() local 177 double latencyMillis = calculateLatencyMillis(framesRead, realTime, in main()
|
/frameworks/av/media/libaaudio/src/legacy/ |
D | AudioStreamRecord.cpp | 497 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/ |
D | NBAIO.h | 243 virtual int64_t framesRead() const { return mFramesRead; } in framesRead() function
|