gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > how to Loop music in mikmod

#163043 - wink99_th - Sat Sep 20, 2008 10:32 am

I try to play music (.mod format) with mikmod lib. I run "mikmod_test". It is ok . it is loop music forever. But when I changed music data at "mikmod_test\arm9\data\module.bin". it play sound correctly but not repeat. Could you tell me what is wrong? i check module->loop = 1
and sourcecode here www.thaigcc.com/nds/mikmod_test.7z

#163044 - Dwedit - Sat Sep 20, 2008 10:33 am

Maybe modify the mod files to include a loop?
_________________
"We are merely sprites that dance at the beck and call of our button pressing overlord."

#163053 - wink99_th - Sat Sep 20, 2008 2:31 pm

Thank you Dwedit.
I see in file module.bin(original file). It has code B and A at line 0x29.
So I change the music in this way. It's work ! :D

#163055 - gauauu - Sat Sep 20, 2008 4:40 pm

Mikmod's module struct also has a wrap member, which, when set to true, made my mod loop when it wouldn't before.