diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2014-05-02 17:19:09 +0000 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2014-05-02 17:19:09 +0000 |
commit | 22457cd9cef4d84293ecfaac2d5f7c3d3aa8d728 (patch) | |
tree | 90130209944a6a727ce14e71dcae2414f0ba7af7 /src/mess/drivers/hec2hrp.c | |
parent | 3f73720885195bf21229e1a8e89a982a818e503b (diff) |
cassette config moved inline (nw)
Diffstat (limited to 'src/mess/drivers/hec2hrp.c')
-rw-r--r-- | src/mess/drivers/hec2hrp.c | 33 |
1 files changed, 18 insertions, 15 deletions
diff --git a/src/mess/drivers/hec2hrp.c b/src/mess/drivers/hec2hrp.c index ed9d2e93096..2c94abe48cc 100644 --- a/src/mess/drivers/hec2hrp.c +++ b/src/mess/drivers/hec2hrp.c @@ -379,15 +379,6 @@ MACHINE_RESET_MEMBER(hec2hrp_state,hec2mdhrx) hector_reset(1, 0); } -/* Cassette definition */ -static const cassette_interface hector_cassette_interface = -{ - hector_cassette_formats, - NULL, - (cassette_state)(CASSETTE_PLAY | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED), - NULL -}; - /* Discrete Sound */ static DISCRETE_SOUND_START( hec2hrp ) DISCRETE_INPUT_LOGIC(NODE_01) @@ -450,7 +441,9 @@ static MACHINE_CONFIG_START( hec2hr, hec2hrp_state ) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) /* Gestion cassette*/ - MCFG_CASSETTE_ADD( "cassette", hector_cassette_interface ) + MCFG_CASSETTE_ADD( "cassette" ) + MCFG_CASSETTE_FORMATS(hector_cassette_formats) + MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_PLAY | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED) /* printer */ MCFG_DEVICE_ADD("printer", PRINTER, 0) @@ -494,7 +487,9 @@ static MACHINE_CONFIG_START( hec2hrp, hec2hrp_state ) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) /* Gestion cassette*/ - MCFG_CASSETTE_ADD( "cassette", hector_cassette_interface ) + MCFG_CASSETTE_ADD( "cassette" ) + MCFG_CASSETTE_FORMATS(hector_cassette_formats) + MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_PLAY | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED) /* printer */ MCFG_DEVICE_ADD("printer", PRINTER, 0) @@ -552,7 +547,9 @@ static MACHINE_CONFIG_START( hec2mx40, hec2hrp_state ) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) /* Gestion cassette*/ - MCFG_CASSETTE_ADD( "cassette", hector_cassette_interface ) + MCFG_CASSETTE_ADD( "cassette" ) + MCFG_CASSETTE_FORMATS(hector_cassette_formats) + MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_PLAY | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED) /* printer */ MCFG_DEVICE_ADD("printer", PRINTER, 0) @@ -605,7 +602,9 @@ static MACHINE_CONFIG_START( hec2hrx, hec2hrp_state ) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) // Gestion cassette - MCFG_CASSETTE_ADD( "cassette", hector_cassette_interface ) + MCFG_CASSETTE_ADD( "cassette" ) + MCFG_CASSETTE_FORMATS(hector_cassette_formats) + MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_PLAY | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED) /* printer */ MCFG_DEVICE_ADD("printer", PRINTER, 0) @@ -654,7 +653,9 @@ static MACHINE_CONFIG_START( hec2mdhrx, hec2hrp_state ) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) // Gestion cassette - MCFG_CASSETTE_ADD( "cassette", hector_cassette_interface ) + MCFG_CASSETTE_ADD( "cassette" ) + MCFG_CASSETTE_FORMATS(hector_cassette_formats) + MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_PLAY | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED) /* printer */ MCFG_DEVICE_ADD("printer", PRINTER, 0) @@ -708,7 +709,9 @@ static MACHINE_CONFIG_START( hec2mx80, hec2hrp_state ) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) /* Gestion cassette*/ - MCFG_CASSETTE_ADD( "cassette", hector_cassette_interface ) + MCFG_CASSETTE_ADD( "cassette" ) + MCFG_CASSETTE_FORMATS(hector_cassette_formats) + MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_PLAY | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED) /* printer */ MCFG_DEVICE_ADD("printer", PRINTER, 0) |