View Single Post
June 5th, 2010, 10:02 PM
Join Date: Aug 2007
Originally Posted by
Yes, I'm sure it's manageable. Though I don't think you have to go so far as calling the game's main loop just to get it to work. I would guess that remaining "inside" a callasm command for more than one frame might de-sync the game and screw things up but when I did something similar to this a while ago, I did it by returning from the "ASM level" to the "script level" each frame. So yeah, it's totally possible but you're going to need knowledge of ASM and a good chunk of time in order to pull it off.
Also, does the callasm command really stop the music? I thought that the sound data was copied over via DMA so that it would continue playing, which explains why people often describe the game freezing as "the screen goes black but I can still hear the music." :\
How did you switch to script-level in every frame?
In my case that's not useful because I want to draw something entirely different onto the screen.
Also the DMA alone can't be responsible for the music to continue.
1) The DMA-Buffer only holds enough samples for maybe half a second.
2) New samples have to be created from the notes in the same interval.
Probably it's because of a timer... (what else does this timer trigger?)
Firered IDA 6.1 DB:
VBA-M with lua scripting support
(no longer in development)
View Public Profile
Send a private message to knizz
Find all posts by knizz
Find threads started by knizz
Ignore Posts by knizz