Closed nospam2k closed 9 months ago
You're correct; this package doesn't interact with the OBS Studio app. Instead this package includes a custom-built obs64.exe, which runs in the background without an UI( as UI part be done in Electron). The line osn.NodeObs.IPC.host('gain-controller'); launches this background process. Then, the osn.NodeObs.OBS_API_initAPI call sets up the necessary communication between the Node module and the obs64.exe process.
ah ok.
I sorry for my question, but I can't seem to understand from playing with the code. I setup an example to get an audio device and the windows audio device was returned. My confusion is I renamed the OBS directory and it still worked. I'm not sure where initResult is coming from. Whatever it's doing, it seems it is not actually using OBS. Is it just working with config files? What is osn.NodeObs.OBS_API_initAPI actually doing? My end goal that led me here is I'm wanting to figure out how to listen for a change in the gain filter of an audio device by an end user. Here is my code: