obs-studio-node
obs-studio-node copied to clipboard
Rework device api
Description
Change to use Windows native API to enumerate available DSHOW devices.
Motivation and Context
The method of creating dummy devices to then enumerate through the properties (1) doesn't work well (2) create some issues on the side and (3) not good in terms of performance. We are effectively duplicating the device enum logic from OBS but that's ok since it's very isolate and relatively small.
How Has This Been Tested?
With QA and from the client to make sure we are correctly enumerating all the devices.
Types of changes
Performance enhancement (non-breaking change which improves efficiency)
Checklist:
- [X] The code has been tested.