WebRtc.NET icon indicating copy to clipboard operation
WebRtc.NET copied to clipboard

Sharing Screen while audio is enabled crashing for some Audio Drivers

Open EbramTawfik opened this issue 7 years ago • 4 comments

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)
# 
#

EbramTawfik avatar Oct 03 '18 19:10 EbramTawfik

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.

EbramTawfik avatar Oct 09 '18 17:10 EbramTawfik

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 avatar Dec 16 '19 23:12 Cozdemir

@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.

EbramTawfik avatar Dec 17 '19 23:12 EbramTawfik

@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.

Cozdemir avatar Dec 18 '19 19:12 Cozdemir