googlearchive / android-audio-high-performance

We now recommend you use the Oboe libraries:
https://github.com/google/oboe
Apache License 2.0
720 stars 275 forks source link

[aaudio/aaudio-echo] Input stream not on fast mixer path #56

Closed dturner closed 7 years ago

dturner commented 7 years ago

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