This commit is contained in:
wangjiyu 2025-04-16 16:04:25 +08:00
parent 7c11d681f9
commit 29f14acd5f
1 changed files with 2 additions and 3 deletions

View File

@ -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;