Ah HBlank interrupts.. You could allow nesting in the vcount interrupt so the hblank interrupts don't get missed (I don't suppose you're doing anything sound related in them).
void vcount(void)
{
REG_IME = 1; // allow interruption
if( !sound_locked )
mmFrame();
else
sound_needs_update=1;
}
Search found 65 matches
- Sun Dec 14, 2008 12:10 am
- Forum: maxmod
- Topic: Best way to get clean sound below 60fps?
- Replies: 3
- Views: 8235
- Sat Dec 13, 2008 4:24 pm
- Forum: maxmod
- Topic: Best way to get clean sound below 60fps?
- Replies: 3
- Views: 8235
Re: Best way to get clean sound below 60fps?
Huh, that code should work okay...
Only threat I see is if a VBlank interrupt occurs between mmSetVBlankHandler(NULL) and VBlankIntrWait(); which isn't very likely to happen.
Does it make a constant distortion noise when the framerate drops? How much work are you doing inside "// Update GBA HW ...
Only threat I see is if a VBlank interrupt occurs between mmSetVBlankHandler(NULL) and VBlankIntrWait(); which isn't very likely to happen.
Does it make a constant distortion noise when the framerate drops? How much work are you doing inside "// Update GBA HW ...
- Sat Dec 13, 2008 5:49 am
- Forum: DS/DSi Development
- Topic: console over background in MODE_5_2d doesn't work
- Replies: 8
- Views: 12592
Re: console over background in MODE_5_2d doesn't work
What color depth does the PCX have? You say it uses up 128k of VRAM A, which is the entire bank. A 256x192 16bpp image will use 96KB of memory, leaving you with 32k for the console. BG_MAP_BASE(24) will start at the 48k mark, which is still inside the 96k for the 16bpp image.
- Sat Dec 13, 2008 5:21 am
- Forum: maxmod
- Topic: Maxmod conversion problem (inaccurrate .IT conversion)
- Replies: 7
- Views: 16016
Re: Maxmod conversion problem (inaccurrate .IT conversion)
Hm, interesting bug there. I made a quick test and couldn't get the error to reproduce. Could you upload one of the modules somewhere or e-mail one to [email protected] so I can check it out? Thanks.
- Fri Dec 12, 2008 6:29 am
- Forum: maxmod
- Topic: Missing .inc files from source
- Replies: 1
- Views: 4932
Re: Missing .inc files from source
Your welcome.massaro wrote:Anyway, thanks again. Great work!

Ah, looks like that folder got missed, thanks for letting us know.massaro wrote:doesn't seem to include the "asm_include" directory...