debug
This commit is contained in:
parent
6936dfd292
commit
715687e85c
|
@ -39,8 +39,8 @@ int initRecv(const char* destRoomId, const char* srcUserId, const int16_t destCh
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
int initSend(const char* srcRoomId, const char* destRoomId, const int16_t destChannelIndex) {
|
int initSend(const char* srcRoomId, const char* destRoomId, const int16_t destChannelIndex, const int16_t channelNum) {
|
||||||
bool res = RTCContext::instance().initSend(srcRoomId, destRoomId, destChannelIndex);
|
bool res = RTCContext::instance().initSend(srcRoomId, destRoomId, destChannelIndex, channelNum);
|
||||||
if (res) {
|
if (res) {
|
||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -561,7 +561,8 @@ bool RTCContext::initRecv(const char* destRoomId, const char* srcUserId, const i
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
}
|
}
|
||||||
bool RTCContext::initSend(const char* srcRoomId, const char* destRoomId, const int16_t destChannelIndex)
|
bool RTCContext::initSend(const char* srcRoomId, const char* destRoomId, const int16_t destChannelIndex,
|
||||||
|
const uint8_t channelNum)
|
||||||
{
|
{
|
||||||
while (!isOnRoom_)
|
while (!isOnRoom_)
|
||||||
{
|
{
|
||||||
|
@ -586,6 +587,7 @@ bool RTCContext::initSend(const char* srcRoomId, const char* destRoomId, const i
|
||||||
strcpy(option.dstRoomId, destRoomId);
|
strcpy(option.dstRoomId, destRoomId);
|
||||||
}
|
}
|
||||||
option.channelIndex = destChannelIndex;
|
option.channelIndex = destChannelIndex;
|
||||||
|
option.channel = channelNum;
|
||||||
std::cout << "startCustomAudio" << std::endl;
|
std::cout << "startCustomAudio" << std::endl;
|
||||||
int16_t ret2 = rtcEngine_->startCustomAudio(option);
|
int16_t ret2 = rtcEngine_->startCustomAudio(option);
|
||||||
if (ret2 != 0)
|
if (ret2 != 0)
|
||||||
|
|
|
@ -84,7 +84,7 @@ public:
|
||||||
mrtc::IMRTCEngine* getRtcEngine() const;
|
mrtc::IMRTCEngine* getRtcEngine() const;
|
||||||
bool init(const char* selfUserId, const char* selfDisplayName, const char* selfRoomId);
|
bool init(const char* selfUserId, const char* selfDisplayName, const char* selfRoomId);
|
||||||
bool initRecv(const char* destRoomId, const char* srcUserId, const int16_t destChannelIndex);
|
bool initRecv(const char* destRoomId, const char* srcUserId, const int16_t destChannelIndex);
|
||||||
bool initSend(const char* srcRoomId, const char* destRoomId, const int16_t destChannelIndex);
|
bool initSend(const char* srcRoomId, const char* destRoomId, const int16_t destChannelIndex, const uint8_t channelNum);
|
||||||
|
|
||||||
void* getpData() const;
|
void* getpData() const;
|
||||||
void setpData(void* pData);
|
void setpData(void* pData);
|
||||||
|
|
Loading…
Reference in New Issue