Lines Matching refs:oboe
26 class LiveEffectEngine : public oboe::AudioStreamCallback {
42 oboe::DataCallbackResult onAudioReady(oboe::AudioStream *oboeStream,
48 void onErrorBeforeClose(oboe::AudioStream *oboeStream, oboe::Result error) override;
49 void onErrorAfterClose(oboe::AudioStream *oboeStream, oboe::Result error) override;
51 bool setAudioApi(oboe::AudioApi);
57 int32_t mRecordingDeviceId = oboe::kUnspecified;
58 int32_t mPlaybackDeviceId = oboe::kUnspecified;
59 const oboe::AudioFormat mFormat = oboe::AudioFormat::Float; // for easier processing
60 oboe::AudioApi mAudioApi = oboe::AudioApi::AAudio;
61 int32_t mSampleRate = oboe::kUnspecified;
62 const int32_t mInputChannelCount = oboe::ChannelCount::Stereo;
63 const int32_t mOutputChannelCount = oboe::ChannelCount::Stereo;
65 std::shared_ptr<oboe::AudioStream> mRecordingStream;
66 std::shared_ptr<oboe::AudioStream> mPlayStream;
68 oboe::Result openStreams();
72 void closeStream(std::shared_ptr<oboe::AudioStream> &stream);
74 oboe::AudioStreamBuilder *setupCommonStreamParameters(
75 oboe::AudioStreamBuilder *builder);
76 oboe::AudioStreamBuilder *setupRecordingStreamParameters(
77 oboe::AudioStreamBuilder *builder, int32_t sampleRate);
78 oboe::AudioStreamBuilder *setupPlaybackStreamParameters(
79 oboe::AudioStreamBuilder *builder);
80 void warnIfNotLowLatency(std::shared_ptr<oboe::AudioStream> &stream);