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 > Strange problem

#64073 - ProblemBaby - Mon Dec 19, 2005 3:11 am

Hi iam trying to use the hwchannels but Ive some really strange problems I took me a long time to figure out why it didnt work!
cause, if iam doing this in my arm7 main function (just for testing) it works perfectly.
Code:

REG_SOUNDCHNSAD(0) = 0x2000000;
REG_SOUNDCHNTMR(0) = (-0x1000000 / 10000);
REG_SOUNDCHNPNT(0) = 0x0;
REG_SOUNDCHNLEN(0) = 0x4000;
REG_SOUNDCHNCNT(0) = 0x9000007F


when I try to put this in a nice function its just quite!
What the hell is going on, iam not running out of memory, I do the exact same thing.

Help would be great!