Home
last modified time | relevance | path

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

/external/drrickorang/LoopbackApp/app/src/main/cpp/lb2/
Dloopback_test.cpp49 int framesRead = 0; in collectRecording() local
57 while (framesRead <= static_cast<int>(buffer.getFrameCount())) { in collectRecording()
66 AudioBufferView<double> dst = buffer.getView(framesRead, actualFrames); in collectRecording()
68 framesRead += actualFrames; in collectRecording()
71 return framesRead * mTestCtx->getChannelCount(); in collectRecording()
74 void LoopbackTest::receiveRecording(size_t framesRead) { in receiveRecording() argument
76 audio_utils_fifo_write(&mRecordingFifo, mReadBuffer.getData(), framesRead); in receiveRecording()
77 if (actualFrames >= 0 && static_cast<size_t>(actualFrames) != framesRead) { in receiveRecording()
79 (long long)framesRead, (long long)actualFrames); in receiveRecording()
116 ssize_t framesRead = mSoundSys->readAudio(readBuffer); in writeCallback() local
[all …]
Dsound_system_aaudio.cpp391 ssize_t framesRead; in drain() local
393 framesRead = mStream->read(drainBuffer); in drain()
394 if (framesRead < 0) return false; in drain()
395 } while (framesRead > 0); in drain()
406 size_t framesRead = result; in read() local
407 copyAudioBufferViewData(mConversionBuffer->getView(0, framesRead), buffer); in read()
408 return framesRead; in read()
Dloopback_test.h44 void receiveRecording(size_t framesRead);
/external/oboe/src/fifo/
DFifoBuffer.cpp155 int32_t framesRead = read(buffer, numFrames); in readNow() local
156 if (framesRead < 0) { in readNow()
157 return framesRead; in readNow()
159 int32_t framesLeft = numFrames - framesRead; in readNow()
160 mFramesReadCount += framesRead; in readNow()
165 destination += convertFramesToBytes(framesRead); // point to first byte not set in readNow()
170 return framesRead; in readNow()
/external/oboe/src/flowgraph/
DSinkI16.cpp38 int32_t framesRead = pullData(framesLeft); in read() local
39 if (framesRead <= 0) { in read()
43 int32_t numSamples = framesRead * channelCount; in read()
54 framesLeft -= framesRead; in read()
DSinkI24.cpp40 int32_t framesRead = pullData(framesLeft); in read() local
41 if (framesRead <= 0) { in read()
45 int32_t numSamples = framesRead * channelCount; in read()
63 framesLeft -= framesRead; in read()
/external/skia/modules/audioplayer/
DSkAudioPlayer_oboe.cpp48 int framesRead = fReader->getDataFloat(outBuffer, numFrames); in onAudioReady() local
49 fReadFrameIndex += framesRead; in onAudioReady()
50 int remainingFrames = numFrames - framesRead; in onAudioReady()
55 fReader->getDataFloat(&outBuffer[framesRead * fReader->getNumChannels()], in onAudioReady()
60 … renderSilence(&outBuffer[framesRead * fReader->getNumChannels()], remainingFrames); in onAudioReady()
/external/oboe/apps/fxlab/app/src/main/cpp/
DDuplexCallback.h45 int32_t framesRead = result.value(); in onAudioReady() local
50 if (mSpinUpCallbacks > 0 && framesRead > 0) { in onAudioReady()
54 f(inputBuffer.get(), inputBuffer.get() + framesRead); in onAudioReady()
55 for (int i = 0; i < framesRead; i++) { in onAudioReady()
/external/oboe/src/common/
DSourceI16Caller.cpp32 int32_t framesRead = bytesRead / mStream->getBytesPerFrame(); in onProcess() local
36 int32_t numSamples = framesRead * output.getSamplesPerFrame(); in onProcess()
46 return framesRead; in onProcess()
DSourceFloatCaller.cpp28 int32_t framesRead = bytesRead / mStream->getBytesPerFrame(); in onProcess() local
29 return framesRead; in onProcess()
DFilterAudioStream.cpp90 int32_t framesRead = mFlowGraph->read(buffer, numFrames, timeoutNanoseconds); in read() local
91 return ResultWithValue<int32_t>::createBasedOnSign(framesRead); in read()
DDataConversionFlowGraph.cpp228 int32_t framesRead = mSink->read(mAppBuffer.get(), flowgraph::kDefaultBufferSize); in write() local
229 if (framesRead <= 0) break; in write()
232 framesRead * mFilterStream->getBytesPerFrame()); in write()
/external/oboe/apps/OboeTester/app/src/main/java/com/google/sample/oboe/manualtest/
DAudioStreamBase.java36 status.framesRead = getFramesRead(); in getStreamStatus()
81 public long framesRead; field in AudioStreamBase.StreamStatus
95 buffer.append("frames written " + framesWritten + " - read " + framesRead in dump()
96 + " = " + (framesWritten - framesRead) + "\n"); in dump()
/external/oboe/apps/OboeTester/app/src/main/cpp/
DPlayRecordingCallback.cpp28 int32_t framesRead = mRecording->read(floatData, numFrames); in onAudioReady() local
30 return framesRead > 0 in onAudioReady()
DMultiChannelRecording.h131 int32_t framesRead = 0; in read() local
148 framesRead += framesNow; in read()
150 return framesRead; in read()
DFullDuplexStream.cpp73 int32_t framesRead = 0; in onAudioReady() local
87 framesRead = resultRead.value(); in onAudioReady()
94 mInputBuffer.get(), framesRead, in onAudioReady()
DNativeAudioContext.cpp460 int32_t framesRead = result.value(); in runBlockingIO() local
461 if (framesRead < framesPerBlock) { // timeout? in runBlockingIO()
462 LOGE("%s() : read() read %d of %d\n", __func__, framesRead, framesPerBlock); in runBlockingIO()
469 framesRead); in runBlockingIO()
DNativeAudioContext.h200 int64_t framesRead = oboeStream->getFramesRead(); in getColdStartInputMillis() local
201 if (framesRead > 0) { in getColdStartInputMillis()
206 framesRead, in getColdStartInputMillis()
/external/oboe/samples/LiveEffect/src/main/cpp/
DFullDuplexStream.cpp71 int32_t framesRead = result.value(); in onAudioReady() local
74 mInputStream, mInputBuffer.get(), framesRead, in onAudioReady()
/external/oboe/src/opensles/
DAudioOutputStreamOpenSLES.h50 void setFramesRead(int64_t framesRead);
DAudioOutputStreamOpenSLES.cpp415 void AudioOutputStreamOpenSLES::setFramesRead(int64_t framesRead) { in setFramesRead() argument
416 int64_t millisWritten = framesRead * kMillisPerSecond / getSampleRate(); in setFramesRead()