Add a way to get default settings
- Implement a means of obtaining default settings for an input/output/encoder. obs_source_defaults for example will return the default settings for a particular source type. - Because C++ doesn't have designated initializers, use functions in the WASAPI plugin to register the sources instead.
This commit is contained in:
parent
e88ee06310
commit
7d48dbb1dc
11 changed files with 122 additions and 41 deletions
|
|
@ -2,12 +2,12 @@
|
|||
|
||||
OBS_DECLARE_MODULE()
|
||||
|
||||
extern struct obs_source_info wasapiInput;
|
||||
extern struct obs_source_info wasapiOutput;
|
||||
void RegisterWASAPIInput();
|
||||
void RegisterWASAPIOutput();
|
||||
|
||||
bool obs_module_load(uint32_t libobs_ver)
|
||||
{
|
||||
obs_register_source(&wasapiInput);
|
||||
obs_register_source(&wasapiOutput);
|
||||
RegisterWASAPIInput();
|
||||
RegisterWASAPIOutput();
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue