Lines Matching refs:oboe
35 oboe::AudioStreamBuilder builder; in isAAudioSupported()
39 bool LiveEffectEngine::setAudioApi(oboe::AudioApi api) { in setAudioApi()
50 success = openStreams() == oboe::Result::OK; in setEffectOn()
80 oboe::Result LiveEffectEngine::openStreams() { in openStreams()
85 oboe::AudioStreamBuilder inBuilder, outBuilder; in openStreams()
87 oboe::Result result = outBuilder.openStream(mPlayStream); in openStreams()
88 if (result != oboe::Result::OK) { in openStreams()
89 mSampleRate = oboe::kUnspecified; in openStreams()
99 if (result != oboe::Result::OK) { in openStreams()
118 oboe::AudioStreamBuilder *LiveEffectEngine::setupRecordingStreamParameters( in setupRecordingStreamParameters()
119 oboe::AudioStreamBuilder *builder, int32_t sampleRate) { in setupRecordingStreamParameters()
122 ->setDirection(oboe::Direction::Input) in setupRecordingStreamParameters()
134 oboe::AudioStreamBuilder *LiveEffectEngine::setupPlaybackStreamParameters( in setupPlaybackStreamParameters()
135 oboe::AudioStreamBuilder *builder) { in setupPlaybackStreamParameters()
139 ->setDirection(oboe::Direction::Output) in setupPlaybackStreamParameters()
150 oboe::AudioStreamBuilder *LiveEffectEngine::setupCommonStreamParameters( in setupCommonStreamParameters()
151 oboe::AudioStreamBuilder *builder) { in setupCommonStreamParameters()
158 ->setSharingMode(oboe::SharingMode::Exclusive) in setupCommonStreamParameters()
159 ->setPerformanceMode(oboe::PerformanceMode::LowLatency); in setupCommonStreamParameters()
170 void LiveEffectEngine::closeStream(std::shared_ptr<oboe::AudioStream> &stream) { in closeStream()
172 oboe::Result result = stream->stop(); in closeStream()
173 if (result != oboe::Result::OK) { in closeStream()
174 LOGW("Error stopping stream: %s", oboe::convertToText(result)); in closeStream()
177 if (result != oboe::Result::OK) { in closeStream()
178 LOGE("Error closing stream: %s", oboe::convertToText(result)); in closeStream()
191 void LiveEffectEngine::warnIfNotLowLatency(std::shared_ptr<oboe::AudioStream> &stream) { in warnIfNotLowLatency()
192 if (stream->getPerformanceMode() != oboe::PerformanceMode::LowLatency) { in warnIfNotLowLatency()
208 oboe::DataCallbackResult LiveEffectEngine::onAudioReady( in onAudioReady()
209 oboe::AudioStream *oboeStream, void *audioData, int32_t numFrames) { in onAudioReady()
219 void LiveEffectEngine::onErrorBeforeClose(oboe::AudioStream *oboeStream, in onErrorBeforeClose()
220 oboe::Result error) { in onErrorBeforeClose()
222 oboe::convertToText(oboeStream->getDirection()), in onErrorBeforeClose()
223 oboe::convertToText(error)); in onErrorBeforeClose()
232 void LiveEffectEngine::onErrorAfterClose(oboe::AudioStream *oboeStream, in onErrorAfterClose()
233 oboe::Result error) { in onErrorAfterClose()
235 oboe::convertToText(oboeStream->getDirection()), in onErrorAfterClose()
236 oboe::convertToText(error)); in onErrorAfterClose()