Skip to content

Commit

Permalink
Revert "添加一点测试log"
Browse files Browse the repository at this point in the history
This reverts commit a06851f.
  • Loading branch information
WhalenSun committed May 28, 2024
1 parent a06851f commit 59fc90d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
public class AudioRecordUtil implements EncoderListener, FLVListener, Handler.Callback {
private static final int DEFAULT_CHANNEL_CONFIG = AudioFormat.CHANNEL_IN_STEREO; //设置音频的录制的声道CHANNEL_IN_STEREO为双声道,CHANNEL_CONFIGURATION_MONO为单声道
private static final int DEFAULT_AUDIO_FORMAT = AudioFormat.ENCODING_PCM_16BIT; //音频数据格式:PCM 16位每个样本。保证设备支持。PCM 8位每个样本。不一定能得到设备支持。
private static final String TAG = AudioRecordUtil.class.getName() + "[IOT-XP2P]";
private static final String TAG = AudioRecordUtil.class.getName();
private static final int MSG_START = 1;
private static final int MSG_STOP = 2;
private static final int MSG_REC_PLAY_PCM = 3;
Expand Down Expand Up @@ -396,7 +396,7 @@ public void encodeG711(byte[] data) { }
@Override
public void onFLV(byte[] data) {
if (recorderState) {
Log.i(TAG, "===== XP2P.dataSend dataLen:" + data.length);
// Log.d(TAG, "===== XP2P.dataSend dataLen:" + data.length);
XP2P.dataSend(deviceId, data, data.length);

if (executor.isShutdown()) return;
Expand Down Expand Up @@ -433,7 +433,7 @@ private class RecordThread extends Thread {
public void run() {
while (recorderState) {
int read = audioRecord.read(buffer, 0, buffer.length);
Log.i(TAG, "audioRecord.read: "+read + ", buffer.length: " + buffer.length + ", recorderState: " + recorderState);
Log.e(TAG, "audioRecord.read: "+read + ", buffer.length: " + buffer.length + ", recorderState: " + recorderState);
if (!VoiceChangerJNIBridge.isAvailable()) {
if (pitch != 0 && st != null) {
st.putBytes(buffer);
Expand Down

0 comments on commit 59fc90d

Please sign in to comment.