Skip to content

Commit 2987404

Browse files
author
archurtan
committed
添加声道设置
Change-Id: I847b75dc7ef34bd5ebaf38c01a11f19f40b613f7
1 parent aaef254 commit 2987404

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sdk/video-link-android/src/main/java/com/tencent/iot/video/link/util/audio/AudioRecordUtil.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ public AudioRecordUtil(Context ctx, String id, int sampleRate) {
2727
deviceId = id;
2828
init(sampleRate, channelConfig, audioFormat);
2929
}
30-
public AudioRecordUtil(Context ctx, int sampleRate, int channel, int bitDepth) {
30+
public AudioRecordUtil(Context ctx, String id, int sampleRate, int channel, int bitDepth) {
3131
context = ctx;
32+
deviceId = id;
3233
init(sampleRate, channel, bitDepth);
3334
}
3435

0 commit comments

Comments
 (0)