wip: window size = default endpoints

This commit is contained in:
Hane 2024-04-17 16:00:01 +02:00
commit 76d0afe672
2 changed files with 19 additions and 15 deletions

View file

@ -248,7 +248,7 @@ Endpoint::Endpoint(IMMDevice* ep, uint64_t idx){
* Only shows most relevant flag according to MS, i.e. 0110 sends 0010
*/
//todo: preguntitas owindows dword no es uint32_t even tho mingw mingas
if(FAILED(endpoint->GetState(&this->endpointState))) {exit(-1);};
if(FAILED(endpoint->GetState(&this->endpointState))) {exit(-2);};
if(this->endpointState == EndpointState::ENDPOINT_ACTIVE) {
activateEndpointVolume();
@ -282,10 +282,6 @@ Endpoint::Endpoint(IMMDevice* ep, uint64_t idx){
}
}
/*
* Endpoint::Endpoint(IMMDevice* endpoint) : Endpoint(endpoint, 0) {};
*/
void Endpoint::activateEndpointSessions() {
//sessionManager;
if (FAILED(endpoint->Activate(__uuidof(IAudioSessionManager2), CLSCTX_ALL, NULL, (void**) &sessionManager))) { log_wdebugcpp(L"sesionbros..."); return; }
@ -421,7 +417,7 @@ Roles Endpoint::getRoles(){
}
void Endpoint::setRoles(Roles role){
//otro exe momento
//todo: otro exe momento
STARTUPINFOEXW startupConfig;
PROCESS_INFORMATION processInfo;
SecureZeroMemory(&startupConfig, sizeof(STARTUPINFOEXW));
@ -648,6 +644,7 @@ void Overseer::reloadEndpoints(Flows flow) {
captureDevices.at(j)->assignRoles((Roles)(1 << i));
}
}
}
}
}