Factorize permission code

This commit is contained in:
Patrick Nicolas
2024-09-21 20:51:08 +02:00
committed by Guillaume Meunier
parent 1623769816
commit 76626b8133
11 changed files with 130 additions and 37 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 and audio::check_mic_permission()))
if (not(application::get_config().check_feature(feature::microphone)))
info.microphone = {};
info.supported_codecs = decoder_impl::supported_codecs();