debug
This commit is contained in:
parent
7c11d681f9
commit
29f14acd5f
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue