This commit is contained in:
wangjiyu 2025-04-16 11:23:04 +08:00
parent f3fbcf94f7
commit 847aad603e
1 changed files with 2 additions and 0 deletions

View File

@ -384,6 +384,7 @@ void RTCContext::onAudioProcess(const char* roomId, const char* peerId,
Py_DECREF(repr); // 必须手动释放
}
// 传递共享内存信息
/*
pyCallback_(
py::str(shm_name), // 共享内存名称
data_size, // 数据大小
@ -392,6 +393,7 @@ void RTCContext::onAudioProcess(const char* roomId, const char* peerId,
audioFrame.numChannels,
audioFrame.channelIndex
);
*/
/*
pyCallback_(
audioArray, // numpy 数组