Closed zjzhang-cn closed 1 year ago
在OnDeviceChange的回调中直接调用 SetPlayoutDevice ,SetRecordingDevice 会死锁。
auto audio_device_ = pcFactory->GetAudioDevice(); //设备改变后,设置使用默认设备 audio_device_->OnDeviceChange([&]() { audio_device_->SetPlayoutDevice(-1); audio_device_->SetRecordingDevice(-1); });
在OnDeviceChange的回调中直接调用 SetPlayoutDevice ,SetRecordingDevice 会死锁。