#10829 - Daikath - Wed Sep 17, 2003 2:51 pm
I've tried to set the registers to play a GBC sound, sound 1 to be exact but when I play my emulator it won't let me hear anything.
I've set the hardware registers like this.
_________________
?There are no stupid questions but there are a LOT of inquisitive idiots.?
I've set the hardware registers like this.
Code: |
void soundplay(void) { REG_SOUND1CNT_L = 0x0074; REG_SOUND1CNT_H = 0xCC07; REG_SOUND1CNT_X = 0x05C0; } void AgbMain(void) { REG_SOUNDCNT_X = 0x80; REG_SOUNDCNT_L = 0x1177; REG_SOUNDCNT_H = 2; while(1) { soundplay(); } } |
_________________
?There are no stupid questions but there are a LOT of inquisitive idiots.?