mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-04-30 11:24:10 -04:00
clang-format: Increase column limit from 80 to 120
This commit is contained in:
@@ -24,12 +24,9 @@ string GetDeviceName(IMMDevice *device)
|
||||
size_t len = wcslen(nameVar.pwszVal);
|
||||
size_t size;
|
||||
|
||||
size = os_wcs_to_utf8(nameVar.pwszVal, len, nullptr,
|
||||
0) +
|
||||
1;
|
||||
size = os_wcs_to_utf8(nameVar.pwszVal, len, nullptr, 0) + 1;
|
||||
device_name.resize(size);
|
||||
os_wcs_to_utf8(nameVar.pwszVal, len, &device_name[0],
|
||||
size);
|
||||
os_wcs_to_utf8(nameVar.pwszVal, len, &device_name[0], size);
|
||||
PropVariantClear(&nameVar);
|
||||
}
|
||||
}
|
||||
@@ -44,15 +41,12 @@ static void GetWASAPIAudioDevices_(vector<AudioDeviceInfo> &devices, bool input)
|
||||
UINT count;
|
||||
HRESULT res;
|
||||
|
||||
res = CoCreateInstance(__uuidof(MMDeviceEnumerator), NULL, CLSCTX_ALL,
|
||||
__uuidof(IMMDeviceEnumerator),
|
||||
res = CoCreateInstance(__uuidof(MMDeviceEnumerator), NULL, CLSCTX_ALL, __uuidof(IMMDeviceEnumerator),
|
||||
(void **)enumerator.Assign());
|
||||
if (FAILED(res))
|
||||
throw HRError("Failed to create enumerator", res);
|
||||
|
||||
res = enumerator->EnumAudioEndpoints(input ? eCapture : eRender,
|
||||
DEVICE_STATE_ACTIVE,
|
||||
collection.Assign());
|
||||
res = enumerator->EnumAudioEndpoints(input ? eCapture : eRender, DEVICE_STATE_ACTIVE, collection.Assign());
|
||||
if (FAILED(res))
|
||||
throw HRError("Failed to enumerate devices", res);
|
||||
|
||||
@@ -93,7 +87,6 @@ void GetWASAPIAudioDevices(vector<AudioDeviceInfo> &devices, bool input)
|
||||
GetWASAPIAudioDevices_(devices, input);
|
||||
|
||||
} catch (HRError &error) {
|
||||
blog(LOG_WARNING, "[GetWASAPIAudioDevices] %s: %lX", error.str,
|
||||
error.hr);
|
||||
blog(LOG_WARNING, "[GetWASAPIAudioDevices] %s: %lX", error.str, error.hr);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user