How can I retrieve the list of available hardware devices for the BUS? #26
|
Hello, I am currently writing a script using this class - which so far has been quite useful. I want to connect to a set of devices, but that set differs based on whether or not different bluetooth-devices are connected. Additionally, based on the list of available devices, I have to modify the settings for specific apps in the windows audio mixer. While this obviously isn't part of voicemeeter's task, it is part of the required setup - and thus the script needs to know which devices are available to begin with. I wouldn't have to do this if certain apps (looking at you, spotify and firefox) would actually allow me to set their audio-out device - but they don't. So far I could not figure out how to retrieve the available devices.
Is this possible? If not, can you think of any other way of retrieving this list? Thank you. |
Replies: 1 comment 1 reply
|
You can use BTW you don't need to manually call |
You can use
VMRBus.Deviceswhich is an array ofVMRDeviceobjects.BTW you don't need to manually call
VMR.UpdateDevices, as VMR will listen for device connections/disconnections and update the arrays automatically