From 500b2bc855900db2657700548c551d7daca44e29 Mon Sep 17 00:00:00 2001 From: TC1995 Date: Mon, 16 Oct 2017 19:38:39 +0200 Subject: [PATCH] Re-added write SB MIDI routine in reg 0xC of sb_write(). --- src/sound/snd_sb_dsp.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/sound/snd_sb_dsp.c b/src/sound/snd_sb_dsp.c index 596dc7436..e26c93f78 100644 --- a/src/sound/snd_sb_dsp.c +++ b/src/sound/snd_sb_dsp.c @@ -660,6 +660,12 @@ void sb_write(uint16_t a, uint8_t v, void *priv) dsp->sbreset = v; return; case 0xC: /*Command/data write*/ + if (dsp->uart_midi || dsp->onebyte_midi) + { + midi_write(v); + dsp->onebyte_midi = 0; + return; + } timer_process(); dsp->wb_time = TIMER_USEC * 1LL; dsp->wb_full = 1LL;