diff --git a/rtc_plugins.cpp b/rtc_plugins.cpp index e08b4e3..a91b8e0 100644 --- a/rtc_plugins.cpp +++ b/rtc_plugins.cpp @@ -54,7 +54,7 @@ py::object create_numpy_array() { int sendCustomAudioData(const int16_t destChannelIndex, py::object pD, int32_t sampleRate, uint64_t channelNum, uint64_t dataLen) { try { - pyData = create_numpy_array(); + py::object pyData = create_numpy_array(); std::cout << "step 1" << std::endl; // 1. 检查输入有效性 if (pyData.ptr() == nullptr) {