Previous 199869 Revisions Next

r17827 Wednesday 12th September, 2012 at 09:55:17 UTC by Miodrag Milanović
use SOUND_START/RESET instead of MACHINE_START/RESET (no whatsnew)
[src/mame/audio]cinemat.c
[src/mame/drivers]cinemat.c
[src/mame/includes]cinemat.h

trunk/src/mame/audio/cinemat.c
r17826r17827
7171 *
7272 *************************************/
7373
74static MACHINE_START( generic )
74static SOUND_START( generic )
7575{
7676   cinemat_state *state = machine.driver_data<cinemat_state>();
7777    /* register for save states */
r17826r17827
9191static void generic_init(running_machine &machine, void (*callback)(running_machine &,UINT8, UINT8))
9292{
9393   cinemat_state *state = machine.driver_data<cinemat_state>();
94   /* call the standard init */
95   MACHINE_RESET_CALL(cinemat);
9694
9795   /* set the sound handler */
9896   state->m_sound_handler = callback;
r17826r17827
181179   }
182180}
183181
184static MACHINE_RESET( spacewar )
182static SOUND_RESET( spacewar )
185183{
186184   generic_init(machine, spacewar_sound_w);
187185}
188186
189187MACHINE_CONFIG_FRAGMENT( spacewar_sound )
190   MCFG_MACHINE_START(generic)
191   MCFG_MACHINE_RESET(spacewar)
188   MCFG_SOUND_START(generic)
189   MCFG_SOUND_RESET(spacewar)
192190
193191   MCFG_SPEAKER_STANDARD_MONO("mono")
194192
r17826r17827
236234      samples->start(2, 2);
237235}
238236
239static MACHINE_RESET( barrier )
237static SOUND_RESET( barrier )
240238{
241239   generic_init(machine, barrier_sound_w);
242240}
243241
244242MACHINE_CONFIG_FRAGMENT( barrier_sound )
245   MCFG_MACHINE_START(generic)
246   MCFG_MACHINE_RESET(barrier)
243   MCFG_SOUND_START(generic)
244   MCFG_SOUND_RESET(barrier)
247245
248246   MCFG_SPEAKER_STANDARD_MONO("mono")
249247
r17826r17827
297295    set_led_status(machine, 0, ~sound_val & 0x02);
298296}
299297
300static MACHINE_RESET( speedfrk )
298static SOUND_RESET( speedfrk )
301299{
302300   generic_init(machine, speedfrk_sound_w);
303301}
304302
305303MACHINE_CONFIG_FRAGMENT( speedfrk_sound )
306   MCFG_MACHINE_START(generic)
307   MCFG_MACHINE_RESET(speedfrk)
304   MCFG_SOUND_START(generic)
305   MCFG_SOUND_RESET(speedfrk)
308306
309307   MCFG_SPEAKER_STANDARD_MONO("mono")
310308
r17826r17827
373371      samples->stop(3);
374372}
375373
376static MACHINE_RESET( starhawk )
374static SOUND_RESET( starhawk )
377375{
378376   generic_init(machine, starhawk_sound_w);
379377}
380378
381379MACHINE_CONFIG_FRAGMENT( starhawk_sound )
382   MCFG_MACHINE_START(generic)
383   MCFG_MACHINE_RESET(starhawk)
380   MCFG_SOUND_START(generic)
381   MCFG_SOUND_RESET(starhawk)
384382
385383   MCFG_SPEAKER_STANDARD_MONO("mono")
386384
r17826r17827
443441      samples->start(5, 5);
444442}
445443
446static MACHINE_RESET( sundance )
444static SOUND_RESET( sundance )
447445{
448446   generic_init(machine, sundance_sound_w);
449447}
450448
451449MACHINE_CONFIG_FRAGMENT( sundance_sound )
452   MCFG_MACHINE_START(generic)
453   MCFG_MACHINE_RESET(sundance)
450   MCFG_SOUND_START(generic)
451   MCFG_SOUND_RESET(sundance)
454452
455453   MCFG_SPEAKER_STANDARD_MONO("mono")
456454
r17826r17827
533531   }
534532}
535533
536static MACHINE_RESET( tailg )
534static SOUND_RESET( tailg )
537535{
538536   generic_init(machine, tailg_sound_w);
539537}
540538
541539MACHINE_CONFIG_FRAGMENT( tailg_sound )
542   MCFG_MACHINE_START(generic)
543   MCFG_MACHINE_RESET(tailg)
540   MCFG_SOUND_START(generic)
541   MCFG_SOUND_RESET(tailg)
544542
545543   MCFG_SPEAKER_STANDARD_MONO("mono")
546544
r17826r17827
602600      samples->start(4, 4);
603601}
604602
605static MACHINE_RESET( warrior )
603static SOUND_RESET( warrior )
606604{
607605   generic_init(machine, warrior_sound_w);
608606}
609607
610608MACHINE_CONFIG_FRAGMENT( warrior_sound )
611   MCFG_MACHINE_START(generic)
612   MCFG_MACHINE_RESET(warrior)
609   MCFG_SOUND_START(generic)
610   MCFG_SOUND_RESET(warrior)
613611
614612   MCFG_SPEAKER_STANDARD_MONO("mono")
615613
r17826r17827
698696      samples->stop(6);
699697}
700698
701static MACHINE_RESET( armora )
699static SOUND_RESET( armora )
702700{
703701   generic_init(machine, armora_sound_w);
704702}
705703
706704MACHINE_CONFIG_FRAGMENT( armora_sound )
707   MCFG_MACHINE_START(generic)
708   MCFG_MACHINE_RESET(armora)
705   MCFG_SOUND_START(generic)
706   MCFG_SOUND_RESET(armora)
709707
710708   MCFG_SPEAKER_STANDARD_MONO("mono")
711709
r17826r17827
791789      samples->start(4, 4);
792790}
793791
794static MACHINE_RESET( ripoff )
792static SOUND_RESET( ripoff )
795793{
796794   generic_init(machine, ripoff_sound_w);
797795}
798796
799797MACHINE_CONFIG_FRAGMENT( ripoff_sound )
800   MCFG_MACHINE_START(generic)
801   MCFG_MACHINE_RESET(ripoff)
798   MCFG_SOUND_START(generic)
799   MCFG_SOUND_RESET(ripoff)
802800
803801   MCFG_SPEAKER_STANDARD_MONO("mono")
804802
r17826r17827
905903      samples->start(7, 7);
906904}
907905
908static MACHINE_RESET( starcas )
906static SOUND_RESET( starcas )
909907{
910908   generic_init(machine, starcas_sound_w);
911909}
912910
913911MACHINE_CONFIG_FRAGMENT( starcas_sound )
914   MCFG_MACHINE_START(generic)
915   MCFG_MACHINE_RESET(starcas)
912   MCFG_SOUND_START(generic)
913   MCFG_SOUND_RESET(starcas)
916914
917915   MCFG_SPEAKER_STANDARD_MONO("mono")
918916
r17826r17827
10411039    }
10421040}
10431041
1044static MACHINE_RESET( solarq )
1042static SOUND_RESET( solarq )
10451043{
10461044   generic_init(machine, solarq_sound_w);
10471045}
10481046
10491047MACHINE_CONFIG_FRAGMENT( solarq_sound )
1050   MCFG_MACHINE_START(generic)
1051   MCFG_MACHINE_RESET(solarq)
1048   MCFG_SOUND_START(generic)
1049   MCFG_SOUND_RESET(solarq)
10521050
10531051   MCFG_SPEAKER_STANDARD_MONO("mono")
10541052
r17826r17827
11771175      samples->start(11, 11);
11781176}
11791177
1180static MACHINE_RESET( boxingb )
1178static SOUND_RESET( boxingb )
11811179{
11821180   generic_init(machine, boxingb_sound_w);
11831181}
11841182
11851183MACHINE_CONFIG_FRAGMENT( boxingb_sound )
1186   MCFG_MACHINE_START(generic)
1187   MCFG_MACHINE_RESET(boxingb)
1184   MCFG_SOUND_START(generic)
1185   MCFG_SOUND_RESET(boxingb)
11881186
11891187   MCFG_SPEAKER_STANDARD_MONO("mono")
11901188
r17826r17827
12911289      samples->start(7, 7);
12921290}
12931291
1294static MACHINE_RESET( wotw )
1292static SOUND_RESET( wotw )
12951293{
12961294   generic_init(machine, wotw_sound_w);
12971295}
12981296
12991297MACHINE_CONFIG_FRAGMENT( wotw_sound )
1300   MCFG_MACHINE_START(generic)
1301   MCFG_MACHINE_RESET(wotw)
1298   MCFG_SOUND_START(generic)
1299   MCFG_SOUND_RESET(wotw)
13021300
13031301   MCFG_SPEAKER_STANDARD_MONO("mono")
13041302
r17826r17827
14041402};
14051403
14061404
1407static MACHINE_RESET( demon_sound )
1405static SOUND_RESET( demon_sound )
14081406{
14091407   cinemat_state *state = machine.driver_data<cinemat_state>();
14101408   /* generic init */
r17826r17827
14561454
14571455   MCFG_Z80CTC_ADD("ctc", 3579545 /* same as "audiocpu" */, demon_z80ctc_interface)
14581456
1459   MCFG_MACHINE_START(generic)
1460   MCFG_MACHINE_RESET(demon_sound)
1457   MCFG_SOUND_START(generic)
1458   MCFG_SOUND_RESET(demon_sound)
14611459
14621460   /* sound hardware */
14631461   MCFG_SPEAKER_STANDARD_MONO("mono")
r17826r17827
14891487}
14901488
14911489
1492static MACHINE_RESET( qb3_sound )
1490static SOUND_RESET( qb3_sound )
14931491{
14941492   cinemat_state *state = machine.driver_data<cinemat_state>();
1495   MACHINE_RESET_CALL(demon_sound);
1493   SOUND_RESET_CALL(demon_sound);
14961494   machine.device("maincpu")->memory().space(AS_IO)->install_write_handler(0x04, 0x04, write8_delegate(FUNC(cinemat_state::qb3_sound_w),state));
14971495
14981496   /* this patch prevents the sound ROM from eating itself when command $0A is sent */
r17826r17827
15021500
15031501
15041502MACHINE_CONFIG_DERIVED( qb3_sound, demon_sound )
1505   MCFG_MACHINE_RESET(qb3_sound)
1503   MCFG_SOUND_RESET(qb3_sound)
15061504MACHINE_CONFIG_END
trunk/src/mame/includes/cinemat.h
r17826r17827
6060};
6161
6262
63/*----------- defined in drivers/cinemat.c -----------*/
64
65MACHINE_RESET( cinemat );
66
67
6863/*----------- defined in audio/cinemat.c -----------*/
6964
7065
trunk/src/mame/drivers/cinemat.c
r17826r17827
5858}
5959
6060
61MACHINE_RESET( cinemat )
61static MACHINE_RESET( cinemat )
6262{
6363   cinemat_state *state = machine.driver_data<cinemat_state>();
6464   /* reset the coin states */

Previous 199869 Revisions Next


© 1997-2024 The MAME Team