Accessing audio setting with a self made plugin

proxypunk

New Member
Dear OBS dev team and plugin development insiders,
I'm doing my first steps coding an OBS plugin.
I even managed to get the great OBS plugin template running (log file output working fine).

But now my researches have come to an end - I'm stuck.
I'm just planning a little tool that does a simple audio check (is the set audio device valid).

When I tried to look up the audio config in the configuration .ini files i had a strange discovery:
The monitoring device is saved correctly in the [Audio] section as MonitoringDeviceId= and MonitoringDeviceName= .
But there is no entry for Desktop-Audio (+2)/ AUX-Audio (+2,3,4) although the device gets saved.
Where is it stored in? I already tried to search for the name of the device with notepad++ in all files.
Of course this is just for me to understand the configuration mechanism...

Ultimatively I'd love to know how I can read out the audio devices (Input and Output) from OBS-settings from inside a plugin.
I tried....
config_t *config = obs_frontend_get_profile_config();
const char *desktop1 = config_get_string(config, "Audio", "Basic.DesktopDevice1"); // for getting Desktop-Audio setting
...but with "null" as a result (found "Basic.DesktopDevice1" in locale and in OBSBasicSettings.cpp).

Thank you so very much in advance!
 
Top