pimp_config.h 1.05 KB
Newer Older
1
2
3
4
5
/* pimp_config.h -- Compile-time configuration of Pimpmobile
 * Copyright (C) 2005-2006 Jrn Nystad and Erik Faye-Lund
 * For conditions of distribution and use, see copyright notice in LICENSE.TXT
 */

Erik Faye-Lund's avatar
Erik Faye-Lund committed
6
7
#ifndef PIMP_CONFIG_H
#define PIMP_CONFIG_H
8

9
10
11
#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
12
#define CHANNELS 8
13
14

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

18
/* only 130 bytes big, quite damn pleasing results */
Erik Faye-Lund's avatar
Erik Faye-Lund committed
19
#define AMIGA_DELTA_LUT_LOG_SIZE 7
20
21

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

Erik Faye-Lund's avatar
Erik Faye-Lund committed
26
/* enable / disable assert */
Erik Faye-Lund's avatar
Erik Faye-Lund committed
27
/*
Erik Faye-Lund's avatar
Erik Faye-Lund committed
28
29
#define DEBUG_PRINTF_ENABLED
#define ASSERT_ENABLED
Erik Faye-Lund's avatar
Erik Faye-Lund committed
30
*/
Erik Faye-Lund's avatar
Erik Faye-Lund committed
31

32
#define DEBUG_PRINTF_ENABLED
33
// #define ASSERT_ENABLED
34

Erik Faye-Lund's avatar
Erik Faye-Lund committed
35
#endif /* PIMP_CONFIG_H */