Remove setCallback(nullptr) from recording stream
diff --git a/samples/LiveEffect/src/main/cpp/LiveEffectEngine.cpp b/samples/LiveEffect/src/main/cpp/LiveEffectEngine.cpp
index 586dd13..c2a46c8 100644
--- a/samples/LiveEffect/src/main/cpp/LiveEffectEngine.cpp
+++ b/samples/LiveEffect/src/main/cpp/LiveEffectEngine.cpp
@@ -115,9 +115,8 @@
*/
oboe::AudioStreamBuilder *LiveEffectEngine::setupRecordingStreamParameters(
oboe::AudioStreamBuilder *builder) {
- // This sample uses blocking read() by setting callback to null
- builder->setDataCallback(nullptr)
- ->setDeviceId(mRecordingDeviceId)
+ // This sample uses blocking read() because we don't specify a callback
+ builder->setDeviceId(mRecordingDeviceId)
->setDirection(oboe::Direction::Input)
->setSampleRate(mSampleRate)
->setChannelCount(mInputChannelCount);