Skip to content

Commit 76723f2

Browse files
committed
[Android]fix custom audio capture bug.
1 parent 48e4faa commit 76723f2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Android/APIExample-Audio/app/src/main/java/io/agora/api/example/examples/advanced/customaudio/CustomAudioSource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ public void onCheckedChanged(CompoundButton compoundButton, boolean b) {
230230
option.publishCustomAudioTrack = false;
231231
}
232232
engine.updateChannelMediaOptions(option);
233-
engine.enableCustomAudioLocalPlayback(0, true);
233+
engine.enableCustomAudioLocalPlayback(0, b);
234234
}
235235
}
236236

Android/APIExample-Audio/app/src/main/res/navigation/nav_graph.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
<fragment
6060
android:id="@+id/CustomAudioRecord"
6161
android:name="io.agora.api.example.examples.advanced.customaudio.CustomAudioSource"
62-
android:label="@string/item_quickswitck"
62+
android:label="@string/item_customaudiosource"
6363
tools:layout="@layout/fragment_custom_audio_source" />
6464
<fragment
6565
android:id="@+id/CustomAudioRender"

0 commit comments

Comments
 (0)