REPRODUCE
Run an app or command that captures audio in the background.
The "libaaudio/examples/input_monitor" shell command can be launched:
adb shell input_monitor -pl -s5000
Launch Rick ORang Loopback
Select AAudio in Settings
Click "Calibrate Sound Level Now"
EXPECT
An error message saying that input could not be started.
ACTUAL
No message.
But the logcat has error messages
Note that permission and collision issues are not detected until the stream is started.
11-14 07:37:53.278 6265 8631 D AAudio : AAudioStream_requestStart(0x7dda1f3b40) called --------------
11-14 07:37:53.278 6265 8631 D : PlayerBase::start() from IPlayer
11-14 07:37:53.281 841 1140 W APM_AudioPolicyManager: startInput(222) failed: other input 102 already started
11-14 07:37:53.283 6265 8631 D AAudio : AAudioStream_requestStart(0x7dda1f3b40) returned -895 ---------
REPRODUCE Run an app or command that captures audio in the background. The "libaaudio/examples/input_monitor" shell command can be launched: adb shell input_monitor -pl -s5000 Launch Rick ORang Loopback Select AAudio in Settings Click "Calibrate Sound Level Now"
EXPECT An error message saying that input could not be started.
ACTUAL No message. But the logcat has error messages
Note that permission and collision issues are not detected until the stream is started.
11-14 07:37:53.278 6265 8631 D AAudio : AAudioStream_requestStart(0x7dda1f3b40) called -------------- 11-14 07:37:53.278 6265 8631 D : PlayerBase::start() from IPlayer 11-14 07:37:53.281 841 1140 W APM_AudioPolicyManager: startInput(222) failed: other input 102 already started 11-14 07:37:53.283 6265 8631 D AAudio : AAudioStream_requestStart(0x7dda1f3b40) returned -895 ---------