From a65137d6f2dc400c078041fd8f4e1e194f30fccd Mon Sep 17 00:00:00 2001 From: Damian Yerrick Date: Fri, 22 Mar 2024 18:03:56 -0400 Subject: [PATCH] GBA: libtonc ready for merge somehow a `make clean` solved the missing square waves fix #55 --- gba/src/soundtest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gba/src/soundtest.c b/gba/src/soundtest.c index e20d057..829b980 100644 --- a/gba/src/soundtest.c +++ b/gba/src/soundtest.c @@ -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]; @@ -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));