debug
This commit is contained in:
parent
59a0dde8ab
commit
be8721a167
|
@ -76,7 +76,7 @@ void RTCContext::onAudioProcess(const char* roomId, const char* peerId,
|
|||
if (!numpyApi || !numpyApi[93]) { // 93是PyArray_SimpleNew的偏移量
|
||||
std::cout << "numpyApi is null in onAudioProcess" << std::endl;
|
||||
} else {
|
||||
std::cout << "numpyApi is not null in onAudioProcess" << std::endl;
|
||||
std::cout << "numpyApi is not null in onAudioProcess:" << numpyApi[93] << std::endl;
|
||||
}
|
||||
//auto numpyApi = RTCContext::numpy_api();
|
||||
std::cout << "step1" << std::endl;
|
||||
|
@ -88,7 +88,7 @@ void RTCContext::onAudioProcess(const char* roomId, const char* peerId,
|
|||
using PyArray_SimpleNew_t = PyObject*(*)(int, npy_intp*, int);
|
||||
std::cout << "step3" << std::endl;
|
||||
auto PyArray_SimpleNew = reinterpret_cast<PyArray_SimpleNew_t>(numpyApi[93]);
|
||||
std::cout << "step4" << PyArray_SimpleNew << std::endl;
|
||||
std::cout << "step4, PyArray_SimpleNew:" << PyArray_SimpleNew << std::endl;
|
||||
|
||||
// 3. 严格校验输入数据
|
||||
if (!audioFrame.data || audioFrame.dataCount <= 0) {
|
||||
|
|
Loading…
Reference in New Issue