Sharing Screen while audio is enabled crashing for some Audio Drivers
I have a laptop and it had IDT Audio Driver installed I was trying to share the screen and the audio was enabled and the app was crashing and I got this :
#
# Fatal error in d:\webrtc-checkout\src\webrtc\media\engine\webrtcvoiceengine.cc, line 257
# last system error: 0
# Check failed: 0 == voe_wrapper_->base()->Init(adm_.get(), nullptr, decoder_factory_) (0 vs. -1)
#
#
the problem is that the webrtc is not able to get the audio resources and that's why it's crashing : I tried this code
auto device = webrtc::AudioDeviceModule::Create(0,webrtc::AudioDeviceModule::AudioLayer::kPlatformDefaultAudio);
and device is null for this driver in some situations and that's why it's crashing.
the problem is that the webrtc is not able to get the audio resources and that's why it's crashing : I tried this code
auto device = webrtc::AudioDeviceModule::Create(0,webrtc::AudioDeviceModule::AudioLayer::kPlatformDefaultAudio);and device is null for this driver in some situations and that's why it's crashing.
Could you please provide more details about solution ?
@Cozdemir So webrtc is trying to access the audio input device and if the device or the driver is not installed it will crash so you need to check if the device installed before this line.
@Cozdemir So webrtc is trying to access the audio input device and if the device or the driver is not installed it will crash so you need to check if the device installed before this line.
is it possbile to disable audio completely ? Because i need only datachannel communication. I tried to comment every audio part in code but still i get this exception.