debug
This commit is contained in:
parent
e7fc174bc7
commit
a6e6f7fdde
|
@ -690,7 +690,7 @@ void RTCContext::setData(const mrtc::MRTCAudioFrame& frame) {
|
|||
}
|
||||
|
||||
RetAudioFrame RTCContext::getData() {
|
||||
std::lock_guard<std::mutex> lock(dataMutex_);
|
||||
//std::lock_guard<std::mutex> lock(dataMutex_);
|
||||
if (dataSize_ > 0) {
|
||||
RetAudioFrame frame = std::move(data_[bottom_]); // 移动而非拷贝
|
||||
bottom_ = (bottom_ + 1) % totalSize_;
|
||||
|
|
Loading…
Reference in New Issue