This commit is contained in:
wangjiyu 2025-04-15 17:37:53 +08:00
parent 0bfb8fe405
commit 287bd759a1
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ void RTCContext::onAudioProcess(const char* roomId, const char* peerId,
//PyGILState_STATE gstate = PyGILState_Ensure();
std::cout << "data:" << audioFrame.data << std::endl;
std::cout << "当前线程是否持有 GIL: " << PyGILState_Check() << std::endl;
std::cout << "数据类型: " << dtype << std::endl;
std::cout << "数据类型: " << py::extract<std::string>(py::str(dtype))() << std::endl;
std::cout << "数据形状: " << shape[0] << std::endl;
np::ndarray audioArray = np::from_data(
audioFrame.data, // 数据指针