From: Fred <fr...@sp...> - 2003-10-08 13:09:06
|
Hi, I am trying to add support for the Timex TS2068 and other NTSC models to Fuse and the sound is not quite working as well as I'd like. I have made the timer happen at 17ms for NTSC machines and added a patch like: --- sound.c 2003/07/16 20:40:24 1.7 +++ sound.c 2003/10/08 11:49:05 @@ -618,6 +615,7 @@ sound_ay_reset(void) { int f; + int hz = 50; /* as above... */ if (!sound_enabled_ever) @@ -632,6 +630,12 @@ for (f = 0; f < 3; f++) ay_tone_high[f] = 0; ay_tone_subcycles = ay_env_subcycles = 0; + + if( libspectrum_machine_capabilities( machine_current->machine ) & + LIBSPECTRUM_MACHINE_CAPABILITY_NTSC ) + hz = 60; + + sound_framesiz = sound_freq / hz; } The TS2068 machine timings are adjusted for the NTSC (262 lines), but I am still finding that the pitch of the beeper is different between the (NTSC) TS2068 and (PAL) TC2068. Do you think that there is anything that I'm missing to get the pitch the same? Fred |