Module: wine Branch: master Commit: 02853687c204d63877294482427f3f98b62346bb URL: https://gitlab.winehq.org/wine/wine/-/commit/02853687c204d63877294482427f3f9...
Author: Anton Baskanov baskanov@gmail.com Date: Wed Nov 15 15:16:28 2023 +0700
dmsynth: Fall back to the Standard drum set when there is no matching instrument or region.
---
dlls/dmsynth/synth.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/dlls/dmsynth/synth.c b/dlls/dmsynth/synth.c index c4a19607544..ec9785c4218 100644 --- a/dlls/dmsynth/synth.c +++ b/dlls/dmsynth/synth.c @@ -1814,6 +1814,8 @@ static int synth_preset_noteon(fluid_preset_t *fluid_preset, fluid_synth_t *flui EnterCriticalSection(&synth->cs);
find_region(synth, preset->bank, preset->patch, key, vel, &instrument, ®ion); + if (!region && preset->bank == 128) + find_region(synth, preset->bank, 0, key, vel, &instrument, ®ion);
if (!instrument) {