mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
attempt with disabled portaudio termination
This commit is contained in:
parent
d74dda0bc5
commit
03738bcb8f
2 changed files with 5 additions and 2 deletions
|
@ -28,8 +28,8 @@ def get_audio_devices():
|
||||||
|
|
||||||
# we need to reset and initialize sounddevice before running the multiprocessing part.
|
# 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
|
# If we are not doing this at this early point, not all devices will be displayed
|
||||||
sd._terminate()
|
#sd._terminate()
|
||||||
sd._initialize()
|
#sd._initialize()
|
||||||
|
|
||||||
# log.debug("[AUD] get_audio_devices")
|
# log.debug("[AUD] get_audio_devices")
|
||||||
with multiprocessing.Manager() as manager:
|
with multiprocessing.Manager() as manager:
|
||||||
|
|
|
@ -99,6 +99,9 @@ class CONFIG:
|
||||||
|
|
||||||
# converts values of settings from String to Value.
|
# converts values of settings from String to Value.
|
||||||
# For example 'False' (type String) will be converted to False (type Bool)
|
# 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):
|
def convert_types(self, config):
|
||||||
for setting in config:
|
for setting in config:
|
||||||
value = config[setting]
|
value = config[setting]
|
||||||
|
|
Loading…
Reference in a new issue