Module: wine Branch: master Commit: 1728f82a2af115bb72aab8ce676ceb6fa491cc95 URL: https://gitlab.winehq.org/wine/wine/-/commit/1728f82a2af115bb72aab8ce676ceb6...
Author: Rémi Bernon rbernon@codeweavers.com Date: Mon Oct 16 19:07:07 2023 +0200
dmsynth: Correctly lookup instrument from the default drum bank.
---
dlls/dmsynth/synth.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/dlls/dmsynth/synth.c b/dlls/dmsynth/synth.c index 941fc465d17..5fcc1e9d075 100644 --- a/dlls/dmsynth/synth.c +++ b/dlls/dmsynth/synth.c @@ -1570,7 +1570,10 @@ static fluid_preset_t *synth_sfont_get_preset(fluid_sfont_t *fluid_sfont, int ba EnterCriticalSection(&synth->cs);
LIST_FOR_EACH_ENTRY(instrument, &synth->instruments, struct instrument, entry) - if (instrument->patch == patch) break; + { + if (bank == 128 && instrument->patch == (0x80000000 | patch)) break; + else if (instrument->patch == ((bank << 8) | patch)) break; + }
if (&instrument->entry == &synth->instruments) {