mirror of
https://github.com/holub/mame
synced 2025-05-24 14:56:21 +03:00
Minor change for experimentation. Will soon be revamping debug stuff to print a running diagram of interpolations, etc for each sample or frame. Try undefining NORMALMODE and see if it sounds more correct... no whatsnew.
This commit is contained in:
parent
764e72f5c2
commit
97ac135b0b
@ -365,6 +365,7 @@ void tms5220_set_variant(tms5220_state *tms, int variant)
|
|||||||
break;
|
break;
|
||||||
case TMS5220_IS_5200:
|
case TMS5220_IS_5200:
|
||||||
tms->coeff = &tms5200_coeff;
|
tms->coeff = &tms5200_coeff;
|
||||||
|
//tms->coeff = &pat4335277_coeff;
|
||||||
break;
|
break;
|
||||||
case TMS5220_IS_5220:
|
case TMS5220_IS_5220:
|
||||||
tms->coeff = &tms5220_coeff;
|
tms->coeff = &tms5220_coeff;
|
||||||
@ -893,7 +894,12 @@ static void tms5220_process(tms5220_state *tms, INT16 *buffer, unsigned int size
|
|||||||
else /*tms->pitch_count <= 50*/
|
else /*tms->pitch_count <= 50*/
|
||||||
tms->excitation_data = tms->coeff->chirptable[tms->pitch_count]<<CHIRPROM_LEFTSHIFT;
|
tms->excitation_data = tms->coeff->chirptable[tms->pitch_count]<<CHIRPROM_LEFTSHIFT;
|
||||||
#else
|
#else
|
||||||
tms->excitation_data = tms->pitch_count - 64;
|
if (tms->pitch_count > 40)
|
||||||
|
tms->excitation_data = -128; // tms->coeff->chirptable[51];
|
||||||
|
else /*tms->pitch_count <= 40*/
|
||||||
|
tms->excitation_data = tms->coeff->chirptable[tms->pitch_count];
|
||||||
|
//tms->excitation_data = tms->pitch_count - 64;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -917,14 +923,10 @@ static void tms5220_process(tms5220_state *tms, INT16 *buffer, unsigned int size
|
|||||||
|
|
||||||
size--;
|
size--;
|
||||||
tms->sample_count = (tms->sample_count + 1) % 200;
|
tms->sample_count = (tms->sample_count + 1) % 200;
|
||||||
#ifdef NORMALMODE
|
|
||||||
if (tms->current_pitch != 0)
|
if (tms->current_pitch != 0)
|
||||||
tms->pitch_count = (tms->pitch_count + 1) % tms->current_pitch;
|
tms->pitch_count = (tms->pitch_count + 1) % tms->current_pitch;
|
||||||
else
|
else
|
||||||
tms->pitch_count = 51; // blank spot in the chirp rom
|
tms->pitch_count = 51; // forced to blank spot in the chirp rom
|
||||||
#else
|
|
||||||
tms->pitch_count = (tms->pitch_count + 1) % 128;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
tms->interp_count = (tms->interp_count + 1) % 25;
|
tms->interp_count = (tms->interp_count + 1) % 25;
|
||||||
buf_count++;
|
buf_count++;
|
||||||
|
Loading…
Reference in New Issue
Block a user