Skip to content

Commit

Permalink
adpcm: Don't abort on filter > 4 (Tekken3)
Browse files Browse the repository at this point in the history
  • Loading branch information
JaCzekanski committed Sep 19, 2023
1 parent d174949 commit 466acd7
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/sound/adpcm.cpp
Expand Up @@ -22,7 +22,6 @@ std::vector<int16_t> decode(uint8_t buffer[16], int32_t prevSample[2]) {
auto filter = (buffer[0] & 0x70) >> 4; // 0x40 for xa adpcm
if (shift > 12) shift = 9;

assert(filter <= 4);
if (filter > 4) filter = 4; // TODO: Not sure, check behaviour on real HW

auto filterPos = filterTablePos[filter];
Expand Down

0 comments on commit 466acd7

Please sign in to comment.