const std::vector<std::wstring> endpoints,
bool isAllowList)
{
+ winAudio_->MuteSpecificEndpoints(true);
winAudio_->SetManagedEndpoints(endpoints, isAllowList);
}
}
} else {
if (!SetWindowTextW(hDlg, L"Edit endpoint") ||
- !SetWindowTextW(GetDlgItem(hDlg, IDC_BT_DEVICE_NAME),
+ !SetWindowTextW(GetDlgItem(hDlg, IDC_ENDPOINT_NAME),
endpointData->name.c_str())) {
PrintWindowsError(L"SetWindowText", GetLastError());
return FALSE;
}
Edit_LimitText(hEndpointName, ENDPOINT_NAME_MAX_LEN);
- if (GetDlgCtrlID(reinterpret_cast<HWND>(wParam)) != IDC_BT_DEVICE_NAME) {
+ if (GetDlgCtrlID(reinterpret_cast<HWND>(wParam)) != IDC_ENDPOINT_NAME) {
SetFocus(hEndpointName);
return FALSE;
}
// ------------+----------+-------------+
// Allow List | Mute | Not mute |
// Block List | Not mute | Mute |
+
return inManagedEndpoints
? muteSpecificEndpointsAllowList_
: !muteSpecificEndpointsAllowList_;