From 0fe9b999532e12935cba1af9509fc36a46fb1c9c Mon Sep 17 00:00:00 2001 From: SarahW Date: Wed, 11 Apr 2018 15:22:35 +0100 Subject: [PATCH] SB16/AWE32 support SB2/Pro style high speed DMA commands, contrary to Creative Labs documentation. Fixes sound in Earthworm Jim. --- src/sound_sb_dsp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/sound_sb_dsp.c b/src/sound_sb_dsp.c index 0300c24..e17d1f1 100644 --- a/src/sound_sb_dsp.c +++ b/src/sound_sb_dsp.c @@ -499,19 +499,19 @@ void sb_exec_command(sb_dsp_t *dsp) timer_update_outstanding(); break; case 0x90: /*High speed 8-bit autoinit DMA output*/ - if (dsp->sb_type < SB2 || dsp->sb_type > SBPRO2) break; + if (dsp->sb_type < SB2) break; sb_start_dma(dsp, 1, 1, 0, dsp->sb_8_autolen); break; case 0x91: /*High speed 8-bit single cycle DMA output*/ - if (dsp->sb_type < SB2 || dsp->sb_type > SBPRO2) break; + if (dsp->sb_type < SB2) break; sb_start_dma(dsp, 1, 0, 0, dsp->sb_8_autolen); break; case 0x98: /*High speed 8-bit autoinit DMA input*/ - if (dsp->sb_type < SB2 || dsp->sb_type > SBPRO2) break; + if (dsp->sb_type < SB2) break; sb_start_dma_i(dsp, 1, 1, 0, dsp->sb_8_autolen); break; case 0x99: /*High speed 8-bit single cycle DMA input*/ - if (dsp->sb_type < SB2 || dsp->sb_type > SBPRO2) break; + if (dsp->sb_type < SB2) break; sb_start_dma_i(dsp, 1, 0, 0, dsp->sb_8_autolen); break; case 0xA0: /*Set input mode to mono*/