- 222
- Posts
- 7
- Years
- Seen Nov 18, 2023
I have added a few fanfares to the table in sound.c and they play just fine. However, after they are finished playing, the map music will not resume. This bug will not go away until the player changes map music via warp or map transition.
Some things I know from debugging so far:
Is there some kind of special consideration I'm not seeing to make a fanfare work properly in the engine?
Some things I know from debugging so far:
- m4aMPlayContinue is being called properly after the fanfare ends, but it's not doing anything.
- sCurrentMapMusic remains unchanged, it's not being reset to MUS_DUMMY or anything.
- Built-in fanfares still work
- My .mid files aren't doing anything strange and I can't see any issues with the generated .s build artifacts, it looks valid. Although to be fair I don't have a great knowledge on the internal workings of mid2agb
Is there some kind of special consideration I'm not seeing to make a fanfare work properly in the engine?
Attachments
Last edited: