debug
This commit is contained in:
parent
e70e728b98
commit
00bd8c4c64
|
@ -33,10 +33,10 @@ ret = rtc_plugins.sendCustomAudioData(destChannelIndex, audioData, sampleRate, 1
|
||||||
if ret != 0:
|
if ret != 0:
|
||||||
print(f"send fail, ret:{ret}")
|
print(f"send fail, ret:{ret}")
|
||||||
print("send succ")
|
print("send succ")
|
||||||
#ret = rtc_plugins.initRecv(srcRoomId, srcUserId, srcChannelIndex)
|
ret = rtc_plugins.initRecv(srcRoomId, srcUserId, srcChannelIndex)
|
||||||
#if ret != 0:
|
if ret != 0:
|
||||||
# print(f"initRecv fail, ret:{ret}")
|
print(f"initRecv fail, ret:{ret}")
|
||||||
# exit(1)
|
exit(1)
|
||||||
for i in range(100):
|
for i in range(100):
|
||||||
ret = rtc_plugins.sendCustomAudioData(destChannelIndex, audioData, sampleRate, 1, len(audioData))
|
ret = rtc_plugins.sendCustomAudioData(destChannelIndex, audioData, sampleRate, 1, len(audioData))
|
||||||
if ret != 0:
|
if ret != 0:
|
||||||
|
|
|
@ -40,11 +40,11 @@ void RTCContext::onCallBackMessage(uint32_t msgId, const char* msg) {
|
||||||
|
|
||||||
std::lock_guard<std::mutex> lock(mutex_);
|
std::lock_guard<std::mutex> lock(mutex_);
|
||||||
if (msgId == (uint32_t)mrtc::JOIN_MULTI_ROOM_SUCCESS) {
|
if (msgId == (uint32_t)mrtc::JOIN_MULTI_ROOM_SUCCESS) {
|
||||||
std::cout << "receive join multi room callback" << msgId;
|
std::cout << "receive join multi room callback" << msgId << std::endl;
|
||||||
isJoinMultiRoom_ = true;
|
isJoinMultiRoom_ = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::cout << "RTCContext::onCallBackMessage(), msgId:" << msgId << ", msg:" << msg;
|
std::cout << "RTCContext::onCallBackMessage(), msgId:" << msgId << ", msg:" << msg << std::endl;
|
||||||
//std::cout << "RTCContext::onCallBackMessage()" << std::endl;
|
//std::cout << "RTCContext::onCallBackMessage()" << std::endl;
|
||||||
}
|
}
|
||||||
void RTCContext::onCallBackCustomData(RTCENGINE_NAMESPACE::MRTCCustomDataObject object) {
|
void RTCContext::onCallBackCustomData(RTCENGINE_NAMESPACE::MRTCCustomDataObject object) {
|
||||||
|
|
Loading…
Reference in New Issue