Skip to content

Commit c517e94

Browse files
committed
添加设置pitch接口,对讲start之前设置有效,对讲过程中设置pitch无法改变本次对讲音调。
Change-Id: Ib7e4250acdf0020296b222c49bf6bf2459cad8e4
1 parent 40a5f18 commit c517e94

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ private void init(int sampleRate, int channel, int bitDepth) {
9393
} else if (channel == AudioFormat.CHANNEL_IN_STEREO) {
9494
this.channelCount = 2;
9595
}
96+
Log.e(TAG, "AudioRecordUtil init Pitch is: "+ pitch);
9697
}
9798

9899
public void recordSpeakFlv(boolean isRecord) {
@@ -117,6 +118,12 @@ public void recordSpeakFlv(boolean isRecord) {
117118
}
118119
}
119120

121+
// start之前设置有效 start过程中无法改变本次对讲音调
122+
public void setPitch(int pitch) {
123+
Log.e(TAG, "setPitch is: "+ pitch);
124+
this.pitch = pitch;
125+
}
126+
120127
/**
121128
* 开始录制
122129
*/

0 commit comments

Comments
 (0)