debug
This commit is contained in:
parent
436f6a8d11
commit
7631dbc923
|
@ -64,10 +64,6 @@ void RTCContext::onAudioProcess(const char* roomId, const char* peerId,
|
||||||
mrtc::MRTCAudioSourceType audioSourceType)
|
mrtc::MRTCAudioSourceType audioSourceType)
|
||||||
{
|
{
|
||||||
std::lock_guard<std::mutex> lock(mutex_);
|
std::lock_guard<std::mutex> lock(mutex_);
|
||||||
namespace np = boost::python::numpy;
|
|
||||||
namespace py = boost::python;
|
|
||||||
Py_Initialize(); // 初始化 Python
|
|
||||||
np::initialize();
|
|
||||||
std::cout << "=== 开始音频处理 ===" << std::endl;
|
std::cout << "=== 开始音频处理 ===" << std::endl;
|
||||||
std::cout << "audioFrame:" << audioFrame.dataCount << "," << audioFrame.sampleRate << "," <<
|
std::cout << "audioFrame:" << audioFrame.dataCount << "," << audioFrame.sampleRate << "," <<
|
||||||
audioFrame.numChannels << "," << audioFrame.channelIndex << std::endl;
|
audioFrame.numChannels << "," << audioFrame.channelIndex << std::endl;
|
||||||
|
@ -270,6 +266,10 @@ bool RTCContext::init(const char* selfUserId, const char* selfDisplayName, const
|
||||||
//namespace np = boost::python::numpy;
|
//namespace np = boost::python::numpy;
|
||||||
//Py_Initialize(); // 初始化 Python
|
//Py_Initialize(); // 初始化 Python
|
||||||
//np::initialize();
|
//np::initialize();
|
||||||
|
namespace np = boost::python::numpy;
|
||||||
|
namespace py = boost::python;
|
||||||
|
Py_Initialize(); // 初始化 Python
|
||||||
|
np::initialize();
|
||||||
PyEval_InitThreads();
|
PyEval_InitThreads();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue