This commit is contained in:
wangjiyu 2025-04-09 18:26:11 +08:00
parent 614a214fb1
commit 71ef584b5f
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ int sendCustomAudioData(const int16_t destChannelIndex, py::object pyData, int32
uint64_t dataLen) {
PyObject* pyObj = pyData.ptr();
void* dataPtr = PyArray_DATA((PyArrayObject*)pyObj);
return RTCContext::instance().sendCustomAudioData(destChannelIndex, customData, sampleRate, channelNum, dataLen);
return RTCContext::instance().sendCustomAudioData(destChannelIndex, dataPtr, sampleRate, channelNum, dataLen);
}
BOOST_PYTHON_MODULE(rtc_plugins) {