When running the aaudio-echo sample I get the following logcat output:
W/AudioRecord: AUDIO_INPUT_FLAG_FAST denied by client; transfer 3, track 48000 Hz, input 48000 Hz
This can be solved by not calling AAudioStreamBuilder_setDataCallback(builder_, callback, userData); when creating the input stream. However, this leads to a race condition because the output stream callbacks have already started but the input stream hasn't, and therefore cannot be read from.
When running the aaudio-echo sample I get the following logcat output:
W/AudioRecord: AUDIO_INPUT_FLAG_FAST denied by client; transfer 3, track 48000 Hz, input 48000 Hz
This can be solved by not calling
AAudioStreamBuilder_setDataCallback(builder_, callback, userData);
when creating the input stream. However, this leads to a race condition because the output stream callbacks have already started but the input stream hasn't, and therefore cannot be read from.See internal bug 62675917