Home
last modified time | relevance | path

Searched refs:numFrames (Results 1 – 25 of 139) sorted by relevance

123456

/external/oboe/src/flowgraph/
DFlowGraphNode.cpp25 int32_t FlowGraphNode::pullData(int32_t numFrames, int64_t callCount) { in pullData() argument
26 int32_t frameCount = numFrames; in pullData()
76 int32_t FlowGraphPortFloatOutput::pullData(int64_t callCount, int32_t numFrames) { in pullData() argument
77 numFrames = std::min(getFramesPerBuffer(), numFrames); in pullData()
78 return mContainingNode.pullData(numFrames, callCount); in pullData()
95 int32_t FlowGraphPortFloatInput::pullData(int64_t callCount, int32_t numFrames) { in pullData() argument
97 ? std::min(getFramesPerBuffer(), numFrames) in pullData()
98 : mConnected->pullData(callCount, numFrames); in pullData()
112 int32_t FlowGraphSink::pullData(int32_t numFrames) { in pullData() argument
113 return FlowGraphNode::pullData(numFrames, getLastCallCount() + 1); in pullData()
DFlowGraphNode.h83 virtual int32_t onProcess(int32_t numFrames) = 0;
96 int32_t pullData(int32_t numFrames, int64_t callCount);
178 virtual int32_t pullData(int64_t framePosition, int32_t numFrames) = 0;
261 int32_t pullData(int64_t framePosition, int32_t numFrames) override;
330 int32_t pullData(int64_t framePosition, int32_t numFrames) override;
376 void setData(const void *data, int32_t numFrames) { in setData() argument
378 mSizeInFrames = numFrames; in setData()
411 int32_t onProcess(int32_t numFrames) override { in onProcess() argument
412 return numFrames; in onProcess()
415 virtual int32_t read(void *data, int32_t numFrames) = 0;
[all …]
/external/oboe/src/opensles/
DAudioStreamBuffered.cpp76 DataCallbackResult AudioStreamBuffered::onDefaultCallback(void *audioData, int numFrames) { in onDefaultCallback() argument
81 framesTransferred = mFifoBuffer->readNow(audioData, numFrames); in onDefaultCallback()
84 framesTransferred = mFifoBuffer->write(audioData, numFrames); // There is no writeNow() in onDefaultCallback()
87 if (framesTransferred < numFrames) { in onDefaultCallback()
89 __func__, framesTransferred, numFrames); in onDefaultCallback()
93 markCallbackTime(static_cast<int32_t>(numFrames)); // so foreground knows how long to wait. in onDefaultCallback()
97 void AudioStreamBuffered::markCallbackTime(int32_t numFrames) { in markCallbackTime() argument
98 mLastBackgroundSize = numFrames; in markCallbackTime()
116 int32_t numFrames, in transfer() argument
131 if (numFrames < 0) { in transfer()
[all …]
DAudioStreamBuffered.h41 int32_t numFrames,
45 int32_t numFrames,
60 DataCallbackResult onDefaultCallback(void *audioData, int numFrames) override;
74 void markCallbackTime(int32_t numFrames);
80 int32_t numFrames,
/external/oboe/src/common/
DFilterAudioStream.cpp60 int32_t numFrames, in write() argument
63 mFlowGraph->setSource(buffer, numFrames); in write()
88 int32_t numFrames, in read() argument
90 int32_t framesRead = mFlowGraph->read(buffer, numFrames, timeoutNanoseconds); in read()
96 int32_t numFrames) { in onAudioReady() argument
99 framesProcessed = mFlowGraph->read(audioData, numFrames, 0 /* timeout */); in onAudioReady()
101 framesProcessed = mFlowGraph->write(audioData, numFrames); in onAudioReady()
103 return (framesProcessed < numFrames) in onAudioReady()
DDataConversionFlowGraph.cpp40 void DataConversionFlowGraph::setSource(const void *buffer, int32_t numFrames) { in setSource() argument
41 mSource->setData(buffer, numFrames); in setSource()
214 int32_t DataConversionFlowGraph::read(void *buffer, int32_t numFrames, int64_t timeoutNanos) { in read() argument
218 int32_t numRead = mSink->read(buffer, numFrames); in read()
223 int32_t DataConversionFlowGraph::write(void *inputBuffer, int32_t numFrames) { in write() argument
225 mSource->setData(inputBuffer, numFrames); in write()
235 return numFrames; in write()
239 int32_t numFrames = numBytes / mFilterStream->getBytesPerFrame(); in onProcessFixedBlock() local
240 …mCallbackResult = mFilterStream->getDataCallback()->onAudioReady(mFilterStream, buffer, numFrames); in onProcessFixedBlock()
DAudioStream.cpp55 DataCallbackResult AudioStream::fireDataCallback(void *audioData, int32_t numFrames) { in fireDataCallback() argument
63 result = mDataCallback->onAudioReady(this, audioData, numFrames); in fireDataCallback()
65 result = onDefaultCallback(audioData, numFrames); in fireDataCallback()
164 ResultWithValue<int32_t> AudioStream::waitForAvailableFrames(int32_t numFrames, in waitForAvailableFrames() argument
166 if (numFrames == 0) return Result::OK; in waitForAvailableFrames()
167 if (numFrames < 0) return Result::ErrorOutOfRange; in waitForAvailableFrames()
177 ready = (framesAvailable >= numFrames); in waitForAvailableFrames()
/external/skia/tools/viewer/
DMSKPSlide.cpp63 fFrame = (fFrame + fPlayer->numFrames() - 1)%fPlayer->numFrames(); in draw()
66 if (ImGui::SliderInt("##msk_frameslider", &fFrame, 0, fPlayer->numFrames()-1, "% 3d")) { in draw()
67 fFrame = SkTPin(fFrame, 0, fPlayer->numFrames() - 1); in draw()
71 fFrame = (fFrame + 1)%fPlayer->numFrames(); in draw()
152 fFrame = (fFrame + 1)%fPlayer->numFrames(); in animate()
154 return this->fPlayer->numFrames() > 1; in animate()
158 fFrame = (fFrame + 1)%fPlayer->numFrames(); in animate()
159 return this->fPlayer->numFrames() > 1; in animate()
165 if (fFrame >= fPlayer->numFrames()) { in animate()
168 fFrame %= fPlayer->numFrames(); in animate()
[all …]
/external/oboe/samples/RhythmGame/src/main/cpp/audio/
DPlayer.cpp20 void Player::renderAudio(float *targetData, int32_t numFrames){ in renderAudio() argument
26 int64_t framesToRenderFromData = numFrames; in renderAudio()
31 if (!mIsLooping && mReadFrameIndex + numFrames >= totalSourceFrames){ in renderAudio()
45 if (framesToRenderFromData < numFrames){ in renderAudio()
47 renderSilence(&targetData[framesToRenderFromData], numFrames * properties.channelCount); in renderAudio()
51 renderSilence(targetData, numFrames * properties.channelCount); in renderAudio()
/external/oboe/apps/OboeTester/app/src/main/cpp/
DMultiChannelRecording.h76 int32_t write(int16_t *buffer, int32_t numFrames) { in write() argument
77 int32_t framesLeft = numFrames; in write()
93 return numFrames - framesLeft; in write()
103 int32_t write(float *buffer, int32_t numFrames) { in write() argument
104 int32_t framesLeft = numFrames; in write()
120 return numFrames; in write()
130 int32_t read(float *buffer, int32_t numFrames) { in read() argument
132 int32_t framesLeft = std::min(numFrames, in read()
DInputStreamCallbackAnalyzer.cpp23 int numFrames) { in onAudioReady() argument
31 mRecording->write(shortData, numFrames); in onAudioReady()
34 for (int iFrame = 0; iFrame < numFrames; iFrame++) { in onAudioReady()
44 mRecording->write(floatData, numFrames); in onAudioReady()
47 for (int iFrame = 0; iFrame < numFrames; iFrame++) { in onAudioReady()
DOboeStreamCallbackProxy.cpp57 int numFrames) { in onAudioReady() argument
62 mFramesPerCallback = numFrames; in onAudioReady()
68 s_burnCPU((int32_t)(mWorkload * kWorkloadScaler * numFrames)); in onAudioReady()
71 callbackResult = mCallback->onAudioReady(audioStream, audioData, numFrames); in onAudioReady()
76 double inverseRealTime = audioStream->getSampleRate() / (1.0e9 * numFrames); in onAudioReady()
DFullDuplexStream.cpp23 int numFrames) { in onAudioReady() argument
28 int32_t numBytes = numFrames * outputStream->getBytesPerFrame(); in onAudioReady()
36 numFrames, in onAudioReady()
65 …hValue<int32_t> resultRead = getInputStream()->read(mInputBuffer.get(), numFrames, 0 /* timeout */… in onAudioReady()
82 …Value<int32_t> resultRead = getInputStream()->read(mInputBuffer.get(), numFrames, 0 /* timeout */… in onAudioReady()
95 audioData, numFrames); in onAudioReady()
DSawPingGenerator.cpp38 int32_t SawPingGenerator::onProcess(int numFrames) { in onProcess() argument
52 for (int i = 0; i < numFrames; i++) { in onProcess()
58 for (int i = 0; i < numFrames; i++) { in onProcess()
63 return numFrames; in onProcess()
/external/oboe/src/fifo/
DFifoBuffer.cpp69 int32_t FifoBuffer::read(void *buffer, int32_t numFrames) { in read() argument
70 if (numFrames <= 0) { in read()
74 uint32_t framesToRead = static_cast<uint32_t>(numFrames); in read()
111 int32_t FifoBuffer::write(const void *buffer, int32_t numFrames) { in write() argument
112 if (numFrames <= 0) { in write()
116 uint32_t framesToWrite = static_cast<uint32_t>(numFrames); in write()
154 int32_t FifoBuffer::readNow(void *buffer, int32_t numFrames) { in readNow() argument
155 int32_t framesRead = read(buffer, numFrames); in readNow()
159 int32_t framesLeft = numFrames - framesRead; in readNow()
DFifoControllerBase.cpp51 void FifoControllerBase::advanceReadIndex(uint32_t numFrames) { in advanceReadIndex() argument
52 incrementReadCounter(numFrames); in advanceReadIndex()
64 void FifoControllerBase::advanceWriteIndex(uint32_t numFrames) { in advanceWriteIndex() argument
65 incrementWriteCounter(numFrames); in advanceWriteIndex()
/external/oboe/samples/LiveEffect/src/main/cpp/
DFullDuplexStream.cpp22 int numFrames) { in onAudioReady() argument
27 int32_t numBytes = numFrames * outputStream->getBytesPerFrame(); in onAudioReady()
35 numFrames, in onAudioReady()
56 numFrames, in onAudioReady()
66 numFrames, in onAudioReady()
75 mOutputStream, audioData, numFrames in onAudioReady()
/external/oboe/samples/shared/
DMixer.h35 void renderAudio(float *audioData, int32_t numFrames) { in renderAudio() argument
38 memset(audioData, 0, sizeof(float) * numFrames * mChannelCount); in renderAudio()
41 mTracks[i]->renderAudio(mixingBuffer, numFrames); in renderAudio()
43 for (int j = 0; j < numFrames * mChannelCount; ++j) { in renderAudio()
/external/tremolo/tests/
DVorbisDecoderTest.cpp238 int32_t numFrames = 0; in processVorbisDecoder() local
243 numFrames = vorbis_dsp_pcmout(mState, mOutputBuffer, kMaxNumSamplesPerChannel); in processVorbisDecoder()
244 if (numFrames < 0) { in processVorbisDecoder()
245 ALOGV("vorbis_dsp_pcmout returned %d", numFrames); in processVorbisDecoder()
246 numFrames = 0; in processVorbisDecoder()
251 if (numFrames > mNumFramesLeftOnPage) { in processVorbisDecoder()
252 ALOGV("discarding %d frames at end of page", numFrames - mNumFramesLeftOnPage); in processVorbisDecoder()
253 numFrames = mNumFramesLeftOnPage; in processVorbisDecoder()
255 mNumFramesLeftOnPage -= numFrames; in processVorbisDecoder()
257 if (numFrames) { in processVorbisDecoder()
[all …]
/external/skia/modules/audioplayer/
DSkAudioPlayer_oboe.cpp45 onAudioReady(oboe::AudioStream *oboeStream, void *audioData, int32_t numFrames) override { in onAudioReady() argument
48 int framesRead = fReader->getDataFloat(outBuffer, numFrames); in onAudioReady()
50 int remainingFrames = numFrames - framesRead; in onAudioReady()
67 void renderSilence(float *start, int numFrames) { in renderSilence() argument
68 for (int i = 0; i < numFrames * fReader->getNumChannels(); ++i) { in renderSilence()
/external/oboe/apps/OboeTester/app/src/main/cpp/flowunits/
DExponentialShape.cpp25 int32_t ExponentialShape::onProcess(int32_t numFrames) { in onProcess() argument
29 for (int i = 0; i < numFrames; i++) { in onProcess()
34 return numFrames; in onProcess()
DLinearShape.cpp26 int32_t LinearShape::onProcess(int numFrames) { in onProcess() argument
30 for (int i = 0; i < numFrames; i++) { in onProcess()
35 return numFrames; in onProcess()
DSawtoothOscillator.cpp26 int32_t SawtoothOscillator::onProcess(int32_t numFrames) { in onProcess() argument
33 for (int i = 0; i < numFrames; i++) { in onProcess()
38 return numFrames; in onProcess()
DSineOscillator.cpp30 int32_t SineOscillator::onProcess(int32_t numFrames) { in onProcess() argument
36 for (int i = 0; i < numFrames; i++) { in onProcess()
41 return numFrames; in onProcess()
DTriangleOscillator.cpp26 int32_t TriangleOscillator::onProcess(int32_t numFrames) { in onProcess() argument
33 for (int i = 0; i < numFrames; i++) { in onProcess()
39 return numFrames; in onProcess()

123456