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

AudioManager set MODE_IN_COMMUNICATION mode cause AAUDIO_ERROR_DISCONNECTED #115

Closed Piasy closed 5 years ago

Piasy commented 6 years ago

Add code below to Echo sample MainActivity startEchoing method could reproduce it:

AudioManager audioManager = ((AudioManager) getApplicationContext()
        .getSystemService(Context.AUDIO_SERVICE));
audioManager.setMode(AudioManager.MODE_IN_COMMUNICATION);
codingjeremy commented 5 years ago

This sample has been deprecated/archived (check README for more information on newer samples related to this technology).

As recommended by GitHub, we are closing all issues and pull requests.