diff options
Diffstat (limited to 'src/apu.c')
-rw-r--r-- | src/apu.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -17,6 +17,7 @@ WITH REGARD TO THIS SOFTWARE. | |||
17 | // the pitch table is multiplied by the sampling rate of the original sample, | 17 | // the pitch table is multiplied by the sampling rate of the original sample, |
18 | // the resulting value will be the increment per VSYNC, which must be shifted | 18 | // the resulting value will be the increment per VSYNC, which must be shifted |
19 | // AUDIO_INC_PRECISION to obtain a (20.12) fixed-point increment value. | 19 | // AUDIO_INC_PRECISION to obtain a (20.12) fixed-point increment value. |
20 | // | ||
20 | #if defined(AUDIO_HIFI) | 21 | #if defined(AUDIO_HIFI) |
21 | #define AUDIO_FREQ 40137 | 22 | #define AUDIO_FREQ 40137 |
22 | #define AUDIO_BUF_LEN 672 | 23 | #define AUDIO_BUF_LEN 672 |
@@ -44,7 +45,7 @@ static u16 pitch_table[120] = { | |||
44 | #define AUDIO_BUF_LEN 96 | 45 | #define AUDIO_BUF_LEN 96 |
45 | #define AUDIO_TIMER 62610 | 46 | #define AUDIO_TIMER 62610 |
46 | #define AUDIO_INC_PRECISION 4 | 47 | #define AUDIO_INC_PRECISION 4 |
47 | static u16 pitch_table[120] = { | 48 | static u32 pitch_table[120] = { |
48 | 93, 98, 104, 111, 117, 124, 132, 139, | 49 | 93, 98, 104, 111, 117, 124, 132, 139, |
49 | 148, 157, 166, 176, 186, 197, 209, 222, | 50 | 148, 157, 166, 176, 186, 197, 209, 222, |
50 | 235, 249, 264, 279, 296, 314, 332, 352, | 51 | 235, 249, 264, 279, 296, 314, 332, 352, |