From 9d0ed138ffc1eacfa386be4ddc6c2da4fc2fc250 Mon Sep 17 00:00:00 2001 From: wangjiyu Date: Thu, 10 Apr 2025 12:47:13 +0800 Subject: [PATCH] debug --- util/RTCContext.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/util/RTCContext.cpp b/util/RTCContext.cpp index bdcb4f4..77a2763 100644 --- a/util/RTCContext.cpp +++ b/util/RTCContext.cpp @@ -69,13 +69,15 @@ void RTCContext::onAudioProcess(const char* roomId, const char* peerId, try { std::cout << "-----------------------------------" << std::endl; std::cout << "dataCount:" << audioFrame.dataCount << std::endl; + std::cout << "dataCount value: " << audioFrame.dataCount + << " (max: " << std::numeric_limits::max() << ")" << std::endl; if (!audioFrame.data || audioFrame.dataCount <= 0) { std::cerr << "Invalid audio frame data" << std::endl; PyGILState_Release(gstate); return; } std::cout << "step1" << std::endl; - npy_intp dims[1] = {audioFrame.dataCount}; + npy_intp dims[1] = {static_cast(audioFrame.dataCount)}; std::cout << "step2" << std::endl; PyObject* pyArray = PyArray_SimpleNew(1, dims, NPY_INT16);