gitadora: arena cab volume change prevention (#478)

## Link to GitHub Issue, if one exists
#477 

## Description of change
Arena cab has two sound cards and it uses `WrappedIMMDeviceCollection`
to set the volume to 100% on boot on both, instead of the typical
`GetDefaultAudioEndpoint`.

## Testing
Testing Delta, testing other games as well as they are affected.
This commit is contained in:
bicarus-dev
2025-12-29 03:23:58 -08:00
committed by GitHub
parent 07a0df5fdc
commit 21f469b260
10 changed files with 130 additions and 3 deletions
+2 -1
View File
@@ -3,6 +3,7 @@
#include <vector>
#include "avs/game.h"
#include "games/gitadora/gitadora.h"
#include "util/detour.h"
#include "util/utils.h"
@@ -401,7 +402,7 @@ static BOOL WINAPI ClearCommError_hook(HANDLE hFile, LPDWORD lpErrors, LPCOMSTAT
// gitadora arena model needs this, or else
// the game will keep spamming 0xAA
if (avs::game::is_model("M32") && (avs::game::SPEC[0] == 'C' || avs::game::SPEC[0] == 'D') && lpErrors) {
if (games::gitadora::is_arena_model() && lpErrors) {
*lpErrors = 0;
}