diff --git a/rtc_plugins.cpp b/rtc_plugins.cpp index d7b8399..92d4546 100644 --- a/rtc_plugins.cpp +++ b/rtc_plugins.cpp @@ -41,8 +41,10 @@ int sendCustomAudioData(const int16_t destChannelIndex, py::object pyData, int32 } std::cout << "step 2" << std::endl; + std::cout << "pyData ptr is:" << pyData.ptr() << std::endl; // 2. 检查是否是 numpy 数组 if (!PyArray_Check(pyData.ptr())) { + std::cout << "input is notnumpy" << std::endl; throw std::runtime_error("Input is not a numpy array"); }