Skip to content

Commit

Permalink
添加设置pitch接口,对讲start之前设置有效,对讲过程中设置pitch无法改变本次对讲音调。
Browse files Browse the repository at this point in the history
Change-Id: Ib7e4250acdf0020296b222c49bf6bf2459cad8e4
  • Loading branch information
SundoggyNew committed Jan 9, 2023
1 parent 40a5f18 commit c517e94
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ private void init(int sampleRate, int channel, int bitDepth) {
} else if (channel == AudioFormat.CHANNEL_IN_STEREO) {
this.channelCount = 2;
}
Log.e(TAG, "AudioRecordUtil init Pitch is: "+ pitch);
}

public void recordSpeakFlv(boolean isRecord) {
Expand All @@ -117,6 +118,12 @@ public void recordSpeakFlv(boolean isRecord) {
}
}

// start之前设置有效 start过程中无法改变本次对讲音调
public void setPitch(int pitch) {
Log.e(TAG, "setPitch is: "+ pitch);
this.pitch = pitch;
}

/**
* 开始录制
*/
Expand Down

0 comments on commit c517e94

Please sign in to comment.