Skip to content

Commit 59fc90d

Browse files
author
WhalenSun
committed
Revert "添加一点测试log"
This reverts commit a06851f.
1 parent a06851f commit 59fc90d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
public class AudioRecordUtil implements EncoderListener, FLVListener, Handler.Callback {
4141
private static final int DEFAULT_CHANNEL_CONFIG = AudioFormat.CHANNEL_IN_STEREO; //设置音频的录制的声道CHANNEL_IN_STEREO为双声道,CHANNEL_CONFIGURATION_MONO为单声道
4242
private static final int DEFAULT_AUDIO_FORMAT = AudioFormat.ENCODING_PCM_16BIT; //音频数据格式:PCM 16位每个样本。保证设备支持。PCM 8位每个样本。不一定能得到设备支持。
43-
private static final String TAG = AudioRecordUtil.class.getName() + "[IOT-XP2P]";
43+
private static final String TAG = AudioRecordUtil.class.getName();
4444
private static final int MSG_START = 1;
4545
private static final int MSG_STOP = 2;
4646
private static final int MSG_REC_PLAY_PCM = 3;
@@ -396,7 +396,7 @@ public void encodeG711(byte[] data) { }
396396
@Override
397397
public void onFLV(byte[] data) {
398398
if (recorderState) {
399-
Log.i(TAG, "===== XP2P.dataSend dataLen:" + data.length);
399+
// Log.d(TAG, "===== XP2P.dataSend dataLen:" + data.length);
400400
XP2P.dataSend(deviceId, data, data.length);
401401

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

0 commit comments

Comments
 (0)