1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

dmsynth: Correctly lookup instrument from the default drum bank.

This commit is contained in:
Rémi Bernon 2023-10-16 19:07:07 +02:00 committed by Alexandre Julliard
parent 7274902a3b
commit 1728f82a2a

View file

@ -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)
{