debug
This commit is contained in:
parent
ee42415e7c
commit
e43035864e
|
@ -72,6 +72,7 @@ void RTCContext::onAudioProcess(const char* roomId, const char* peerId,
|
|||
<< " (max: " << std::numeric_limits<npy_intp>::max() << ")" << std::endl;
|
||||
|
||||
|
||||
std::cout << "onAudioProcess, numpyApi_:" << numpyApi_[93] << std::endl;
|
||||
void** numpyApi = numpyApi_;
|
||||
if (!numpyApi || !numpyApi[93]) { // 93是PyArray_SimpleNew的偏移量
|
||||
std::cout << "numpyApi is null in onAudioProcess" << std::endl;
|
||||
|
@ -164,6 +165,7 @@ void RTCContext::onProducer(uint32_t msgId, mrtc::MRTCProducerInfo& info)
|
|||
}
|
||||
bool RTCContext::init(const char* selfUserId, const char* selfDisplayName, const char* selfRoomId)
|
||||
{
|
||||
std::cout << "init, numpyApi_:" << numpyApi_[93] << std::endl;
|
||||
void** numpyApi = numpyApi_;
|
||||
if (!numpyApi || !numpyApi[93]) { // 93是PyArray_SimpleNew的偏移量
|
||||
std::cout << "numpyApi is null in init" << std::endl;
|
||||
|
@ -220,6 +222,7 @@ bool RTCContext::init(const char* selfUserId, const char* selfDisplayName, const
|
|||
}
|
||||
bool RTCContext::initRecv(const char* destRoomId, const char* srcUserId, const int16_t destChannelIndex)
|
||||
{
|
||||
std::cout << "initRecv, numpyApi_:" << numpyApi_[93] << std::endl;
|
||||
void** numpyApi = numpyApi_;
|
||||
if (!numpyApi || !numpyApi[93]) { // 93是PyArray_SimpleNew的偏移量
|
||||
std::cout << "numpyApi is null in initRecv" << std::endl;
|
||||
|
@ -329,4 +332,5 @@ void RTCContext::setPyCallback(boost::python::object callback) {
|
|||
void RTCContext::setNumpyApi(void **numpyApi) {
|
||||
std::lock_guard<std::mutex> lock(mutex_);
|
||||
numpyApi_ = numpyApi;
|
||||
std::cout << "setNupyApi, numpyApi_:" << numpyApi_[93] << std::endl;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue