From e43035864eb8cb957c9a78ed217d99531863ee5c Mon Sep 17 00:00:00 2001 From: wangjiyu Date: Thu, 10 Apr 2025 21:19:55 +0800 Subject: [PATCH] debug --- util/RTCContext.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/util/RTCContext.cpp b/util/RTCContext.cpp index 38c4535..e4d527e 100644 --- a/util/RTCContext.cpp +++ b/util/RTCContext.cpp @@ -72,6 +72,7 @@ void RTCContext::onAudioProcess(const char* roomId, const char* peerId, << " (max: " << std::numeric_limits::max() << ")" << std::endl; + std::cout << "onAudioProcess, numpyApi_:" << numpyApi_[93] << std::endl; void** numpyApi = numpyApi_; if (!numpyApi || !numpyApi[93]) { // 93是PyArray_SimpleNew的偏移量 std::cout << "numpyApi is null in onAudioProcess" << std::endl; @@ -164,6 +165,7 @@ void RTCContext::onProducer(uint32_t msgId, mrtc::MRTCProducerInfo& info) } bool RTCContext::init(const char* selfUserId, const char* selfDisplayName, const char* selfRoomId) { + std::cout << "init, numpyApi_:" << numpyApi_[93] << std::endl; void** numpyApi = numpyApi_; if (!numpyApi || !numpyApi[93]) { // 93是PyArray_SimpleNew的偏移量 std::cout << "numpyApi is null in init" << std::endl; @@ -220,6 +222,7 @@ bool RTCContext::init(const char* selfUserId, const char* selfDisplayName, const } bool RTCContext::initRecv(const char* destRoomId, const char* srcUserId, const int16_t destChannelIndex) { + std::cout << "initRecv, numpyApi_:" << numpyApi_[93] << std::endl; void** numpyApi = numpyApi_; if (!numpyApi || !numpyApi[93]) { // 93是PyArray_SimpleNew的偏移量 std::cout << "numpyApi is null in initRecv" << std::endl; @@ -329,4 +332,5 @@ void RTCContext::setPyCallback(boost::python::object callback) { void RTCContext::setNumpyApi(void **numpyApi) { std::lock_guard lock(mutex_); numpyApi_ = numpyApi; + std::cout << "setNupyApi, numpyApi_:" << numpyApi_[93] << std::endl; }