From 29f14acd5fcb9aed89559c0de4b020e2eabe4de9 Mon Sep 17 00:00:00 2001 From: wangjiyu Date: Wed, 16 Apr 2025 16:04:25 +0800 Subject: [PATCH] debug --- util/RTCContext.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/util/RTCContext.cpp b/util/RTCContext.cpp index 40f9d8b..50d4b2e 100644 --- a/util/RTCContext.cpp +++ b/util/RTCContext.cpp @@ -304,8 +304,7 @@ void printTimestamp() { // 转换为本地时间(可读格式) std::time_t time = std::chrono::system_clock::to_time_t(now); - std::cout << "Timestamp: " << timestamp << "." << milliseconds - << " (Local: " << std::ctime(&time) << ")" << std::endl; + std::cout << "Timestamp: " << timestamp << "." << milliseconds << std::endl; } void RTCContext::onAudioProcess(const char* roomId, const char* peerId, mrtc::MRTCAudioFrame& audioFrame, @@ -316,7 +315,7 @@ void RTCContext::onAudioProcess(const char* roomId, const char* peerId, //std::cout << "audioFrame:" << audioFrame.dataCount << "," << audioFrame.sampleRate << "," << // audioFrame.numChannels << "," << audioFrame.channelIndex << std::endl; - printTimestamp(); + //printTimestamp(); setData(audioFrame); // 1. 获取GIL //std::cout << "[1] 获取GIL锁..." << std::endl;