This commit is contained in:
wangjiyu 2025-04-10 11:10:25 +08:00
parent 6fd9455d3f
commit 05fa5fc274
1 changed files with 3 additions and 1 deletions

View File

@ -42,7 +42,9 @@ void RTCContext::onAudioProcess(const char* roomId, const char* peerId,
namespace py = boost::python;
std::cout << "-----------------------------------" << std::endl;
std::cout << "dataCount:" << audioFrame.dataCount << audioSourceType << std::endl;
if (!py_callback_.is_none()) {
if (audioFrame.data == nullptr) {
std::cout << "sudioFrame data is null" << std::endl;
} else if (!py_callback_.is_none()) {
std::cout << "python callback" << std::endl;
npy_intp dims[1] = {audioFrame.dataCount};
std::cout << "step1" << std::endl;