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 > Mod music very weird on the DS

#90535 - HtheB - Fri Jun 30, 2006 5:52 pm

Hi,
I want to ask something...

Tassu is making a project.. (will release soon)
I made some mods but.. if we add a mod music..
it will be different then actually..
why is that so? (its sounds very weird on the DS)

any ideas?

#90564 - josath - Fri Jun 30, 2006 8:57 pm

I think it depends how you are playing the mod. Does your mod use features that your mod player does not support? Perhaps there are some bugs in your mod player?

Mod is not a solid block of sound, like mp3, wav, ogg, etc, it just stores samples, and then info saying things like "play this sound, at this pitch, for this long" etc. Therefore, it is very possible that it can sound different, if the instructions are interpreted differently.

#90567 - sniper - Fri Jun 30, 2006 9:19 pm

Usually this happen when the mod player does not support all effect commands. So find out which theys are and simply does not use it in you mods or ask your coder to fix the mod player ;)

good way to test a mod player is playing some chip tunes which usually use alot fx's

#90651 - HtheB - Sat Jul 01, 2006 2:27 pm

I made my own mod files (chip tunes yes)

hmm.. I just cant figure it out O_o

#90682 - DekuTree64 - Sat Jul 01, 2006 7:11 pm

Is it like some samples are playing at the wrong pitch when looping? Probably is caused by the word-alignment requirement of the DS sound hardware. Try padding the start of the data with zeroes until the loop start point lands on a word boundary, and then unroll the loop until the end also lands on a word boundary.
_________________
___________
The best optimization is to do nothing at all.
Therefore a fully optimized program doesn't exist.
-Deku

#90713 - HtheB - Sat Jul 01, 2006 10:40 pm

DekuTree64 wrote:
Is it like some samples are playing at the wrong pitch when looping? Probably is caused by the word-alignment requirement of the DS sound hardware. Try padding the start of the data with zeroes until the loop start point lands on a word boundary, and then unroll the loop until the end also lands on a word boundary.
it loops very well.. but.. it sounds like some sounds are louder (which is not on the PC)

#90728 - tepples - Sun Jul 02, 2006 1:12 am

Are you using both volume and pan? The DS interprets them differently from Modplug, and a modplayer that doesn't compensate for this will play center sounds louder.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#90759 - HtheB - Sun Jul 02, 2006 8:20 am

tepples wrote:
Are you using both volume and pan? The DS interprets them differently from Modplug, and a modplayer that doesn't compensate for this will play center sounds louder.
so I shouldnt make it stereo???
(yes.. I use ModPlug and MadTracker II but what do I need to change, so it will work the same on the DS?)

#91056 - HtheB - Tue Jul 04, 2006 9:47 am

We use PAlib for the mod sounds.. I heard there are bugs in it.. anyone knows how to fix this? :(