Skip to content

Commit

Permalink
GBA: libtonc ready for merge
Browse files Browse the repository at this point in the history
somehow a `make clean` solved the missing square waves

fix #55
  • Loading branch information
pinobatch committed Mar 22, 2024
1 parent eee8e94 commit a65137d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gba/src/soundtest.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ typedef struct ChordVoice {
#define PCM_PERIOD 924 // 16777216 tstates/s / 18157 samples/s
#define PCM_BUF_LEN 304 // 280896 tstates/frame / PCM_PERIOD

EWRAM_BSS static signed short delayline[672];
EWRAM_BSS static signed short mixbuf[PCM_BUF_LEN];
EWRAM_BSS static signed char playbuf[2][PCM_BUF_LEN];

Expand All @@ -173,6 +172,7 @@ static const ChordVoice voices[PCM_NUM_VOICES] = {

IWRAM_CODE static void beepPCM(void) {
unsigned short phases[PCM_NUM_VOICES];
signed short delayline[672];
unsigned int frames = 0;

dma_memset16(delayline, 0, sizeof(delayline));
Expand Down

0 comments on commit a65137d

Please sign in to comment.