googlearchive/android-audio-high-performance

AudioManager set MODE_IN_COMMUNICATION mode cause AAUDIO_ERROR_DISCONNECTED

Closed this issue · 1 comments

Piasy commented

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);

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.