debug
This commit is contained in:
parent
6378f54389
commit
cb6c5d04a9
|
@ -8,6 +8,11 @@
|
|||
namespace py = boost::python;
|
||||
|
||||
int init(const char* selfUserId, const char* selfDisplayName, const char* selfRoomId, boost::python::object callback) {
|
||||
if (!PyArray_API) {
|
||||
std::cout << "PyArray_API is null in outer init" << std::endl;
|
||||
} else {
|
||||
std::cout << "PyArray_API is not null in outer init" << std::endl;
|
||||
}
|
||||
RTCContext::instance().setPyCallback(callback);
|
||||
bool res = RTCContext::instance().init(selfUserId, selfDisplayName, selfRoomId);
|
||||
if (res) {
|
||||
|
@ -17,6 +22,11 @@ int init(const char* selfUserId, const char* selfDisplayName, const char* selfRo
|
|||
}
|
||||
}
|
||||
int initRecv(const char* destRoomId, const char* srcUserId, const int16_t destChannelIndex) {
|
||||
if (!PyArray_API) {
|
||||
std::cout << "PyArray_API is null in outer initRecv" << std::endl;
|
||||
} else {
|
||||
std::cout << "PyArray_API is not null in outer initRecv" << std::endl;
|
||||
}
|
||||
bool res = RTCContext::instance().initRecv(destRoomId, srcUserId, destChannelIndex);
|
||||
if (res) {
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue