defaults working as expected. bruh

This commit is contained in:
Hane 2023-09-05 19:42:30 +02:00
commit fc63875851
3 changed files with 70 additions and 35 deletions

View file

@ -295,7 +295,13 @@ void Endpoint::setRoles(Roles role){
std::wstring command = L"SoundVolumeView.exe /SetDefault " + endpointId + L" ";
switch (role) {
case Roles::ROLE_ALL:
command += L"all";
/*
* one sends both, at least for now;
* either cos of ms or dis guy, no choice
* but to treat them as one for now
* command += L"all";
*/
command += L"0 1";
break;
case Roles::ROLE_CONSOLE:
command += std::to_wstring(0);