changed c352 internal clockdivider after latests guru measurements

This commit is contained in:
Michaël Banaan Ananas 2011-09-19 22:16:38 +00:00
parent 6f11f9a3a5
commit 34ff81062c
8 changed files with 14 additions and 14 deletions

View File

@ -10,7 +10,7 @@
32 voices
Supports 8-bit linear and 8-bit muLaw samples
Output: digital, 16 bit, 4 channels
Output sample rate is the input clock / 384.
Output sample rate is the input clock / (288 * 2).
*/
#include "emu.h"
@ -463,7 +463,7 @@ void c352_device::device_start()
// find our direct access
m_direct = &space()->direct();
m_sample_rate_base = clock() / 192;
m_sample_rate_base = clock() / 288;
m_stream = machine().sound().stream_alloc(*this, 0, 4, m_sample_rate_base, this);

View File

@ -617,7 +617,7 @@ static MACHINE_CONFIG_START( namcofl, namcofl_state )
MCFG_VIDEO_START(namcofl)
MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
MCFG_C352_ADD("c352", 48384000/3)
MCFG_C352_ADD("c352", 48384000/2)
MCFG_SOUND_ROUTE(0, "rspeaker", 1.00)
MCFG_SOUND_ROUTE(1, "lspeaker", 1.00)
MCFG_SOUND_ROUTE(2, "rspeaker", 1.00)

View File

@ -1045,7 +1045,7 @@ static MACHINE_CONFIG_START( namconb1, namconb1_state )
MCFG_VIDEO_START(namconb1)
MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
MCFG_C352_ADD("c352", MASTER_CLOCK_HZ/3)
MCFG_C352_ADD("c352", MASTER_CLOCK_HZ/2)
MCFG_SOUND_ROUTE(0, "rspeaker", 1.00)
MCFG_SOUND_ROUTE(1, "lspeaker", 1.00)
MCFG_SOUND_ROUTE(2, "rspeaker", 1.00)
@ -1078,7 +1078,7 @@ static MACHINE_CONFIG_START( namconb2, namconb1_state )
MCFG_VIDEO_START(namconb2)
MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
MCFG_C352_ADD("c352", MASTER_CLOCK_HZ/3)
MCFG_C352_ADD("c352", MASTER_CLOCK_HZ/2)
MCFG_SOUND_ROUTE(0, "rspeaker", 1.00)
MCFG_SOUND_ROUTE(1, "lspeaker", 1.00)
MCFG_SOUND_ROUTE(2, "rspeaker", 1.00)

View File

@ -325,7 +325,7 @@ static MACHINE_CONFIG_START( namcond1, namcond1_state )
/* sound hardware */
MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
MCFG_C352_ADD("c352", XTAL_49_152MHz/3) // NOTE: should be XTAL_49_152MHz/2, but that's currently incompatible with c352.c internal divider
MCFG_C352_ADD("c352", XTAL_49_152MHz/2)
MCFG_SOUND_ROUTE(0, "rspeaker", 1.00)
MCFG_SOUND_ROUTE(1, "lspeaker", 1.00)
MCFG_SOUND_ROUTE(2, "rspeaker", 1.00)

View File

@ -996,9 +996,9 @@ static MACHINE_CONFIG_START( coh100, namcos11_state )
MCFG_PSXGPU_ADD( "maincpu", "gpu", CXD8538Q, 0x200000, XTAL_53_693175MHz )
MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
// note: C352 internal divider is currently set to 192, but that sounds wrong with an input clock of 20MHz.
// note: C352 internal divider is currently set to 288, but that sounds wrong with an input clock of 20MHz.
// 228.0 here is a guess, estimated from PCB recordings sound/music pitch.
MCFG_C352_ADD("c352", 20000000 / (228.0/192.0))
MCFG_C352_ADD("c352", 20000000 / (228.0/288.0))
MCFG_SOUND_ROUTE(0, "rspeaker", 1.00)
MCFG_SOUND_ROUTE(1, "lspeaker", 1.00)
MCFG_SOUND_ROUTE(2, "rspeaker", 1.00)

View File

@ -1672,7 +1672,7 @@ static MACHINE_CONFIG_START( coh700, namcos12_state )
/* sound hardware */
MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
MCFG_C352_ADD("c352", 16737350)
MCFG_C352_ADD("c352", 16737350*1.5 ) // ?
MCFG_SOUND_ROUTE(0, "rspeaker", 1.00)
MCFG_SOUND_ROUTE(1, "lspeaker", 1.00)
MCFG_SOUND_ROUTE(2, "rspeaker", 1.00)

View File

@ -2883,7 +2883,7 @@ static MACHINE_CONFIG_START( namcos22s, namcos22_state )
/* sound hardware */
MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
MCFG_C352_ADD("c352", SS22_MASTER_CLOCK/3) // should be SS22_MASTER_CLOCK/2, but relies on c352.c clockdivider implementation
MCFG_C352_ADD("c352", SS22_MASTER_CLOCK/2)
MCFG_SOUND_ROUTE(0, "rspeaker", 1.00)
MCFG_SOUND_ROUTE(1, "lspeaker", 1.00)
MCFG_SOUND_ROUTE(2, "rspeaker", 1.00)
@ -3292,7 +3292,7 @@ static MACHINE_CONFIG_START( namcos22, namcos22_state )
/* sound hardware */
MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
MCFG_C352_ADD("c352", SS22_MASTER_CLOCK/3)
MCFG_C352_ADD("c352", SS22_MASTER_CLOCK/2)
MCFG_SOUND_ROUTE(0, "rspeaker", 1.00)
MCFG_SOUND_ROUTE(1, "lspeaker", 1.00)
MCFG_SOUND_ROUTE(2, "rspeaker", 1.00)

View File

@ -2878,7 +2878,7 @@ static MACHINE_CONFIG_START( gorgon, namcos23_state )
/* sound hardware */
MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
MCFG_C352_ADD("c352", 14745600)
MCFG_C352_ADD("c352", 14745600*1.5) // ?
MCFG_SOUND_ROUTE(0, "rspeaker", 1.00)
MCFG_SOUND_ROUTE(1, "lspeaker", 1.00)
MCFG_SOUND_ROUTE(2, "rspeaker", 1.00)
@ -2924,7 +2924,7 @@ static MACHINE_CONFIG_START( s23, namcos23_state )
/* sound hardware */
MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
MCFG_C352_ADD("c352", 14745600)
MCFG_C352_ADD("c352", 14745600*1.5) // ?
MCFG_SOUND_ROUTE(0, "rspeaker", 1.00)
MCFG_SOUND_ROUTE(1, "lspeaker", 1.00)
MCFG_SOUND_ROUTE(2, "rspeaker", 1.00)
@ -2966,7 +2966,7 @@ static MACHINE_CONFIG_START( ss23, namcos23_state )
/* sound hardware */
MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
MCFG_C352_ADD("c352", 14745600)
MCFG_C352_ADD("c352", 14745600*1.5) // ?
MCFG_SOUND_ROUTE(0, "rspeaker", 1.00)
MCFG_SOUND_ROUTE(1, "lspeaker", 1.00)
MCFG_SOUND_ROUTE(2, "rspeaker", 1.00)