Fix ADPCM filter mask

This commit is contained in:
allkern
2023-10-01 01:05:45 -03:00
parent 6057aff755
commit bf43cbd3c9
+1 -1
View File
@@ -123,7 +123,7 @@ void spu_read_block(psx_spu_t* spu, int v) {
spu->data[v].block_flags = spu->ram[addr + 1];
unsigned shift = 12 - (hdr & 0x0f);
unsigned filter = (hdr & 0x30) >> 4;
unsigned filter = (hdr >> 4) & 7;
int32_t f0 = g_spu_pos_adpcm_table[filter];
int32_t f1 = g_spu_neg_adpcm_table[filter];