debug
This commit is contained in:
parent
3944db37fd
commit
0843f56fa9
|
@ -6,7 +6,6 @@ namespace py = pybind11;
|
|||
#include "util/RTCContext.h"
|
||||
|
||||
int init(const char* selfUserId, const char* selfDisplayName, const char* selfRoomId, py::object callback) {
|
||||
RTCContext::instance().setPyCallback(callback);
|
||||
bool res = RTCContext::instance().init(selfUserId, selfDisplayName, selfRoomId);
|
||||
if (res) {
|
||||
return 0;
|
||||
|
|
|
@ -224,10 +224,6 @@ void RTCContext::setpData(void* pData)
|
|||
std::lock_guard<std::mutex> lock(mutex_);
|
||||
pData_ = pData;
|
||||
}
|
||||
void RTCContext::setPyCallback(py::object callback) {
|
||||
std::lock_guard<std::mutex> lock(mutex_);
|
||||
pyCallback_ = callback;
|
||||
}
|
||||
|
||||
void RTCContext::setData(const mrtc::MRTCAudioFrame& frame) {
|
||||
std::lock_guard<std::mutex> lock(dataMutex_);
|
||||
|
|
|
@ -76,7 +76,6 @@ public:
|
|||
|
||||
void* getpData() const;
|
||||
void setpData(void* pData);
|
||||
void setPyCallback(py::object callback);
|
||||
|
||||
int16_t sendAudioData(uint8_t channelIndex = 0, const void* pData = nullptr, int32_t nSampleRate = 48000, uint64_t nNumberOfChannels = 2, uint64_t dataLength = 0);
|
||||
int16_t sendCustomAudioData(const int16_t channelIndex, void* customData, int32_t sampleRate,
|
||||
|
@ -95,7 +94,6 @@ private:
|
|||
bool isOnConsumer_ = false;
|
||||
bool isJoinMultiRoom_ = false;
|
||||
bool isMultiRoom_ = false;
|
||||
py::object pyCallback_;
|
||||
std::vector<RetAudioFrame> data_;
|
||||
mutable std::mutex dataMutex_;
|
||||
const int16_t totalSize_ = 100;
|
||||
|
|
Loading…
Reference in New Issue