Home
last modified time | relevance | path

Searched refs:framesLeft (Results 1 – 14 of 14) sorted by relevance

/external/oboe/apps/OboeTester/app/src/main/cpp/
DMultiChannelRecording.h77 int32_t framesLeft = numFrames; in write() local
78 while (framesLeft > 0) { in write()
82 int32_t framesNow = std::min(framesLeft, framesToEndOfBuffer); in write()
91 framesLeft -= framesNow; in write()
93 return numFrames - framesLeft; in write()
104 int32_t framesLeft = numFrames; in write() local
105 while (framesLeft > 0) { in write()
109 int32_t framesNow = std::min(framesLeft, framesToEnd); in write()
118 framesLeft -= framesNow; in write()
132 int32_t framesLeft = std::min(numFrames, in read() local
[all …]
/external/oboe/samples/parselib/src/main/cpp/wav/
DWavStreamReader.cpp129 int framesLeft = numFrames; in getDataFloat_PCM8() local
130 while (framesLeft > 0) { in getDataFloat_PCM8()
131 int framesThisRead = std::min(framesLeft, kConversionBufferFrames); in getDataFloat_PCM8()
149 framesLeft -= framesThisRead; in getDataFloat_PCM8()
169 int framesLeft = numFrames; in getDataFloat_PCM16() local
170 while (framesLeft > 0) { in getDataFloat_PCM16()
171 int framesThisRead = std::min(framesLeft, kConversionBufferFrames); in getDataFloat_PCM16()
187 framesLeft -= framesThisRead; in getDataFloat_PCM16()
240 int framesLeft = numFrames; in getDataFloat_PCM32() local
241 while (framesLeft > 0) { in getDataFloat_PCM32()
[all …]
/external/oboe/src/flowgraph/
DSinkFloat.cpp32 int32_t framesLeft = numFrames; in read() local
33 while (framesLeft > 0) { in read()
35 int32_t framesPulled = pullData(framesLeft); in read()
43 framesLeft -= framesPulled; in read()
45 return numFrames - framesLeft; in read()
DSinkI32.cpp34 int32_t framesLeft = numFrames; in read() local
35 while (framesLeft > 0) { in read()
37 int32_t framesRead = pullData(framesLeft); in read()
52 framesLeft -= framesRead; in read()
54 return numFrames - framesLeft; in read()
DSinkI16.cpp35 int32_t framesLeft = numFrames; in read() local
36 while (framesLeft > 0) { in read()
38 int32_t framesRead = pullData(framesLeft); in read()
54 framesLeft -= framesRead; in read()
56 return numFrames - framesLeft; in read()
DSinkI24.cpp37 int32_t framesLeft = numFrames; in read() local
38 while (framesLeft > 0) { in read()
40 int32_t framesRead = pullData(framesLeft); in read()
63 framesLeft -= framesRead; in read()
65 return numFrames - framesLeft; in read()
DSampleRateConverter.cpp53 int framesLeft = numFrames; in onProcess() local
54 while (framesLeft > 0) { in onProcess()
67 framesLeft--; in onProcess()
70 return numFrames - framesLeft; in onProcess()
DRampLinear.cpp59 int32_t framesLeft = numFrames; in onProcess() local
62 int32_t framesToRamp = std::min(framesLeft, mRemaining); in onProcess()
63 framesLeft -= framesToRamp; in onProcess()
75 int32_t samplesLeft = framesLeft * channelCount; in onProcess()
DSourceFloat.cpp32 const int32_t framesLeft = mSizeInFrames - mFrameIndex; in onProcess() local
33 const int32_t framesToProcess = std::min(numFrames, framesLeft); in onProcess()
DSourceI16.cpp37 int32_t framesLeft = mSizeInFrames - mFrameIndex; in onProcess() local
38 int32_t framesToProcess = std::min(numFrames, framesLeft); in onProcess()
DSourceI32.cpp37 const int32_t framesLeft = mSizeInFrames - mFrameIndex; in onProcess() local
38 const int32_t framesToProcess = std::min(numFrames, framesLeft); in onProcess()
DSourceI24.cpp39 int32_t framesLeft = mSizeInFrames - mFrameIndex; in onProcess() local
40 int32_t framesToProcess = std::min(numFrames, framesLeft); in onProcess()
/external/oboe/src/opensles/
DAudioStreamBuffered.cpp147 int32_t framesLeft = numFrames; in transfer() local
160 result = mFifoBuffer->read(readData, framesLeft); in transfer()
163 framesLeft -= result; in transfer()
170 int32_t framesToWrite = std::max(0, std::min(framesLeft, emptyFrames)); in transfer()
174 framesLeft -= result; in transfer()
179 if (framesLeft > 0 && result >= 0 && timeoutNanoseconds > 0) { in transfer()
215 int32_t framesWritten = numFrames - framesLeft; in transfer()
/external/oboe/src/fifo/
DFifoBuffer.cpp159 int32_t framesLeft = numFrames - framesRead; in readNow() local
161 mFramesUnderrunCount += framesLeft; in readNow()
163 if (framesLeft > 0) { in readNow()
166 int32_t bytesToZero = convertFramesToBytes(framesLeft); in readNow()