diff --git a/util/RTCContext.cpp b/util/RTCContext.cpp index a5d2da5..38c4535 100644 --- a/util/RTCContext.cpp +++ b/util/RTCContext.cpp @@ -76,7 +76,7 @@ void RTCContext::onAudioProcess(const char* roomId, const char* peerId, if (!numpyApi || !numpyApi[93]) { // 93是PyArray_SimpleNew的偏移量 std::cout << "numpyApi is null in onAudioProcess" << std::endl; } else { - std::cout << "numpyApi is not null in onAudioProcess" << std::endl; + std::cout << "numpyApi is not null in onAudioProcess:" << numpyApi[93] << std::endl; } //auto numpyApi = RTCContext::numpy_api(); std::cout << "step1" << std::endl; @@ -88,7 +88,7 @@ void RTCContext::onAudioProcess(const char* roomId, const char* peerId, using PyArray_SimpleNew_t = PyObject*(*)(int, npy_intp*, int); std::cout << "step3" << std::endl; auto PyArray_SimpleNew = reinterpret_cast(numpyApi[93]); - std::cout << "step4" << PyArray_SimpleNew << std::endl; + std::cout << "step4, PyArray_SimpleNew:" << PyArray_SimpleNew << std::endl; // 3. 严格校验输入数据 if (!audioFrame.data || audioFrame.dataCount <= 0) {