Remove 'locale' parameter from all callbacks
The locale parameter was a mistake, because it puts extra needless burden upon the module developer to have to handle this variable for each and every single callback function. The parameter is being removed in favor of a single centralized module callback function that specifically updates locale information for a module only when needed.
This commit is contained in:
parent
74b4743bce
commit
0b4a259e56
38 changed files with 125 additions and 160 deletions
|
|
@ -416,13 +416,13 @@ DWORD WINAPI WASAPISource::CaptureThread(LPVOID param)
|
|||
|
||||
/* ------------------------------------------------------------------------- */
|
||||
|
||||
static const char *GetWASAPIInputName(const char *locale)
|
||||
static const char *GetWASAPIInputName(void)
|
||||
{
|
||||
/* TODO: translate */
|
||||
return "Audio Input Capture (WASAPI)";
|
||||
}
|
||||
|
||||
static const char *GetWASAPIOutputName(const char *locale)
|
||||
static const char *GetWASAPIOutputName(void)
|
||||
{
|
||||
/* TODO: translate */
|
||||
return "Audio Output Capture (WASAPI)";
|
||||
|
|
@ -466,7 +466,7 @@ static void UpdateWASAPISource(void *obj, obs_data_t settings)
|
|||
static_cast<WASAPISource*>(obj)->Update(settings);
|
||||
}
|
||||
|
||||
static obs_properties_t GetWASAPIProperties(const char *locale, bool input)
|
||||
static obs_properties_t GetWASAPIProperties(bool input)
|
||||
{
|
||||
obs_properties_t props = obs_properties_create();
|
||||
vector<AudioDeviceInfo> devices;
|
||||
|
|
@ -494,14 +494,14 @@ static obs_properties_t GetWASAPIProperties(const char *locale, bool input)
|
|||
return props;
|
||||
}
|
||||
|
||||
static obs_properties_t GetWASAPIPropertiesInput(const char *locale)
|
||||
static obs_properties_t GetWASAPIPropertiesInput(void)
|
||||
{
|
||||
return GetWASAPIProperties(locale, true);
|
||||
return GetWASAPIProperties(true);
|
||||
}
|
||||
|
||||
static obs_properties_t GetWASAPIPropertiesOutput(const char *locale)
|
||||
static obs_properties_t GetWASAPIPropertiesOutput(void)
|
||||
{
|
||||
return GetWASAPIProperties(locale, false);
|
||||
return GetWASAPIProperties(false);
|
||||
}
|
||||
|
||||
void RegisterWASAPIInput()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue