Skip to content

Commit

Permalink
android: make audio output attributes modifiable (#118)
Browse files Browse the repository at this point in the history
Needed to do audio mode changes on react native
  • Loading branch information
davidliu authored May 20, 2024
1 parent 7cf1e43 commit 9316c03
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions sdk/android/api/org/webrtc/audio/JavaAudioDeviceModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,8 @@ public static boolean isBuiltInNoiseSuppressorSupported() {

private final Context context;
private final AudioManager audioManager;
private final WebRtcAudioRecord audioInput;
private final WebRtcAudioTrack audioOutput;
public final WebRtcAudioRecord audioInput;
public final WebRtcAudioTrack audioOutput;
private final int inputSampleRate;
private final int outputSampleRate;
private final boolean useStereoInput;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class WebRtcAudioTrack {

private ByteBuffer byteBuffer;

private @Nullable final AudioAttributes audioAttributes;
public @Nullable AudioAttributes audioAttributes;
private @Nullable AudioTrack audioTrack;
private @Nullable AudioTrackThread audioThread;
private final VolumeLogger volumeLogger;
Expand Down

0 comments on commit 9316c03

Please sign in to comment.