summaryrefslogtreecommitdiff
path: root/apps/codecs/libgme/ym2612_emu.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/libgme/ym2612_emu.h')
-rw-r--r--apps/codecs/libgme/ym2612_emu.h7
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
9enum { ym2612_out_chan_count = 2 }; // stereo 13enum { ym2612_out_chan_count = 2 }; // stereo
10enum { ym2612_channel_count = 6 }; 14enum { ym2612_channel_count = 6 };
11enum { ym2612_disabled_time = -1 }; 15enum { 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