MAMEWorld >> Programming
View all threads Index   Flat Mode Flat  

R. Belmont
Cuckoo for IGAvania
Reged: 09/21/03
Posts: 9711
Loc: ECV-197 The Orville
Send PM
Re: GTIClub
01/28/13 11:48 PM


I'll save you the trouble and reject this patch right here ;-) Don't worry, it's pretty easy to fix. And don't forget recordings from your PCBs showing that this actually improves things.

(Aside: the 056800, which Konami calls MIRAC, is a "mailslot" chip; it allows the sound 68000 to communicate with the main CPU, and was first used on System GX. Music sequencing is done entirely in software on the 68000).

attotime timer_period = attotime::from_hz(46000) * 128; // not sure what this is in usec but sounds correct

Digital logic can't derive clocks from thin air. All timing values are always a function of the input clock divided by an integer (usually a power of 2, but on newer chips like this odd dividers are possible). Something like attotime::from_hz(device->clock() / 3); would yield a very similar rate and have the benefit of not being a number that was obviously pulled out of someone's butt.

- machine.scheduler().timer_set(attotime::from_usec(1), timer_expired_delegate(FUNC(zr107_state::irq_off),state), line);
+ state->m_sound_irq_timer->adjust(attotime::from_usec(5), line);


Changing the "from_use(1)" to "from_usec(5)" would yield the same result without the unnecessary copypasta of that poor other driver's code.







Entire thread
Subject Posted by Posted on
* GTIClub/K056800/RF5C400 Sound Fix RetroRepair 01/25/13 09:26 AM
. * Re: GTIClub/K056800/RF5C400 Sound Fix Phil Bennett  11/09/13 04:55 PM
. * Re: GTIClub MichaelMichael54321  01/26/13 01:41 PM
. * Re: GTIClub Embryoice  02/27/13 06:53 AM
. * Re: GTIClub MichaelMichael54321  02/27/13 03:56 PM
. * Re: GTIClub blueflash  04/06/13 02:01 PM
. * Re: GTIClub Embryoice  01/27/13 02:24 AM
. * Re: GTIClub Embryoice  01/25/13 06:59 PM
. * Re: GTIClub RetroRepair  01/25/13 07:05 PM
. * Re: GTIClub R. Belmont  01/27/13 03:45 AM
. * Re: GTIClub RetroRepair  01/27/13 11:44 AM
. * Re: GTIClub RetroRepair  01/27/13 01:45 PM
. * Re: GTIClub RetroRepair  01/27/13 03:11 PM
. * Re: GTIClub R. Belmont  01/28/13 11:48 PM
. * Re: GTIClub RetroRepair  01/29/13 11:18 AM
. * Re: GTIClub R. Belmont  01/29/13 05:29 PM
. * Re: GTIClub RetroRepair  01/30/13 01:25 PM
. * Re: GTIClub Phil Bennett  01/30/13 02:58 PM
. * Re: GTIClub RetroRepair  01/30/13 04:44 PM
. * Re: GTIClub Phil Bennett  01/30/13 05:20 PM
. * Re: GTIClub RetroRepair  01/30/13 07:04 PM
. * Re: GTIClub R. Belmont  02/03/13 05:50 PM
. * Re: GTIClub RetroRepair  02/03/13 06:24 PM
. * Re: GTIClub Ville Linde  02/03/13 08:13 PM
. * Re: GTIClub RetroRepair  02/04/13 03:55 PM
. * Re: GTIClub RetroRepair  02/25/13 12:08 AM
. * Re: GTIClub Ville Linde  02/26/13 07:48 PM
. * Re: GTIClub Embryoice  02/03/13 07:42 PM
. * Re: GTIClub R. Belmont  01/29/13 12:46 AM
. * Re: GTIClub SailorSat  01/28/13 09:36 AM
. * Re: GTIClub RetroRepair  01/28/13 09:50 AM
. * Re: GTIClub SailorSat  01/28/13 11:56 AM
. * Re: GTIClub Embryoice  01/27/13 08:07 AM
. * Re: GTIClub Embryoice  01/25/13 08:08 PM
. * Re: GTIClub RetroRepair  01/25/13 10:16 PM
. * Re: GTIClub Embryoice  01/25/13 10:55 PM
. * Re: GTIClub RetroRepair  01/25/13 11:58 PM

Extra information Permissions
Moderator:  Pi 
0 registered and 3 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 6544