diff options
author | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-08-15 18:24:50 +0000 |
---|---|---|
committer | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-08-15 18:24:50 +0000 |
commit | 9477675f047aabf55490ea136d83c003bc330c84 (patch) | |
tree | 1b771cd110f809a10368913abac1bccfbb8ce038 /apps/codecs/libgme/ym2612_emu.h | |
parent | 4087875f1cf2677cc8542d7dd19cc3b4a8d26c2b (diff) | |
download | rockbox-9477675f047aabf55490ea136d83c003bc330c84.tar.gz rockbox-9477675f047aabf55490ea136d83c003bc330c84.zip |
Save some RAM in a libgme emulator used for VGM codec. LFO_ENV_TAB[] and LFO_FREQ_TAB[] are obselete.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30319 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libgme/ym2612_emu.h')
-rw-r--r-- | apps/codecs/libgme/ym2612_emu.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/codecs/libgme/ym2612_emu.h b/apps/codecs/libgme/ym2612_emu.h index 4b8b5c0e94..96e3eae94b 100644 --- a/apps/codecs/libgme/ym2612_emu.h +++ b/apps/codecs/libgme/ym2612_emu.h | |||
@@ -6,6 +6,10 @@ | |||
6 | 6 | ||
7 | #include "blargg_common.h" | 7 | #include "blargg_common.h" |
8 | 8 | ||
9 | #if !defined(ROCKBOX) | ||
10 | #define YM2612_CALCUL_TABLES | ||
11 | #endif | ||
12 | |||
9 | enum { ym2612_out_chan_count = 2 }; // stereo | 13 | enum { ym2612_out_chan_count = 2 }; // stereo |
10 | enum { ym2612_channel_count = 6 }; | 14 | enum { ym2612_channel_count = 6 }; |
11 | enum { ym2612_disabled_time = -1 }; | 15 | enum { ym2612_disabled_time = -1 }; |
@@ -164,9 +168,10 @@ struct tables_t | |||
164 | int LFO_INC_TAB [8]; // LFO step table | 168 | int LFO_INC_TAB [8]; // LFO step table |
165 | 169 | ||
166 | short ENV_TAB [2 * ENV_LENGHT + 8]; // ENV CURVE TABLE (attack & decay) | 170 | short ENV_TAB [2 * ENV_LENGHT + 8]; // ENV CURVE TABLE (attack & decay) |
167 | 171 | #ifdef YM2612_CALCUL_TABLES | |
168 | short LFO_ENV_TAB [LFO_LENGHT]; // LFO AMS TABLE (adjusted for 11.8 dB) | 172 | short LFO_ENV_TAB [LFO_LENGHT]; // LFO AMS TABLE (adjusted for 11.8 dB) |
169 | short LFO_FREQ_TAB [LFO_LENGHT]; // LFO FMS TABLE | 173 | short LFO_FREQ_TAB [LFO_LENGHT]; // LFO FMS TABLE |
174 | #endif | ||
170 | int TL_TAB [TL_LENGHT * 2]; // TOTAL LEVEL TABLE (positif and minus) | 175 | int TL_TAB [TL_LENGHT * 2]; // TOTAL LEVEL TABLE (positif and minus) |
171 | unsigned int DECAY_TO_ATTACK [ENV_LENGHT]; // Conversion from decay to attack phase | 176 | unsigned int DECAY_TO_ATTACK [ENV_LENGHT]; // Conversion from decay to attack phase |
172 | unsigned int FINC_TAB [2048]; // Frequency step table | 177 | unsigned int FINC_TAB [2048]; // Frequency step table |