Skip to content

Commit 5e5e21e

Browse files
Move up definition.
1 parent 8223b6f commit 5e5e21e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/emulator.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,15 @@ static void debugLog(char* str, ...){};
4545
//config options
4646
#define EMU_FPS 60
4747
#define DBVZ_SYSCLK_PRECISION 2000000//the amount of cycles to run before adding SYSCLKs, higher = faster, higher values may skip timer events and lower audio accuracy
48+
4849
#define AUDIO_SAMPLE_RATE 48000
50+
#define AUDIO_SAMPLES_PER_FRAME (AUDIO_SAMPLE_RATE / EMU_FPS)
51+
4952
#define AUDIO_SPEAKER_RANGE 0x6000//prevent hitting the top or bottom of the speaker when switching direction rapidly
5053
#define SD_CARD_NCR_BYTES 1//how many 0xFF bytes come before the R1 response
5154
#define SAVE_STATE_VERSION 0x00000001
5255

5356
//shared constants
54-
#define AUDIO_SAMPLES_PER_FRAME (AUDIO_SAMPLE_RATE / EMU_FPS)
5557
#define SD_CARD_BLOCK_SIZE 512//all newer SDSC cards have this fixed at 512
5658
#define SD_CARD_BLOCK_DATA_PACKET_SIZE (1 + SD_CARD_BLOCK_SIZE + 2)
5759
#define SD_CARD_RESPONSE_FIFO_SIZE (SD_CARD_BLOCK_DATA_PACKET_SIZE * 3)

0 commit comments

Comments
 (0)