MAMEWorld >> Programming
View all threads Index   Flat Mode Flat  

Phil Bennett
L'Emuchat
Reged: 04/20/04
Posts: 888
Send PM
Re: GTIClub
01/30/13 02:58 PM


> I ran it at 44100 but it didn't sound any different, even comparing recordings with
> both frequencies.
>
> I'm having a bit of trouble with this though:
>
> attotime timer_period = attotime::from_hz(device->clock() /3);
>
> This should work fine but it's hanging before emulation starts. Any idea why?

1. The current K056800 implementation doesn't take a clock parameter so it defaults to 0. This is easily fixed with:


Code:

#define MCFG_K056800_ADD(_tag, _interface, _clock) \
MCFG_DEVICE_ADD(_tag, K056800, _clock) \



Unfortunately the K056800 clock isn't documented. It could be 16MHz, 16.934MHz or something else entirely (though unlikely).

2. For a 16.934MHz clock, attotime::from_hz(device->clock() /3) produces a 5.3MHz timer, which is far too high Ideally we want something like:


Code:


attotime::from_hz(device->clock()) * 16384 * 3



This would give a frequency of 344.5Hz (period 2.9ms - NOT usec!). This of course is MAME's current timer value so some experimentation is in order.

Ideally we need somebody with a boardset and frequency counter to measure the actual values.







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 4 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 6655