diff --git a/src/emu/sound/tms5110.c b/src/emu/sound/tms5110.c index 24f0c861c64..f6d31c6eb6c 100644 --- a/src/emu/sound/tms5110.c +++ b/src/emu/sound/tms5110.c @@ -65,19 +65,7 @@ #include "tms5110.h" #define MAX_SAMPLE_CHUNK 512 - -#define MAX_K 10 -#define MAX_SCALE_BITS 6 -#define MAX_SCALE (1< 9 bits+sign, 2's comp. fractional (-1 < x < 1) */ +/* TMS51xx and TMS52xx ROM Tables */ /* The following table is assumed to be for TMS5100 * @@ -35,10 +33,38 @@ /* quick note on derivative analysis: Judging by all the TI chips I (Lord Nightmare) have done this test on, the first derivative between successive values of the LPC tables should follow a roughly triangular or sine shaped curve, the second derivative should start at a value, increase slightly, then decrease smoothly and become negative right around where the LPC curve passes 0, finally increase slightly right near the end. If it doesn't do this, there is probably a wrong value in there somewhere. The pitch and energy tables follow similar patterns but aren't the same since they never cross 0. The chirp table doesn't follow this pattern at all. */ +/* chip type defines */ +#define SUBTYPE_TMS5100 1 +#define SUBTYPE_M58817 2 +#define SUBTYPE_TMS5110 4 +#define SUBTYPE_TMS5200 8 +#define SUBTYPE_TMS5220 16 +#define SUBTYPE_TMS5220C 32 +/* coefficient defines */ +#define MAX_K 10 +#define MAX_SCALE_BITS 6 +#define MAX_SCALE (1<