This commit is contained in:
wangjiyu 2025-04-16 20:07:33 +08:00
parent d63f67dfcd
commit 80a32a100b
1 changed files with 2 additions and 2 deletions

View File

@ -326,7 +326,7 @@ void RTCContext::onAudioProcess(const char* roomId, const char* peerId,
//setData(audioFrame); //setData(audioFrame);
// 1. 获取GIL // 1. 获取GIL
//std::cout << "[1] 获取GIL锁..." << std::endl; //std::cout << "[1] 获取GIL锁..." << std::endl;
////PyGILState_STATE gstate = PyGILState_Ensure(); PyGILState_STATE gstate = PyGILState_Ensure();
//try { //try {
// // 2. 输入参数校验 // // 2. 输入参数校验
@ -465,7 +465,7 @@ void RTCContext::onAudioProcess(const char* roomId, const char* peerId,
// shm_unlink(shm_name); // shm_unlink(shm_name);
// std::cout << "[9] 释放GIL..." << std::endl; // std::cout << "[9] 释放GIL..." << std::endl;
// //PyGILState_Release(gstate); PyGILState_Release(gstate);
// std::cout << "=== 音频处理完成 ===" << std::endl; // std::cout << "=== 音频处理完成 ===" << std::endl;
//} catch (const std::exception& e) { //} catch (const std::exception& e) {