From 03738bcb8f9274041a03bab99881559f0ffe1a97 Mon Sep 17 00:00:00 2001 From: DJ2LS Date: Tue, 14 Nov 2023 19:35:11 +0100 Subject: [PATCH] attempt with disabled portaudio termination --- modem/audio.py | 4 ++-- modem/config.py | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/modem/audio.py b/modem/audio.py index 1a1856a4..b4d2031d 100644 --- a/modem/audio.py +++ b/modem/audio.py @@ -28,8 +28,8 @@ def get_audio_devices(): # we need to reset and initialize sounddevice before running the multiprocessing part. # If we are not doing this at this early point, not all devices will be displayed - sd._terminate() - sd._initialize() + #sd._terminate() + #sd._initialize() # log.debug("[AUD] get_audio_devices") with multiprocessing.Manager() as manager: diff --git a/modem/config.py b/modem/config.py index 29dedc43..5da7ddbc 100644 --- a/modem/config.py +++ b/modem/config.py @@ -99,6 +99,9 @@ class CONFIG: # converts values of settings from String to Value. # For example 'False' (type String) will be converted to False (type Bool) + # This is also needed, because configparser reads configs as string + # configparser has a type conversion, but we would have to do this for every + # item. This approach is more flexible def convert_types(self, config): for setting in config: value = config[setting]