Home
last modified time | relevance | path

Searched refs:framesRead (Results 1 – 18 of 18) 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()
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.cpp40 int32_t framesRead = pull(framesLeft); in read() local
41 if (framesRead <= 0) { in read()
45 int32_t numSamples = framesRead * channelCount; in read()
63 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.cpp107 int64_t framesRead = AAudioStream_getFramesRead(getStream()); in validate() local
114 (unsigned long long) framesRead, in validate()
117 if (framesWritten < framesRead) { in validate()
119 (int) (framesWritten - framesRead)); in validate()
/frameworks/av/media/libaaudio/examples/loopback/src/
Dloopback.cpp130 int32_t framesRead = AAUDIO_ERROR_INVALID_FORMAT; in readFormattedData() local
132 framesRead = AAudioStream_read(myData->inputStream, myData->inputShortData, in readFormattedData()
136 framesRead = AAudioStream_read(myData->inputStream, myData->inputFloatData, in readFormattedData()
143 if (framesRead < 0) { in readFormattedData()
146 myData->inputError = framesRead; in readFormattedData()
147 printf("ERROR in read = %d = %s\n", framesRead, in readFormattedData()
148 AAudio_convertResultToText(framesRead)); in readFormattedData()
150 framesRead = 0; in readFormattedData()
153 myData->framesReadTotal += framesRead; in readFormattedData()
155 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.cpp7113 ssize_t framesRead; in threadLoop() local
7125 framesRead = mPipeSource->read((uint8_t*)mRsmpInBuffer + rear * mFrameSize, in threadLoop()
7127 if (framesRead != OVERRUN) break; in threadLoop()
7142 if (framesRead < 0) { in threadLoop()
7143 status_t status = (status_t) framesRead; in threadLoop()
7147 framesRead = 0; in threadLoop()
7151 framesRead = -1; // Will cause an attempt to recover. in threadLoop()
7166 framesRead = result; in threadLoop()
7168 framesRead = bytesRead / mFrameSize; in threadLoop()
7176 mTimestamp.mPosition[ExtendedTimestamp::LOCATION_SERVER] += framesRead; in threadLoop()
[all …]
/frameworks/av/media/libnbaio/
DAudioStreamInSource.cpp83 size_t framesRead = bytesRead / mFrameSize; in read() local
84 mFramesRead += framesRead; in read()
85 return framesRead; in read()
/frameworks/av/media/libaaudio/src/client/
DAudioEndpoint.cpp220 void AudioEndpoint::setDataReadCounter(fifo_counter_t framesRead) in setDataReadCounter() argument
222 mDataQueue->setReadCounter(framesRead); in setDataReadCounter()
230 void AudioEndpoint::setDataWriteCounter(fifo_counter_t framesRead) in setDataWriteCounter() argument
232 mDataQueue->setWriteCounter(framesRead); in setDataWriteCounter()
DAudioEndpoint.h68 void setDataReadCounter(android::fifo_counter_t framesRead);
/frameworks/av/media/libaaudio/src/fifo/
DFifoBuffer.cpp143 fifo_frames_t framesRead = numFrames - framesLeft; in read() local
144 mFifo->advanceReadIndex(framesRead); in read()
145 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.cpp448 int32_t framesRead = (int32_t)(totalBytesRead / bytesPerDeviceFrame); in read() local
449 incrementFramesRead(framesRead); in read()
456 return (aaudio_result_t) framesRead; in read()
/frameworks/av/include/media/nbaio/
DNBAIO.h243 virtual int64_t framesRead() const { return mFramesRead; } in framesRead() function
/frameworks/av/media/libnbaio/include_mono/media/nbaio/
DNBAIO.h243 virtual int64_t framesRead() const { return mFramesRead; } in framesRead() function