#162416 - sverx - Tue Sep 02, 2008 5:07 pm
Hi there. This time it's not a question... well, not a question about programming the DS at least ;)
The fact is that: it's since a couple of days I've been in struggle to find why -sometimes- sound samples weren't reproduced as they were expected. The problem in the beginning appeared randomly then I found a pattern: the problem appeared when playing some samples AFTER some others. Then I noticed the problem appeared only when playing a SOUND_ONE_SHOT sample after a SOUND_REPEAT one.
Well, so I added
to reset the repeat point, even if I thought that SCHANNEL_REPEAT_POINT was ignored in SOUND_ONE_SHOT mode.
Now it works (!!!). So, should I think that SCHANNEL_REPEAT_POINT(chn) value isn't ignored? And if it's not, does anybody of you knows the usage of this in the SOUND_ONE_SHOT case?
Thanks :)
The fact is that: it's since a couple of days I've been in struggle to find why -sometimes- sound samples weren't reproduced as they were expected. The problem in the beginning appeared randomly then I found a pattern: the problem appeared when playing some samples AFTER some others. Then I noticed the problem appeared only when playing a SOUND_ONE_SHOT sample after a SOUND_REPEAT one.
Well, so I added
Code: |
SCHANNEL_REPEAT_POINT(channel) = 0; |
to reset the repeat point, even if I thought that SCHANNEL_REPEAT_POINT was ignored in SOUND_ONE_SHOT mode.
Now it works (!!!). So, should I think that SCHANNEL_REPEAT_POINT(chn) value isn't ignored? And if it's not, does anybody of you knows the usage of this in the SOUND_ONE_SHOT case?
Thanks :)