Describe the bug
Windows only gets the default device on app launch. In our app we ask the user to plug in headphones. Even though the headphones are the default device Windows, the plugin always sets the built-in speakers' volume.
This only happens if headphones are plugged-in after app launch. If the headphones are already plugged-in on app launch then it works as expected.
Plugin version
To Reproduce
Steps to reproduce the behavior:
Start the example app, plug headphones into your machine, set them as default in system settings and try to set the volume through this plugin.
Expected behavior
The default device should be fetched again before each operation. macOS works correctly. Linux was not tested.
Platform (please complete the following information):
Describe the bug
Windows only gets the default device on app launch. In our app we ask the user to plug in headphones. Even though the headphones are the default device Windows, the plugin always sets the built-in speakers' volume.
This only happens if headphones are plugged-in after app launch. If the headphones are already plugged-in on app launch then it works as expected.
Plugin version
To Reproduce
Steps to reproduce the behavior:
Start the example app, plug headphones into your machine, set them as default in system settings and try to set the volume through this plugin.
Expected behavior
The default device should be fetched again before each operation. macOS works correctly. Linux was not tested.
Platform (please complete the following information):