Previous 199869 Revisions Next

r40554 Sunday 30th August, 2015 at 20:36:38 UTC by Jonathan Gevaryahu
TMS5110: Add same FAST_START_HACK as in tms5220, makes snmath word delay closer to hardware. [Lord Nightmare]
[src/emu/sound]tms5110.c

trunk/src/emu/sound/tms5110.c
r249065r249066
7878//define INTERP_SHIFT / (1<<m_coeff->interp_coeff[m_IP])
7979
8080/* Other hacks */
81/* HACK?: if defined, outputs the low 4 bits of the lattice filter to the i/o
81/* HACK: if defined, outputs the low 4 bits of the lattice filter to the i/o
8282 * or clip logic, even though the real hardware doesn't do this, partially verified by decap */
8383#undef ALLOW_4_LSB
8484
85/* forces m_TALK active instantly whenever m_SPEN would be activated, causing speech delay to be reduced by up to one frame time */
86/* for some reason, this hack makes snmath behave marginally more accurate to hardware, though it does not match the patent */
87#define FAST_START_HACK 1
8588
89
8690/* *****configuration of chip connection stuff***** */
8791/* must be defined; if 0, output the waveform as if it was tapped on the speaker pin as usual, if 1, output the waveform as if it was tapped on the i/o pin (volume is much lower in the latter case) */
8892#define FORCE_DIGITAL 0
r249065r249066
851855#endif
852856               perform_dummy_read();
853857               m_SPEN = 1; /* start immediately */
858#ifdef FAST_START_HACK
859               m_TALK = 1;
860#endif
854861               /* clear out variables before speaking */
855862               m_zpar = 1; // zero all the parameters
856863               m_uv_zpar = 1; // zero k4-k10 as well
r249065r249066
886893#endif
887894               perform_dummy_read();
888895               m_SPEN = 1; /* start immediately */
896#ifdef FAST_START_HACK
897               m_TALK = 1;
898#endif
889899               /* clear out variables before speaking */
890900               m_zpar = 1; // zero all the parameters
891901               m_uv_zpar = 1; // zero k4-k10 as well


Previous 199869 Revisions Next


© 1997-2024 The MAME Team