Merge branch 'bugfix_AudioDevice' into develop
This commit is contained in:
commit
d80832fe34
1 file changed
+5
-1
@@ -377,9 +377,13 @@ class Model:
|
|||||||
def getListInputHost():
|
def getListInputHost():
|
||||||
return [host for host in getInputDevices().keys()]
|
return [host for host in getInputDevices().keys()]
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def getInputDefaultDevice():
|
||||||
|
return getInputDevices().get(config.CHOICE_MIC_HOST, [{"name": "NoDevice"}])[0]["name"]
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def getListInputDevice():
|
def getListInputDevice():
|
||||||
return [device["name"] for device in getInputDevices()[config.CHOICE_MIC_HOST]]
|
return [device["name"] for device in getInputDevices().get(config.CHOICE_MIC_HOST, [{"name": "NoDevice"}])]
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def getListOutputDevice():
|
def getListOutputDevice():
|
||||||
|
|||||||
Reference in new issue
Block a user