pimp_config.h 857 Bytes
Newer Older
Erik Faye-Lund's avatar
Erik Faye-Lund committed
1
2
#ifndef CONFIG_H
#define CONFIG_H
3

4
5
6
#define CYCLES_PR_FRAME 280896

/* 32 is the maximum amount of channels in fasttracker2. a nice default. */
Erik Faye-Lund's avatar
Erik Faye-Lund committed
7
#define CHANNELS 8
8
9

/* check the sample-rate calculator at http://www.pineight.com/gba/samplerates/ for more glitch-free samplerates */
10
/* 0x4000100 = 0xFFFF, 0x4000102 = 0x0083 */
Erik Faye-Lund's avatar
Erik Faye-Lund committed
11
#define SAMPLERATE (18157.16)
12

13
/* only 130 bytes big, quite damn pleasing results */
Erik Faye-Lund's avatar
Erik Faye-Lund committed
14
#define AMIGA_DELTA_LUT_LOG_SIZE 7
15
16

/* derivated settings. don't touch. */
17
#define SOUND_BUFFER_SIZE (CYCLES_PR_FRAME / ((int)((1 << 24) / SAMPLERATE)))
Erik Faye-Lund's avatar
Erik Faye-Lund committed
18
19
#define AMIGA_DELTA_LUT_SIZE (1 << AMIGA_DELTA_LUT_LOG_SIZE)
#define AMIGA_DELTA_LUT_FRAC_BITS (15 - AMIGA_DELTA_LUT_LOG_SIZE)
20

Erik Faye-Lund's avatar
Erik Faye-Lund committed
21
/* enable / disable assert */
Erik Faye-Lund's avatar
Erik Faye-Lund committed
22
/*
Erik Faye-Lund's avatar
Erik Faye-Lund committed
23
24
#define DEBUG_PRINTF_ENABLED
#define ASSERT_ENABLED
Erik Faye-Lund's avatar
Erik Faye-Lund committed
25
*/
Erik Faye-Lund's avatar
Erik Faye-Lund committed
26

27
#define DEBUG_PRINTF_ENABLED
28
// #define ASSERT_ENABLED
29

Erik Faye-Lund's avatar
Erik Faye-Lund committed
30
#endif /* CONFIG_H */