View Single Post
June 6th, 2010, 06:02 AM
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 Feb 8:
What I do:
VBA-M with lua scripting support
Dysfunctional Systems Episode 1 Opening
When you don’t create things, you become defined by your tastes rather than ability.
View Public Profile
Send a private message to knizz
Find all posts by knizz
Find threads started by knizz