Lines Matching refs:ResultWithValue
155 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()
195 return ResultWithValue<FrameTimestamp>(static_cast<Result>(result)); in getTimestamp()