Skip to content

Commit

Permalink
Android: Disable the use of sessionId
Browse files Browse the repository at this point in the history
  • Loading branch information
jim-signal authored Aug 23, 2024
1 parent 8561a59 commit f9f26ba
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/android/api/org/signal/ringrtc/CallManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
*
*/
public class CallManager {
public static final int INVALID_AUDIO_SESSION_ID = -1;

@NonNull
private static final String TAG = CallManager.class.getSimpleName();
Expand Down Expand Up @@ -243,15 +244,11 @@ private PeerConnectionFactory createPeerConnectionFactory(@Nullable EglBase

if (useOboe) {
// Use the Oboe Audio Device Module.

AudioManager audioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
int audioSessionId = audioManager.generateAudioSessionId();

OboeAudioDeviceModule adm = OboeAudioDeviceModule.builder()
.setUseSoftwareAcousticEchoCanceler(!useHardware)
.setUseSoftwareNoiseSuppressor(!useHardware)
.setExclusiveSharingMode(true)
.setAudioSessionId(audioSessionId)
.setAudioSessionId(INVALID_AUDIO_SESSION_ID)
.createAudioDeviceModule();

PeerConnectionFactory factory = PeerConnectionFactory.builder()
Expand Down

0 comments on commit f9f26ba

Please sign in to comment.