HomeSort by relevance Sort by last modified time
    Searched refs:framesRead (Results 1 - 20 of 20) sorted by null

  /frameworks/av/media/libaaudio/src/flowgraph/
SinkFloat.cpp 35 int32_t framesRead = pull(framesLeft);
36 if (framesRead <= 0) {
40 int32_t numSamples = framesRead * channelCount;
43 framesLeft -= framesRead;
SinkI16.cpp 39 int32_t framesRead = pull(framesLeft);
40 if (framesRead <= 0) {
44 int32_t numSamples = framesRead * channelCount;
55 framesLeft -= framesRead;
SinkI24.cpp 40 int32_t framesRead = pull(framesLeft);
41 if (framesRead <= 0) {
45 int32_t numSamples = framesRead * channelCount;
63 framesLeft -= framesRead;
  /external/drrickorang/LoopbackApp/app/src/main/cpp/lb2/
loopback_test.cpp 49 int framesRead = 0;
57 while (framesRead <= static_cast<int>(buffer.getFrameCount())) {
66 AudioBufferView<double> dst = buffer.getView(framesRead, actualFrames);
68 framesRead += actualFrames;
71 return framesRead * mTestCtx->getChannelCount();
74 void LoopbackTest::receiveRecording(size_t framesRead) {
76 audio_utils_fifo_write(&mRecordingFifo, mReadBuffer.getData(), framesRead);
77 if (actualFrames >= 0 && static_cast<size_t>(actualFrames) != framesRead) {
79 (long long)framesRead, (long long)actualFrames);
116 ssize_t framesRead = mSoundSys->readAudio(readBuffer)
    [all...]
loopback_test.h 44 void receiveRecording(size_t framesRead);
sound_system_aaudio.cpp 391 ssize_t framesRead;
393 framesRead = mStream->read(drainBuffer);
394 if (framesRead < 0) return false;
395 } while (framesRead > 0);
406 size_t framesRead = result;
407 copyAudioBufferViewData(mConversionBuffer->getView(0, framesRead), buffer);
408 return framesRead;
  /frameworks/av/media/libnbaio/
AudioStreamInSource.cpp 83 size_t framesRead = bytesRead / mFrameSize;
84 mFramesRead += framesRead;
85 return framesRead;
  /frameworks/av/media/libaaudio/tests/
test_return_stop.cpp 46 std::atomic<int32_t> framesRead{};
53 framesRead.store(0);
77 engine->framesRead = (int32_t)AAudioStream_getFramesRead(stream);
79 engine->startingFramesRead.store(engine->framesRead.load());
155 const int64_t framesRead = AAudioStream_getFramesRead(engine->stream);
157 const int32_t delta = (int32_t)(framesWritten - framesRead);
158 printf("playing framesRead = %7d, framesWritten = %7d"
160 (int32_t) framesRead,
191 printf("You should see callbackCount and framesRead stop advancing\n");
283 if (engine.startingFramesRead.load() == engine.framesRead.load())
    [all...]
test_bad_disconnect.cpp 40 int64_t framesRead = 0;
55 s_AudioEngine.framesRead = AAudioStream_getFramesRead(stream);
153 printf("The framesRead should reset on each plug event then increase over time.\n");
161 printf("playing silence #%d, framesRead = %d\n", i, (int) s_AudioEngine.framesRead);
test_aaudio_monkey.cpp 107 int64_t framesRead = AAudioStream_getFramesRead(getStream());
111 printf("%30s, framesWritten = %8lld, framesRead = %8lld, xRuns = %d\n",
114 (unsigned long long) framesRead,
117 if (framesWritten < framesRead) {
119 (int) (framesWritten - framesRead));
  /frameworks/av/media/libaaudio/src/client/
AudioEndpoint.h 68 void setDataReadCounter(android::fifo_counter_t framesRead);
AudioEndpoint.cpp 220 void AudioEndpoint::setDataReadCounter(fifo_counter_t framesRead)
222 mDataQueue->setReadCounter(framesRead);
230 void AudioEndpoint::setDataWriteCounter(fifo_counter_t framesRead)
232 mDataQueue->setWriteCounter(framesRead);
  /frameworks/av/services/audioflinger/
FastCapture.cpp 186 ssize_t framesRead = mInputSource->read(mReadBuffer, frameCount);
189 if (framesRead >= 0) {
190 LOG_ALWAYS_FATAL_IF((size_t) framesRead > frameCount);
191 mTotalNativeFramesRead += framesRead;
193 mReadBufferState = framesRead;
194 patchBuffer.frameCount = framesRead;
Threads.cpp     [all...]
  /frameworks/av/media/libaaudio/examples/loopback/src/
loopback.cpp 130 int32_t framesRead = AAUDIO_ERROR_INVALID_FORMAT;
132 framesRead = AAudioStream_read(myData->inputStream, myData->inputShortData,
136 framesRead = AAudioStream_read(myData->inputStream, myData->inputFloatData,
143 if (framesRead < 0) {
146 myData->inputError = framesRead;
147 printf("ERROR in read = %d = %s\n", framesRead,
148 AAudio_convertResultToText(framesRead));
150 framesRead = 0;
153 myData->framesReadTotal += framesRead;
155 return framesRead;
    [all...]
  /frameworks/av/media/libaaudio/src/fifo/
FifoBuffer.cpp 143 fifo_frames_t framesRead = numFrames - framesLeft;
144 mFifo->advanceReadIndex(framesRead);
145 return framesRead;
  /frameworks/av/media/libaaudio/examples/input_monitor/src/
input_monitor.cpp 175 int64_t framesRead = AAudioStream_getFramesRead(aaudioStream);
177 double latencyMillis = calculateLatencyMillis(framesRead, realTime,
  /frameworks/av/media/libaaudio/examples/write_sine/src/
write_sine_callback.cpp 124 const int32_t framesRead = (int32_t) AAudioStream_getFramesRead(player.getStream());
131 framesRead,
132 framesWritten - framesRead,
178 printf(" framesWritten = %lld, framesRead = %lld, diff = %d\n",
  /frameworks/av/media/libaaudio/src/legacy/
AudioStreamRecord.cpp 448 int32_t framesRead = (int32_t)(totalBytesRead / bytesPerDeviceFrame);
449 incrementFramesRead(framesRead);
456 return (aaudio_result_t) framesRead;
  /frameworks/av/media/libnbaio/include_mono/media/nbaio/
NBAIO.h 243 virtual int64_t framesRead() const { return mFramesRead; }

Completed in 861 milliseconds