mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-01 22:30:42 -07:00
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:
@@ -3,6 +3,7 @@
|
||||
#include "bi2x_hook.h"
|
||||
#include <unordered_map>
|
||||
#include "cfg/configurator.h"
|
||||
#include "hooks/audio/mme.h"
|
||||
#include "hooks/graphics/graphics.h"
|
||||
#include "util/cpuutils.h"
|
||||
#include "util/detour.h"
|
||||
@@ -236,6 +237,9 @@ namespace games::gitadora {
|
||||
|
||||
// test/service/coin buttons
|
||||
bi2x_hook_init();
|
||||
|
||||
// volume change prevention
|
||||
hooks::audio::mme::init(avs::game::DLL_INSTANCE);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -31,4 +31,11 @@ namespace games::gitadora {
|
||||
);
|
||||
}
|
||||
|
||||
static inline bool is_arena_model() {
|
||||
return (
|
||||
avs::game::is_model("M32") &&
|
||||
(avs::game::SPEC[0] == 'C' || avs::game::SPEC[0] == 'D')
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user