diff options
author | 2014-10-17 07:56:41 +0000 | |
---|---|---|
committer | 2014-10-17 07:56:41 +0000 | |
commit | 41262f90bca32361d79f0d464aba951b8cd18664 (patch) | |
tree | 37849053780816c804808a66826071c444455bd3 /src/mess/machine/hec2hrp.c | |
parent | 3b790258e94af12727caa11532cf48af7a4ad75f (diff) |
From Fabio (nw)
-hector: creates a machine fragment for the sound components which are shared among hector and interact to avoid duplicate code
-specialist : makes static the specimx palette because it is not used outside video/specimx,c
-pce: fixed MT5734 by adding support for 192k images
Diffstat (limited to 'src/mess/machine/hec2hrp.c')
-rw-r--r-- | src/mess/machine/hec2hrp.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/mess/machine/hec2hrp.c b/src/mess/machine/hec2hrp.c index 842745d7fbe..1677ab0aed1 100644 --- a/src/mess/machine/hec2hrp.c +++ b/src/mess/machine/hec2hrp.c @@ -847,3 +847,35 @@ void hec2hrp_state::hector_init() /* Sound sn76477*/ Init_Value_SN76477_Hector(); /*init R/C value*/ } + + +/* sound hardware */ + +static DISCRETE_SOUND_START( hec2hrp ) + DISCRETE_INPUT_LOGIC(NODE_01) + DISCRETE_OUTPUT(NODE_01, 5000) +DISCRETE_SOUND_END + +MACHINE_CONFIG_FRAGMENT( hector_audio ) + MCFG_SPEAKER_STANDARD_MONO("mono") + MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") + MCFG_SOUND_ROUTE(0, "mono", 0.25) /* Sound level for cassette, as it is in mono => output channel=0*/ + + MCFG_SOUND_ADD("sn76477", SN76477, 0) + MCFG_SN76477_NOISE_PARAMS(RES_K(47), RES_K(330), CAP_P(390)) // noise + filter + MCFG_SN76477_DECAY_RES(RES_K(680)) // decay_res + MCFG_SN76477_ATTACK_PARAMS(CAP_U(47), RES_K(180)) // attack_decay_cap + attack_res + MCFG_SN76477_AMP_RES(RES_K(33)) // amplitude_res + MCFG_SN76477_FEEDBACK_RES(RES_K(100)) // feedback_res + MCFG_SN76477_VCO_PARAMS(2, CAP_N(47), RES_K(1000)) // VCO volt + cap + res + MCFG_SN76477_PITCH_VOLTAGE(2) // pitch_voltage + MCFG_SN76477_SLF_PARAMS(CAP_U(0.1), RES_K(180)) // slf caps + res + MCFG_SN76477_ONESHOT_PARAMS(CAP_U(1.00001), RES_K(10000)) // oneshot caps + res + MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.1) + + MCFG_SOUND_ADD("discrete", DISCRETE, 0) /* Son 1bit*/ + MCFG_DISCRETE_INTF(hec2hrp) + MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) + +MACHINE_CONFIG_END + |