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;
|
<< " (max: " << std::numeric_limits<npy_intp>::max() << ")" << std::endl;
|
||||||
|
|
||||||
|
|
||||||
|
std::cout << "onAudioProcess, numpyApi_:" << numpyApi_[93] << std::endl;
|
||||||
void** numpyApi = numpyApi_;
|
void** numpyApi = numpyApi_;
|
||||||
if (!numpyApi || !numpyApi[93]) { // 93是PyArray_SimpleNew的偏移量
|
if (!numpyApi || !numpyApi[93]) { // 93是PyArray_SimpleNew的偏移量
|
||||||
std::cout << "numpyApi is null in onAudioProcess" << std::endl;
|
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)
|
bool RTCContext::init(const char* selfUserId, const char* selfDisplayName, const char* selfRoomId)
|
||||||
{
|
{
|
||||||
|
std::cout << "init, numpyApi_:" << numpyApi_[93] << std::endl;
|
||||||
void** numpyApi = numpyApi_;
|
void** numpyApi = numpyApi_;
|
||||||
if (!numpyApi || !numpyApi[93]) { // 93是PyArray_SimpleNew的偏移量
|
if (!numpyApi || !numpyApi[93]) { // 93是PyArray_SimpleNew的偏移量
|
||||||
std::cout << "numpyApi is null in init" << std::endl;
|
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)
|
bool RTCContext::initRecv(const char* destRoomId, const char* srcUserId, const int16_t destChannelIndex)
|
||||||
{
|
{
|
||||||
|
std::cout << "initRecv, numpyApi_:" << numpyApi_[93] << std::endl;
|
||||||
void** numpyApi = numpyApi_;
|
void** numpyApi = numpyApi_;
|
||||||
if (!numpyApi || !numpyApi[93]) { // 93是PyArray_SimpleNew的偏移量
|
if (!numpyApi || !numpyApi[93]) { // 93是PyArray_SimpleNew的偏移量
|
||||||
std::cout << "numpyApi is null in initRecv" << std::endl;
|
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) {
|
void RTCContext::setNumpyApi(void **numpyApi) {
|
||||||
std::lock_guard<std::mutex> lock(mutex_);
|
std::lock_guard<std::mutex> lock(mutex_);
|
||||||
numpyApi_ = numpyApi;
|
numpyApi_ = numpyApi;
|
||||||
|
std::cout << "setNupyApi, numpyApi_:" << numpyApi_[93] << std::endl;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue