#56542 - Seddy - Sun Oct 09, 2005 4:00 pm
How can I check, if a modfile is played copletely,
so that it plays again, when it ends?
I'm using PAlib 0.60b.
#56576 - DekuTree64 - Sun Oct 09, 2005 9:58 pm
Hmm, I don't think there is any way to check it currently... Probably would be good to add though.
But if looping is all you need, then you can use a Bxx effect in the song to jump back to the start.
_________________
___________
The best optimization is to do nothing at all.
Therefore a fully optimized program doesn't exist.
-Deku
#56586 - Seddy - Sun Oct 09, 2005 11:17 pm
That's all I want.
Thanks!
#56588 - tepples - Sun Oct 09, 2005 11:42 pm
What if what you need is a way to synchronize the mod file to a sprite or polygon animation, in order to make a cut scene?
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.
#56591 - DekuTree64 - Mon Oct 10, 2005 12:18 am
You can set a callback function for the MOD player to call on E0x effects, and use that to set a variable in shared memory for ARM9 to check.
There's a function to set the callback from the ARM9 side, but be careful if you use that because the function will actually be run on the ARM7, so if it uses any ARM9-only instructions it may blow up :)
Probably what would be better is to set the callback pointer (sndMod.callback) directly from your own ARM7 code.
_________________
___________
The best optimization is to do nothing at all.
Therefore a fully optimized program doesn't exist.
-Deku
#56636 - Mollusk - Mon Oct 10, 2005 7:57 am
Seddy, if you do a simple function to loop... please share ;)
(I have no idea how to do that !)
_________________
PAlib official forum : http://www.palib.info
PAlib official tutorials: http://www.palib.info/wiki
Updates, help, code examples, tutorials, etc...
#56674 - Seddy - Mon Oct 10, 2005 4:09 pm
Mollusk wrote: |
Seddy, if you do a simple function to loop... please share ;)
(I have no idea how to do that !) |
It's pretty easy!
What you need:
-a mod file
-a mod editor(MODPlug Tracker: http://files1.sonicspot.com/modplugtracker/mpt109.zip)
-a brain^^
How to do:
-open MODPlug Tracker and load your mod
-go to "pattern", choose the last pattern and write "B00" after the last line of the song:
[Images not permitted - Click here to view it]
-save
Thats it!
B00 jumps to position 00 of the Song, and that's the beginning.
(In MODPlug Tracker it jumps to position 00 of the pattern, but on DS there are no patterns)
#56685 - Mollusk - Mon Oct 10, 2005 4:59 pm
I have a mod and a modfile editor... For the brains... well, I'll have to buy some :)
I thought we were talking about a function to make the mod loop, guess I misread ! :(
_________________
PAlib official forum : http://www.palib.info
PAlib official tutorials: http://www.palib.info/wiki
Updates, help, code examples, tutorials, etc...
#56706 - Seddy - Mon Oct 10, 2005 6:34 pm
The mod loops when you do that...
#56732 - Cidrick - Mon Oct 10, 2005 11:11 pm
Or you can use Bxx, where xx is the sequence you wish to return to. Nice for songs that have a two-pattern intro you'd like to skip with B02.
Quick question - is there a GBA function to adjust the volume of a MOD during playback, so I can fade the music in and out and under if necessary?