debug
This commit is contained in:
parent
13853cb1e3
commit
80ab364d59
|
@ -338,7 +338,8 @@ void RTCContext::onAudioProcess(const char* roomId, const char* peerId,
|
||||||
try {
|
try {
|
||||||
// 增加引用计数防止提前释放
|
// 增加引用计数防止提前释放
|
||||||
Py_INCREF(pyCallback_.ptr());
|
Py_INCREF(pyCallback_.ptr());
|
||||||
std::cout << " py incr, callback ptr" << pyCallback_ << std::endl;
|
std::cout << " pyCallback_ type: " << Py_TYPE(pyCallback_.ptr())->tp_name << std::endl;
|
||||||
|
std::cout << " pyCallback_ repr: " << PyObject_Repr(pyCallback_.ptr()) << std::endl;
|
||||||
// 传递共享内存信息
|
// 传递共享内存信息
|
||||||
pyCallback_(
|
pyCallback_(
|
||||||
py::str(shm_name), // 共享内存名称
|
py::str(shm_name), // 共享内存名称
|
||||||
|
|
Loading…
Reference in New Issue