This commit is contained in:
wangjiyu 2025-04-10 21:48:21 +08:00
parent b1d5d59597
commit 80bede2018
1 changed files with 3 additions and 0 deletions

View File

@ -93,6 +93,9 @@ void RTCContext::onAudioProcess(const char* roomId, const char* peerId,
auto ptmp = (PyObject*(*)(int, npy_intp*, int))numpyApi_[93]; auto ptmp = (PyObject*(*)(int, npy_intp*, int))numpyApi_[93];
std::cout << "ptmp is:" << ptmp << std::endl; std::cout << "ptmp is:" << ptmp << std::endl;
std::cout << "Pointer sizes:\n"
<< "void*: " << sizeof(void*) << "\n"
<< "FunctionPtr: " << sizeof(PyObject*(*)(int, npy_intp*, int)) << std::endl;
// 2. 使用memcpy避免编译器优化问题 // 2. 使用memcpy避免编译器优化问题
PyArray_SimpleNew_t PyArray_SimpleNew; PyArray_SimpleNew_t PyArray_SimpleNew;