Arrgh!!!
Could anybody tell me what is the fraggin' problem with the sound
channel 3??? I've wasted a full day trying to make it work and all i
get is silence! What is very annoying is that all my emulators plays
the sound but not the real hardware!!! Here my code:
REG_SOUNDCNT_L=0xFF77; //all sounds to l&r output
REG_SOUNDCNT_H=0x02; //sound ratio=100%
REG_SOUNDCNT_X=0x008F; //turn on sound chip
REG_SOUND3CNT_L=0;
REG_WAVE_RAM0=0x01234567;
REG_WAVE_RAM1=0x89abcdef;
REG_WAVE_RAM2=0x01234567;
REG_WAVE_RAM3=0x89abcdef;
REG_SOUND3CNT_L=0x80; //sound 3 enable
REG_SOUND3CNT_H=0x2000; //sound 3 vol=max
REG_SOUND3CNT_X=0x8100; //sound 3 reset+freq
I'd like to mention that using -O2 optimizations with Gcc gave me
trouble with other sound channel because of instruction re-odering.
But I removed all optimization and I still have problems with chan 3.
Any help would be *greatly* appreciated, thanks!
Uze