Handle denied microphone permission

This commit is contained in:
Patrick Nicolas
2024-09-21 20:51:08 +02:00
committed by Guillaume Meunier
parent 7682546697
commit 1623769816
7 changed files with 43 additions and 11 deletions
+1 -1
View File
@@ -123,7 +123,7 @@ std::shared_ptr<scenes::stream> scenes::stream::create(std::unique_ptr<wivrn_ses
info.face_tracking2_fb = application::get_fb_face_tracking2_supported();
audio::get_audio_description(info);
if (not application::get_config().microphone)
if (not(application::get_config().microphone and audio::check_mic_permission()))
info.microphone = {};
info.supported_codecs = decoder_impl::supported_codecs();