From ff26a772b25b384ee6ccffdea27930bf1e8c4377 Mon Sep 17 00:00:00 2001 From: SarahW Date: Sat, 3 Jun 2017 07:50:31 +0100 Subject: [PATCH] Corrected test on SB DSP command 0xf8. --- src/sound_sb_dsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sound_sb_dsp.c b/src/sound_sb_dsp.c index 1849711..5b2a326 100644 --- a/src/sound_sb_dsp.c +++ b/src/sound_sb_dsp.c @@ -507,7 +507,7 @@ void sb_exec_command(sb_dsp_t *dsp) sb_add_data(dsp, 0); break; case 0xF9: - if (dsp->sb_type < SB16) break; + if (dsp->sb_type >= SB16) break; if (dsp->sb_data[0] == 0x0e) sb_add_data(dsp, 0xff); else if (dsp->sb_data[0] == 0x0f) sb_add_data(dsp, 0x07); else if (dsp->sb_data[0] == 0x37) sb_add_data(dsp, 0x38);