This commit is contained in:
wangjiyu 2025-04-16 16:29:16 +08:00
parent e7fc174bc7
commit a6e6f7fdde
1 changed files with 1 additions and 1 deletions

View File

@ -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_;