Home
last modified time | relevance | path

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

/external/oboe/src/opensles/
DAudioStreamBuffered.cpp113 ResultWithValue<int32_t> AudioStreamBuffered::transfer( in transfer()
121 return ResultWithValue<int32_t>(Result::ErrorInternal); in transfer()
125 return ResultWithValue<int32_t>(Result::ErrorNull); in transfer()
129 return ResultWithValue<int32_t>(Result::ErrorNull); in transfer()
133 return ResultWithValue<int32_t>(Result::ErrorOutOfRange); in transfer()
135 return ResultWithValue<int32_t>(numFrames); in transfer()
139 return ResultWithValue<int32_t>(Result::ErrorOutOfRange); in transfer()
211 return ResultWithValue<int32_t>(static_cast<Result>(result)); in transfer()
214 return ResultWithValue<int32_t>(framesWritten); in transfer()
219 ResultWithValue<int32_t> AudioStreamBuffered::write(const void *buffer, in write()
[all …]
DAudioStreamBuffered.h40 ResultWithValue<int32_t> write(const void *buffer,
44 ResultWithValue<int32_t> read(void *buffer,
48 ResultWithValue<int32_t> setBufferSizeInFrames(int32_t requestedFrames) override;
52 ResultWithValue<int32_t> getXRunCount() const override { in getXRunCount()
53 return ResultWithValue<int32_t>(mXRunCount); in getXRunCount()
78 ResultWithValue<int32_t> transfer(void *readBuffer,
/external/oboe/include/oboe/
DAudioStream.h178 virtual ResultWithValue<int32_t> setBufferSizeInFrames(int32_t /* requestedFrames */) { in setBufferSizeInFrames()
194 virtual ResultWithValue<int32_t> getXRunCount() const { in getXRunCount()
195 return ResultWithValue<int32_t>(Result::ErrorUnimplemented); in getXRunCount()
266 virtual ResultWithValue<double> calculateLatencyMillis() { in calculateLatencyMillis()
267 return ResultWithValue<double>(Result::ErrorUnimplemented); in calculateLatencyMillis()
308 virtual ResultWithValue<FrameTimestamp> getTimestamp(clockid_t /* clockId */);
323 virtual ResultWithValue<int32_t> write(const void* /* buffer */, in write()
326 return ResultWithValue<int32_t>(Result::ErrorUnimplemented); in write()
341 virtual ResultWithValue<int32_t> read(void* /* buffer */, in read()
344 return ResultWithValue<int32_t>(Result::ErrorUnimplemented); in read()
[all …]
DResultWithValue.h47 class ResultWithValue {
55 ResultWithValue(oboe::Result error) in ResultWithValue() function
64 explicit ResultWithValue(T value) in ResultWithValue() function
121 static ResultWithValue<T> createBasedOnSign(T numericResult){ in createBasedOnSign()
128 return ResultWithValue<T>(numericResult); in createBasedOnSign()
130 return ResultWithValue<T>(static_cast<Result>(numericResult)); in createBasedOnSign()
143 std::ostream& operator<<(std::ostream &strm, const ResultWithValue<T> &result) {
/external/oboe/src/common/
DAudioStream.cpp155 ResultWithValue<int32_t> AudioStream::getAvailableFrames() { in getAvailableFrames()
157 if (readCounter < 0) return ResultWithValue<int32_t>::createBasedOnSign(readCounter); in getAvailableFrames()
159 if (writeCounter < 0) return ResultWithValue<int32_t>::createBasedOnSign(writeCounter); in getAvailableFrames()
161 return ResultWithValue<int32_t>(framesAvailable); in getAvailableFrames()
164 ResultWithValue<int32_t> AudioStream::waitForAvailableFrames(int32_t numFrames, in waitForAvailableFrames()
174 ResultWithValue<int32_t> result = getAvailableFrames(); in waitForAvailableFrames()
185 ? ResultWithValue<int32_t>(Result::ErrorTimeout) in waitForAvailableFrames()
186 : ResultWithValue<int32_t>(framesAvailable); in waitForAvailableFrames()
189 ResultWithValue<FrameTimestamp> AudioStream::getTimestamp(clockid_t clockId) { in getTimestamp()
193 return ResultWithValue<FrameTimestamp>(frame); in getTimestamp()
[all …]
DFilterAudioStream.cpp59 ResultWithValue<int32_t> FilterAudioStream::write(const void *buffer, in write()
69 return ResultWithValue<int32_t>::createBasedOnSign(numRead); in write()
82 return ResultWithValue<int32_t>::createBasedOnSign(framesWritten); in write()
87 ResultWithValue<int32_t> FilterAudioStream::read(void *buffer, in read()
91 return ResultWithValue<int32_t>::createBasedOnSign(framesRead); in read()
DFilterAudioStream.h108 ResultWithValue<int32_t> read(void *buffer,
112 ResultWithValue<int32_t> write(const void *buffer,
153 ResultWithValue<int32_t> setBufferSizeInFrames(int32_t requestedFrames) override { in setBufferSizeInFrames()
162 ResultWithValue<int32_t> getXRunCount() const override { in getXRunCount()
166 ResultWithValue<double> calculateLatencyMillis() override { in calculateLatencyMillis()
/external/oboe/src/aaudio/
DAudioStreamAAudio.h60 ResultWithValue<int32_t> write(const void *buffer,
64 ResultWithValue<int32_t> read(void *buffer,
68 ResultWithValue<int32_t> setBufferSizeInFrames(int32_t requestedFrames) override;
71 ResultWithValue<int32_t> getXRunCount() const override;
74 ResultWithValue<double> calculateLatencyMillis() override;
DAudioStreamAAudio.cpp445 ResultWithValue<int32_t> AudioStreamAAudio::write(const void *buffer, in write()
452 return ResultWithValue<int32_t>::createBasedOnSign(result); in write()
454 return ResultWithValue<int32_t>(Result::ErrorClosed); in write()
458 ResultWithValue<int32_t> AudioStreamAAudio::read(void *buffer, in read()
465 return ResultWithValue<int32_t>::createBasedOnSign(result); in read()
467 return ResultWithValue<int32_t>(Result::ErrorClosed); in read()
543 ResultWithValue<int32_t> AudioStreamAAudio::setBufferSizeInFrames(int32_t requestedFrames) { in setBufferSizeInFrames()
559 return ResultWithValue<int32_t>::createBasedOnSign(newBufferSize); in setBufferSizeInFrames()
562 return ResultWithValue<int32_t>(Result::ErrorClosed); in setBufferSizeInFrames()
612 ResultWithValue<int32_t> AudioStreamAAudio::getXRunCount() const { in getXRunCount()
[all …]
/external/oboe/apps/OboeTester/app/src/main/cpp/
DFullDuplexStream.cpp35 oboe::ResultWithValue<int32_t> result = getInputStream()->read(mInputBuffer.get(), in onAudioReady()
57 oboe::ResultWithValue<int32_t> resultAvailable = getInputStream()->getAvailableFrames(); in onAudioReady()
65 …oboe::ResultWithValue<int32_t> resultRead = getInputStream()->read(mInputBuffer.get(), numFrames, … in onAudioReady()
74 oboe::ResultWithValue<int32_t> resultAvailable = getInputStream()->getAvailableFrames(); in onAudioReady()
82 …oboe::ResultWithValue<int32_t> resultRead = getInputStream()->read(mInputBuffer.get(), numFrames,… in onAudioReady()
/external/oboe/samples/LiveEffect/src/main/cpp/
DFullDuplexStream.cpp34 oboe::ResultWithValue<int32_t> result = mInputStream->read(mInputBuffer.get(), in onAudioReady()
55 oboe::ResultWithValue<int32_t> result = mInputStream->read(mInputBuffer.get(), in onAudioReady()
65 oboe::ResultWithValue<int32_t> result = mInputStream->read(mInputBuffer.get(), in onAudioReady()
/external/oboe/apps/fxlab/app/src/main/cpp/
DDuplexCallback.h44 oboe::ResultWithValue<int32_t> result = inRef.read(inputBuffer.get(), numFrames, 0); in onAudioReady()
/external/oboe/docs/
DChangeLog.md22 Change `AudioStream` method return types to `ResultWithValue` where appropriate. [Full details](htt…
DFullGuide.md414 // result has type ResultWithValue<int32_t>, which for convenience is coerced