make MIDIOUTCAPS format-agnostic (#1471)

Signed-off-by: Ramen2X <contact@ramen2x.com>
This commit is contained in:
Ramen2X 2025-05-11 19:02:41 -04:00 committed by GitHub
parent 2b3e7176d3
commit 38e3ecb1c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -216,8 +216,8 @@ MxResult MxMusicManager::InitializeMIDI(MxU8* p_data, MxS32 p_loopCount)
MxU32 device = 0;
for (; device < total; device++) {
MIDIOUTCAPSA caps;
midiOutGetDevCaps(device, &caps, sizeof(MIDIOUTCAPSA));
MIDIOUTCAPS caps;
midiOutGetDevCaps(device, &caps, sizeof(MIDIOUTCAPS));
if (caps.wTechnology == MOD_FMSYNTH) {
break;
}