diff --git a/rtc_plugins.cpp b/rtc_plugins.cpp index b18e7b2..5b81cd9 100644 --- a/rtc_plugins.cpp +++ b/rtc_plugins.cpp @@ -31,7 +31,7 @@ int initRecv(const char* destRoomId, const char* srcUserId, const int16_t destCh return -1; } } -int initSend(const char* srcRoomId, const char* destRoomId, const int16_t destChannelIndex, const uint8_t channelNum) { +int initSend(const char* srcRoomId, const char* destRoomId, const int16_t destChannelIndex, const int16_t channelNum) { bool res = RTCContext::instance().initSend(srcRoomId, destRoomId, destChannelIndex, channelNum); if (res) { return 0; diff --git a/util/RTCContext.cpp b/util/RTCContext.cpp index 768ae3c..fb62dce 100644 --- a/util/RTCContext.cpp +++ b/util/RTCContext.cpp @@ -277,7 +277,7 @@ bool RTCContext::initRecv(const char* destRoomId, const char* srcUserId, const i return true; } -bool RTCContext::initSend(const char* srcRoomId, const char* destRoomId, const int16_t destChannelIndex, uint8_t channelNum) +bool RTCContext::initSend(const char* srcRoomId, const char* destRoomId, const uint8_t destChannelIndex, uint8_t channelNum) { while (!isOnRoom_) { diff --git a/util/RTCContext.h b/util/RTCContext.h index 3823ae1..e2c079e 100644 --- a/util/RTCContext.h +++ b/util/RTCContext.h @@ -84,7 +84,7 @@ public: mrtc::IMRTCEngine* getRtcEngine() const; bool init(const char* selfUserId, const char* selfDisplayName, const char* selfRoomId); bool initRecv(const char* destRoomId, const char* srcUserId, const int16_t destChannelIndex); - bool initSend(const char* srcRoomId, const char* destRoomId, const int16_t destChannelIndex, uint8_t channelNum); + bool initSend(const char* srcRoomId, const char* destRoomId, const uint8_t destChannelIndex, uint8_t channelNum); bool initGIL(); void* getpData() const;