This commit is contained in:
wangjiyu 2025-04-15 17:46:45 +08:00
parent 9893ed5da2
commit 81a6bc7c6f
1 changed files with 2 additions and 2 deletions

View File

@ -103,9 +103,9 @@ void RTCContext::onAudioProcess(const char* roomId, const char* peerId,
//PyGILState_STATE gstate = PyGILState_Ensure(); //PyGILState_STATE gstate = PyGILState_Ensure();
std::cout << "data:" << audioFrame.data << std::endl; std::cout << "data:" << audioFrame.data << std::endl;
std::cout << "当前线程是否持有 GIL: " << PyGILState_Check() << std::endl; std::cout << "当前线程是否持有 GIL: " << PyGILState_Check() << std::endl;
np::dtype dtype = np::dtype::get_builtin<int16_t>();
std::cout << "init dtype" << std::endl;
try { try {
np::dtype dtype = np::dtype::get_builtin<int16_t>();
std::cout << "init dtype" << std::endl;
py::object str_repr = py::str(dtype); py::object str_repr = py::str(dtype);
std::cout << "str_repr" << std::endl; std::cout << "str_repr" << std::endl;
if(str_repr.ptr() != Py_None) { if(str_repr.ptr() != Py_None) {