mupen64plus / mupen64plus-core

Core module of the Mupen64Plus project
1.32k stars 258 forks source link

3 LSBs of AI Length must be 0 #960

Closed loganmc10 closed 2 years ago

loganmc10 commented 2 years ago

The 3 least significant bits of the AI_LEN register are expected to be 0.

See this test ROM: https://www.dropbox.com/sh/am52g0hpfqh71ll/AACKhhfaijdnH1gsFAaSjr0ia/lossless?dl=0&subfolder_nav_tracking=1

Audio doesn't work without this fix

Ares: https://github.com/ares-emulator/ares/blob/3767568cdbe0ad7f18782c2bd03e022b8feec841/ares/n64/ai/io.cpp#L36 CEN64: https://github.com/n64dev/cen64/blob/73ad38ca3fe1fcf46362158ac1c088cda52f0cf0/ai/controller.c#L217