ipatix/gba-hq-mixer

Game Crash

Closed this issue · 1 comments

Environment

Visual Boy Advance-M 2.1.1

Details

I tested this thoroughly using both the old sound engine (2.1) and the current engine (4.0). The following crash only happens with v4.0 both with and without the changes suggested here (the following video example is using the original code in the repo).

HQ.Music.Engine.v4.0.Crash.mp4

The disassembler shows an infinite increase now:

image

Additional Details

If it helps, the hq_buffer_ptr constant was set to 0x30028E0.

This occurs due to corruption of DMA registers.

If you do binary hacking, change ENABLE_DMA to 0. If you do decomp modding, make the DMA transfers atomic. Check this for instructions on how to do it: https://github.com/pret/pokeemerald/wiki/Implementing-ipatix%27s-High-Quality-Audio-Mixer