This commit is contained in:
wangjiyu 2025-04-10 10:01:53 +08:00
parent fe7f636055
commit 546bd7de4a
1 changed files with 1 additions and 1 deletions

View File

@ -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) {