diff --git a/util/RTCContext.cpp b/util/RTCContext.cpp index 266c080..d063747 100644 --- a/util/RTCContext.cpp +++ b/util/RTCContext.cpp @@ -103,9 +103,9 @@ 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; + np::dtype dtype = np::dtype::get_builtin(); + std::cout << "init dtype" << std::endl; try { - np::dtype dtype = np::dtype::get_builtin(); - std::cout << "init dtype" << std::endl; py::object str_repr = py::str(dtype); std::cout << "str_repr" << std::endl; if(str_repr.ptr() != Py_None) {