From 8944e0c9549ef468efd2b5d1278650b892e9f2db Mon Sep 17 00:00:00 2001 From: meepingsnesroms Date: Thu, 11 Oct 2018 09:33:12 -0700 Subject: [PATCH] Update src/emulator.h --- src/emulator.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emulator.h b/src/emulator.h index 5e14bc4..0acde66 100644 --- a/src/emulator.h +++ b/src/emulator.h @@ -118,7 +118,7 @@ typedef struct{ //system constants #define CRYSTAL_FREQUENCY 32768 -#define AUDIO_SAMPLES (CRYSTAL_FREQUENCY / EMU_FPS * AUDIO_DUTY_CYCLE_SIZE) +#define AUDIO_SAMPLES (CRYSTAL_FREQUENCY * AUDIO_DUTY_CYCLE_SIZE / EMU_FPS) //emulator data, some are GUI interface variables, some should be left alone extern uint8_t* palmRam;//dont touch