This commit is contained in:
wangjiyu 2025-04-15 21:42:24 +08:00
parent a89b81df0d
commit 650386806f
1 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,5 @@
#include "RTCContext.h"
//#define GIL
#define GIL
void RTCContext::onRoom(uint32_t typeId, RTCENGINE_NAMESPACE::MRTCRoomInfo& roomInfo) {
//std::cout << "RTCContext::onRoom():" << roomInfo.roomId << "," << roomInfo.displayName << "," << roomInfo.userId << "," << roomInfo.message;
@ -63,6 +63,7 @@ void RTCContext::onAudioProcess(const char* roomId, const char* peerId,
mrtc::MRTCAudioFrame& audioFrame,
mrtc::MRTCAudioSourceType audioSourceType)
{
std::lock_guard<std::mutex> lock(mutex_);
namespace np = boost::python::numpy;
namespace py = boost::python;
Py_Initialize(); // 初始化 Python