debug
This commit is contained in:
parent
f8daa9c277
commit
9893ed5da2
|
@ -92,8 +92,6 @@ void RTCContext::onAudioProcess(const char* roomId, const char* peerId,
|
|||
namespace np = boost::python::numpy;
|
||||
npy_intp shape[1] = { static_cast<npy_intp>(audioFrame.dataCount) };
|
||||
std::cout << "step2" << std::endl;
|
||||
np::dtype dtype = np::dtype::get_builtin<int16_t>();
|
||||
std::cout << "step3" << std::endl;
|
||||
|
||||
// 7. 执行回调
|
||||
if (!pyCallback_.is_none()) {
|
||||
|
@ -106,6 +104,8 @@ void RTCContext::onAudioProcess(const char* roomId, const char* peerId,
|
|||
std::cout << "data:" << audioFrame.data << std::endl;
|
||||
std::cout << "当前线程是否持有 GIL: " << PyGILState_Check() << std::endl;
|
||||
try {
|
||||
np::dtype dtype = np::dtype::get_builtin<int16_t>();
|
||||
std::cout << "init dtype" << std::endl;
|
||||
py::object str_repr = py::str(dtype);
|
||||
std::cout << "str_repr" << std::endl;
|
||||
if(str_repr.ptr() != Py_None) {
|
||||
|
|
Loading…
Reference in New Issue