From 6c11b3ce0131be3b14edf5ef93fa9cb2380ae45b Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Wed, 9 May 2018 19:26:44 +1000 Subject: dsp16: fix condition mask in disassembler (nw) (nw) remove more MCFG macros and make speaker config more explicit --- src/mame/audio/alesis.cpp | 6 +- src/mame/audio/asteroid.cpp | 4 +- src/mame/audio/astrof.cpp | 4 +- src/mame/audio/avalnche.cpp | 2 +- src/mame/audio/bwidow.cpp | 2 +- src/mame/audio/bzone.cpp | 2 +- src/mame/audio/cage.cpp | 3 +- src/mame/audio/cheekyms.cpp | 2 +- src/mame/audio/cinemat.cpp | 28 ++++---- src/mame/audio/copsnrob.cpp | 3 +- src/mame/audio/crbaloon.cpp | 2 +- src/mame/audio/dcs.cpp | 11 +-- src/mame/audio/decobsmt.cpp | 3 +- src/mame/audio/dkong.cpp | 6 +- src/mame/audio/efo_zsu.cpp | 2 +- src/mame/audio/exidy.cpp | 4 +- src/mame/audio/harddriv.cpp | 2 +- src/mame/audio/hng64.cpp | 3 +- src/mame/audio/irem.cpp | 6 +- src/mame/audio/jedi.cpp | 3 +- src/mame/audio/leland.cpp | 8 +-- src/mame/audio/llander.cpp | 2 +- src/mame/audio/mario.cpp | 4 +- src/mame/audio/mw8080bw.cpp | 50 ++++++++------ src/mame/audio/n8080.cpp | 6 +- src/mame/audio/nichisnd.cpp | 2 +- src/mame/audio/qix.cpp | 5 +- src/mame/audio/rax.cpp | 3 +- src/mame/audio/redalert.cpp | 6 +- src/mame/audio/scramble.cpp | 2 +- src/mame/audio/segam1audio.cpp | 3 +- src/mame/audio/spacefb.cpp | 2 +- src/mame/audio/spiders.cpp | 2 +- src/mame/audio/sprint8.cpp | 8 +-- src/mame/audio/taito_en.cpp | 3 +- src/mame/audio/targ.cpp | 4 +- src/mame/audio/timeplt.cpp | 2 +- src/mame/audio/turbo.cpp | 13 ++-- src/mame/audio/vicdual-97271p.cpp | 2 +- src/mame/drivers/1942.cpp | 4 +- src/mame/drivers/1943.cpp | 2 +- src/mame/drivers/1945kiii.cpp | 2 +- src/mame/drivers/20pacgal.cpp | 2 +- src/mame/drivers/2mindril.cpp | 3 +- src/mame/drivers/30test.cpp | 2 +- src/mame/drivers/39in1.cpp | 3 +- src/mame/drivers/3x3puzzl.cpp | 2 +- src/mame/drivers/4004clk.cpp | 2 +- src/mame/drivers/40love.cpp | 4 +- src/mame/drivers/4enlinea.cpp | 2 +- src/mame/drivers/4enraya.cpp | 4 +- src/mame/drivers/4roses.cpp | 2 +- src/mame/drivers/5clown.cpp | 2 +- src/mame/drivers/8080bw.cpp | 12 ++-- src/mame/drivers/88games.cpp | 2 +- src/mame/drivers/a2600.cpp | 4 +- src/mame/drivers/a5105.cpp | 2 +- src/mame/drivers/a6809.cpp | 2 +- src/mame/drivers/a7800.cpp | 2 +- src/mame/drivers/aa310.cpp | 2 +- src/mame/drivers/abc80.cpp | 2 +- src/mame/drivers/abc80x.cpp | 6 +- src/mame/drivers/ac1.cpp | 2 +- src/mame/drivers/accomm.cpp | 2 +- src/mame/drivers/aces1.cpp | 2 +- src/mame/drivers/acommand.cpp | 3 +- src/mame/drivers/acrnsys1.cpp | 2 +- src/mame/drivers/actfancr.cpp | 4 +- src/mame/drivers/acvirus.cpp | 3 +- src/mame/drivers/adam.cpp | 2 +- src/mame/drivers/adp.cpp | 2 +- src/mame/drivers/advision.cpp | 2 +- src/mame/drivers/aeroboto.cpp | 2 +- src/mame/drivers/aerofgt.cpp | 32 +++++---- src/mame/drivers/agat.cpp | 2 +- src/mame/drivers/age_candy.cpp | 2 +- src/mame/drivers/aim65.cpp | 2 +- src/mame/drivers/airbustr.cpp | 2 +- src/mame/drivers/airraid.cpp | 2 +- src/mame/drivers/ajax.cpp | 3 +- src/mame/drivers/albazc.cpp | 2 +- src/mame/drivers/albazg.cpp | 2 +- src/mame/drivers/aleck64.cpp | 3 +- src/mame/drivers/alg.cpp | 3 +- src/mame/drivers/alien.cpp | 2 +- src/mame/drivers/aliens.cpp | 2 +- src/mame/drivers/alinvade.cpp | 2 +- src/mame/drivers/alpha68k.cpp | 18 ++--- src/mame/drivers/alphatpx.cpp | 4 +- src/mame/drivers/alphatro.cpp | 2 +- src/mame/drivers/alto2.cpp | 2 +- src/mame/drivers/amaticmg.cpp | 2 +- src/mame/drivers/ambush.cpp | 2 +- src/mame/drivers/amerihok.cpp | 2 +- src/mame/drivers/amiga.cpp | 3 +- src/mame/drivers/ampoker2.cpp | 2 +- src/mame/drivers/amspdwy.cpp | 3 +- src/mame/drivers/amstrad.cpp | 6 +- src/mame/drivers/amusco.cpp | 2 +- src/mame/drivers/amust.cpp | 2 +- src/mame/drivers/anes.cpp | 2 +- src/mame/drivers/angelkds.cpp | 2 +- src/mame/drivers/apc.cpp | 2 +- src/mame/drivers/apf.cpp | 2 +- src/mame/drivers/apogee.cpp | 2 +- src/mame/drivers/apollo.cpp | 8 +-- src/mame/drivers/apple2.cpp | 2 +- src/mame/drivers/apple2e.cpp | 2 +- src/mame/drivers/apple2gs.cpp | 5 +- src/mame/drivers/apple3.cpp | 2 +- src/mame/drivers/applix.cpp | 3 +- src/mame/drivers/appoooh.cpp | 2 +- src/mame/drivers/apricot.cpp | 2 +- src/mame/drivers/apricotp.cpp | 2 +- src/mame/drivers/aquarium.cpp | 3 +- src/mame/drivers/aquarius.cpp | 2 +- src/mame/drivers/arabian.cpp | 2 +- src/mame/drivers/arachnid.cpp | 2 +- src/mame/drivers/arcadecl.cpp | 2 +- src/mame/drivers/arcadia.cpp | 2 +- src/mame/drivers/argus.cpp | 6 +- src/mame/drivers/aristmk4.cpp | 2 +- src/mame/drivers/aristmk5.cpp | 2 +- src/mame/drivers/arkanoid.cpp | 6 +- src/mame/drivers/armedf.cpp | 12 ++-- src/mame/drivers/arsystems.cpp | 3 +- src/mame/drivers/artmagic.cpp | 2 +- src/mame/drivers/ashnojoe.cpp | 2 +- src/mame/drivers/asterix.cpp | 3 +- src/mame/drivers/astinvad.cpp | 4 +- src/mame/drivers/astrcorp.cpp | 4 +- src/mame/drivers/astrocde.cpp | 16 +++-- src/mame/drivers/astrohome.cpp | 2 +- src/mame/drivers/asuka.cpp | 10 +-- src/mame/drivers/at.cpp | 2 +- src/mame/drivers/atari400.cpp | 2 +- src/mame/drivers/atari_s1.cpp | 2 +- src/mame/drivers/atari_s2.cpp | 2 +- src/mame/drivers/atarifb.cpp | 2 +- src/mame/drivers/atarig1.cpp | 2 +- src/mame/drivers/atarig42.cpp | 2 +- src/mame/drivers/atarigx2.cpp | 3 +- src/mame/drivers/atarist.cpp | 9 +-- src/mame/drivers/atarisy1.cpp | 3 +- src/mame/drivers/atarisy2.cpp | 3 +- src/mame/drivers/atetris.cpp | 4 +- src/mame/drivers/atom.cpp | 4 +- src/mame/drivers/attache.cpp | 4 +- src/mame/drivers/attckufo.cpp | 2 +- src/mame/drivers/aussiebyte.cpp | 2 +- src/mame/drivers/avigo.cpp | 2 +- src/mame/drivers/avt.cpp | 2 +- src/mame/drivers/aztarac.cpp | 2 +- src/mame/drivers/b2m.cpp | 2 +- src/mame/drivers/backfire.cpp | 3 +- src/mame/drivers/badlands.cpp | 2 +- src/mame/drivers/badlandsbl.cpp | 2 +- src/mame/drivers/bagman.cpp | 6 +- src/mame/drivers/balsente.cpp | 2 +- src/mame/drivers/bankp.cpp | 2 +- src/mame/drivers/baraduke.cpp | 2 +- src/mame/drivers/barata.cpp | 2 +- src/mame/drivers/bartop52.cpp | 2 +- src/mame/drivers/batman.cpp | 2 +- src/mame/drivers/battlane.cpp | 2 +- src/mame/drivers/battlera.cpp | 2 +- src/mame/drivers/battlex.cpp | 2 +- src/mame/drivers/battlnts.cpp | 2 +- src/mame/drivers/bbc.cpp | 4 +- src/mame/drivers/bbusters.cpp | 6 +- src/mame/drivers/beathead.cpp | 2 +- src/mame/drivers/bebox.cpp | 2 +- src/mame/drivers/beezer.cpp | 2 +- src/mame/drivers/belatra.cpp | 3 +- src/mame/drivers/berzerk.cpp | 2 +- src/mame/drivers/bestleag.cpp | 3 +- src/mame/drivers/beta.cpp | 2 +- src/mame/drivers/bfcobra.cpp | 2 +- src/mame/drivers/bfm_ad5.cpp | 3 +- src/mame/drivers/bfm_sc1.cpp | 2 +- src/mame/drivers/bfm_sc2.cpp | 6 +- src/mame/drivers/bfm_sc4.cpp | 2 +- src/mame/drivers/bfm_sc5.cpp | 2 +- src/mame/drivers/bfm_swp.cpp | 2 +- src/mame/drivers/bfmsys83.cpp | 2 +- src/mame/drivers/bfmsys85.cpp | 2 +- src/mame/drivers/big10.cpp | 2 +- src/mame/drivers/bigbord2.cpp | 2 +- src/mame/drivers/bigevglf.cpp | 2 +- src/mame/drivers/bigstrkb.cpp | 3 +- src/mame/drivers/binbug.cpp | 4 +- src/mame/drivers/bingoc.cpp | 3 +- src/mame/drivers/bingoman.cpp | 2 +- src/mame/drivers/bingor.cpp | 4 +- src/mame/drivers/bingowav.cpp | 2 +- src/mame/drivers/bionicc.cpp | 2 +- src/mame/drivers/bishi.cpp | 3 +- src/mame/drivers/bitgraph.cpp | 2 +- src/mame/drivers/bk.cpp | 2 +- src/mame/drivers/bking.cpp | 2 +- src/mame/drivers/blackt96.cpp | 3 +- src/mame/drivers/bladestl.cpp | 2 +- src/mame/drivers/blitz68k.cpp | 2 +- src/mame/drivers/blktiger.cpp | 2 +- src/mame/drivers/blmbycar.cpp | 3 +- src/mame/drivers/blockade.cpp | 2 +- src/mame/drivers/blockhl.cpp | 2 +- src/mame/drivers/blockout.cpp | 3 +- src/mame/drivers/blocktax.cpp | 2 +- src/mame/drivers/bloodbro.cpp | 2 +- src/mame/drivers/blstroid.cpp | 3 +- src/mame/drivers/blueprnt.cpp | 2 +- src/mame/drivers/bmcbowl.cpp | 3 +- src/mame/drivers/bmcpokr.cpp | 3 +- src/mame/drivers/bmjr.cpp | 2 +- src/mame/drivers/bml3.cpp | 2 +- src/mame/drivers/bnstars.cpp | 3 +- src/mame/drivers/bogeyman.cpp | 2 +- src/mame/drivers/bombjack.cpp | 2 +- src/mame/drivers/boogwing.cpp | 3 +- src/mame/drivers/bottom9.cpp | 2 +- src/mame/drivers/br8641.cpp | 2 +- src/mame/drivers/brkthru.cpp | 4 +- src/mame/drivers/bsktball.cpp | 2 +- src/mame/drivers/btime.cpp | 2 +- src/mame/drivers/btoads.cpp | 3 +- src/mame/drivers/bublbobl.cpp | 4 +- src/mame/drivers/buggychl.cpp | 2 +- src/mame/drivers/buster.cpp | 2 +- src/mame/drivers/bw12.cpp | 2 +- src/mame/drivers/bwing.cpp | 2 +- src/mame/drivers/by35.cpp | 2 +- src/mame/drivers/byvid.cpp | 4 +- src/mame/drivers/bzone.cpp | 2 +- src/mame/drivers/c128.cpp | 4 +- src/mame/drivers/c64.cpp | 6 +- src/mame/drivers/c65.cpp | 3 +- src/mame/drivers/c80.cpp | 2 +- src/mame/drivers/cabal.cpp | 4 +- src/mame/drivers/cabaret.cpp | 2 +- src/mame/drivers/calchase.cpp | 6 +- src/mame/drivers/calcune.cpp | 3 +- src/mame/drivers/calomega.cpp | 2 +- src/mame/drivers/calorie.cpp | 2 +- src/mame/drivers/camplynx.cpp | 2 +- src/mame/drivers/canyon.cpp | 3 +- src/mame/drivers/capbowl.cpp | 2 +- src/mame/drivers/capr1.cpp | 2 +- src/mame/drivers/cardline.cpp | 3 +- src/mame/drivers/carjmbre.cpp | 2 +- src/mame/drivers/carrera.cpp | 2 +- src/mame/drivers/casloopy.cpp | 2 +- src/mame/drivers/caswin.cpp | 2 +- src/mame/drivers/cat.cpp | 2 +- src/mame/drivers/cave.cpp | 38 ++++++----- src/mame/drivers/cb2001.cpp | 2 +- src/mame/drivers/cbasebal.cpp | 2 +- src/mame/drivers/cbm2.cpp | 6 +- src/mame/drivers/cbuster.cpp | 2 +- src/mame/drivers/cc40.cpp | 2 +- src/mame/drivers/ccastles.cpp | 2 +- src/mame/drivers/cchance.cpp | 2 +- src/mame/drivers/cchasm.cpp | 2 +- src/mame/drivers/cclimber.cpp | 6 +- src/mame/drivers/cd2650.cpp | 2 +- src/mame/drivers/cdi.cpp | 9 ++- src/mame/drivers/centiped.cpp | 14 ++-- src/mame/drivers/cesclass.cpp | 2 +- src/mame/drivers/cgc7900.cpp | 2 +- src/mame/drivers/cgenie.cpp | 2 +- src/mame/drivers/chaknpop.cpp | 2 +- src/mame/drivers/cham24.cpp | 2 +- src/mame/drivers/champbas.cpp | 8 +-- src/mame/drivers/champbwl.cpp | 5 +- src/mame/drivers/chanbara.cpp | 2 +- src/mame/drivers/chance32.cpp | 2 +- src/mame/drivers/changela.cpp | 2 +- src/mame/drivers/channelf.cpp | 8 +-- src/mame/drivers/cheekyms.cpp | 2 +- src/mame/drivers/chessmst.cpp | 6 +- src/mame/drivers/chexx.cpp | 2 +- src/mame/drivers/chinagat.cpp | 6 +- src/mame/drivers/chinsan.cpp | 2 +- src/mame/drivers/chqflag.cpp | 3 +- src/mame/drivers/chsuper.cpp | 2 +- src/mame/drivers/circus.cpp | 8 +-- src/mame/drivers/circusc.cpp | 2 +- src/mame/drivers/cischeat.cpp | 9 ++- src/mame/drivers/citycon.cpp | 2 +- src/mame/drivers/ckz80.cpp | 2 +- src/mame/drivers/clcd.cpp | 2 +- src/mame/drivers/cliffhgr.cpp | 3 +- src/mame/drivers/cloak.cpp | 2 +- src/mame/drivers/cloud9.cpp | 2 +- src/mame/drivers/clowndwn.cpp | 2 +- src/mame/drivers/clpoker.cpp | 2 +- src/mame/drivers/clshroad.cpp | 4 +- src/mame/drivers/cmi.cpp | 2 +- src/mame/drivers/cmmb.cpp | 2 +- src/mame/drivers/cninja.cpp | 14 ++-- src/mame/drivers/cntsteer.cpp | 4 +- src/mame/drivers/cobra.cpp | 3 +- src/mame/drivers/coco12.cpp | 2 +- src/mame/drivers/cocoloco.cpp | 2 +- src/mame/drivers/coinmstr.cpp | 2 +- src/mame/drivers/coinmvga.cpp | 3 +- src/mame/drivers/coleco.cpp | 2 +- src/mame/drivers/combatsc.cpp | 4 +- src/mame/drivers/commando.cpp | 2 +- src/mame/drivers/compgolf.cpp | 2 +- src/mame/drivers/concept.cpp | 2 +- src/mame/drivers/contra.cpp | 3 +- src/mame/drivers/coolpool.cpp | 4 +- src/mame/drivers/coolridr.cpp | 3 +- src/mame/drivers/cop01.cpp | 4 +- src/mame/drivers/cops.cpp | 4 +- src/mame/drivers/corona.cpp | 10 +-- src/mame/drivers/cortex.cpp | 2 +- src/mame/drivers/cosmic.cpp | 10 +-- src/mame/drivers/cosmicos.cpp | 2 +- src/mame/drivers/cps1.cpp | 5 +- src/mame/drivers/cps2.cpp | 3 +- src/mame/drivers/cps3.cpp | 3 +- src/mame/drivers/craft.cpp | 2 +- src/mame/drivers/crgolf.cpp | 2 +- src/mame/drivers/crimfght.cpp | 3 +- src/mame/drivers/crospang.cpp | 2 +- src/mame/drivers/crshrace.cpp | 3 +- src/mame/drivers/crvision.cpp | 4 +- src/mame/drivers/crystal.cpp | 3 +- src/mame/drivers/ct486.cpp | 2 +- src/mame/drivers/cubeqst.cpp | 3 +- src/mame/drivers/cubo.cpp | 3 +- src/mame/drivers/cultures.cpp | 2 +- src/mame/drivers/cupidon.cpp | 3 +- src/mame/drivers/cv1k.cpp | 2 +- src/mame/drivers/cvs.cpp | 2 +- src/mame/drivers/cxgz80.cpp | 2 +- src/mame/drivers/cyberbal.cpp | 5 +- src/mame/drivers/cybertnk.cpp | 3 +- src/mame/drivers/cybiko.cpp | 2 +- src/mame/drivers/cybstorm.cpp | 3 +- src/mame/drivers/cyclemb.cpp | 2 +- src/mame/drivers/d6800.cpp | 2 +- src/mame/drivers/d9final.cpp | 2 +- src/mame/drivers/dacholer.cpp | 2 +- src/mame/drivers/dai.cpp | 5 +- src/mame/drivers/dai3wksi.cpp | 2 +- src/mame/drivers/dambustr.cpp | 2 +- src/mame/drivers/darius.cpp | 3 +- src/mame/drivers/darkmist.cpp | 2 +- src/mame/drivers/darkseal.cpp | 2 +- src/mame/drivers/daruma.cpp | 2 +- src/mame/drivers/dassault.cpp | 3 +- src/mame/drivers/dblcrown.cpp | 2 +- src/mame/drivers/dblewing.cpp | 2 +- src/mame/drivers/dbz.cpp | 3 +- src/mame/drivers/dccons.cpp | 3 +- src/mame/drivers/dcheese.cpp | 3 +- src/mame/drivers/dcon.cpp | 4 +- src/mame/drivers/dday.cpp | 2 +- src/mame/drivers/ddayjlc.cpp | 2 +- src/mame/drivers/ddealer.cpp | 2 +- src/mame/drivers/ddenlovr.cpp | 24 +++---- src/mame/drivers/ddragon.cpp | 6 +- src/mame/drivers/ddragon3.cpp | 5 +- src/mame/drivers/ddribble.cpp | 2 +- src/mame/drivers/de_2.cpp | 2 +- src/mame/drivers/deadang.cpp | 2 +- src/mame/drivers/dec0.cpp | 8 +-- src/mame/drivers/dec8.cpp | 18 ++--- src/mame/drivers/deco156.cpp | 6 +- src/mame/drivers/deco32.cpp | 17 +++-- src/mame/drivers/deco_ld.cpp | 3 +- src/mame/drivers/deco_mlc.cpp | 6 +- src/mame/drivers/decocass.cpp | 2 +- src/mame/drivers/dectalk.cpp | 2 +- src/mame/drivers/decwritr.cpp | 2 +- src/mame/drivers/deniam.cpp | 4 +- src/mame/drivers/deshoros.cpp | 2 +- src/mame/drivers/dfruit.cpp | 2 +- src/mame/drivers/dietgo.cpp | 2 +- src/mame/drivers/digel804.cpp | 2 +- src/mame/drivers/dim68k.cpp | 2 +- src/mame/drivers/discoboy.cpp | 3 +- src/mame/drivers/divebomb.cpp | 2 +- src/mame/drivers/diverboy.cpp | 2 +- src/mame/drivers/djboy.cpp | 3 +- src/mame/drivers/djmain.cpp | 3 +- src/mame/drivers/dlair.cpp | 6 +- src/mame/drivers/dlair2.cpp | 2 +- src/mame/drivers/dmndrby.cpp | 2 +- src/mame/drivers/dmv.cpp | 2 +- src/mame/drivers/docastle.cpp | 2 +- src/mame/drivers/dogfgt.cpp | 2 +- src/mame/drivers/dolphunk.cpp | 2 +- src/mame/drivers/dominob.cpp | 2 +- src/mame/drivers/dooyong.cpp | 8 +-- src/mame/drivers/dragrace.cpp | 3 +- src/mame/drivers/dreambal.cpp | 2 +- src/mame/drivers/dreamwld.cpp | 3 +- src/mame/drivers/drgnmst.cpp | 3 +- src/mame/drivers/drmicro.cpp | 2 +- src/mame/drivers/drtomy.cpp | 2 +- src/mame/drivers/drw80pkr.cpp | 2 +- src/mame/drivers/dunhuang.cpp | 2 +- src/mame/drivers/dwarfd.cpp | 2 +- src/mame/drivers/dynadice.cpp | 2 +- src/mame/drivers/dynax.cpp | 18 ++--- src/mame/drivers/dynduke.cpp | 2 +- src/mame/drivers/ecoinf3.cpp | 2 +- src/mame/drivers/egghunt.cpp | 2 +- src/mame/drivers/einstein.cpp | 2 +- src/mame/drivers/electron.cpp | 2 +- src/mame/drivers/elektronmono.cpp | 3 +- src/mame/drivers/elwro800.cpp | 2 +- src/mame/drivers/enigma2.cpp | 4 +- src/mame/drivers/enmirage.cpp | 3 +- src/mame/drivers/eolith.cpp | 3 +- src/mame/drivers/eolith16.cpp | 3 +- src/mame/drivers/epos.cpp | 4 +- src/mame/drivers/eprom.cpp | 6 +- src/mame/drivers/equites.cpp | 2 +- src/mame/drivers/ertictac.cpp | 2 +- src/mame/drivers/esd16.cpp | 2 +- src/mame/drivers/esh.cpp | 5 +- src/mame/drivers/espial.cpp | 2 +- src/mame/drivers/esq1.cpp | 3 +- src/mame/drivers/esq5505.cpp | 6 +- src/mame/drivers/esqasr.cpp | 6 +- src/mame/drivers/esqkt.cpp | 3 +- src/mame/drivers/esqmr.cpp | 3 +- src/mame/drivers/esripsys.cpp | 2 +- src/mame/drivers/et3400.cpp | 2 +- src/mame/drivers/eti660.cpp | 2 +- src/mame/drivers/ettrivia.cpp | 2 +- src/mame/drivers/eva.cpp | 4 +- src/mame/drivers/excali64.cpp | 2 +- src/mame/drivers/exedexes.cpp | 2 +- src/mame/drivers/exelv.cpp | 4 +- src/mame/drivers/exerion.cpp | 2 +- src/mame/drivers/exidy440.cpp | 3 +- src/mame/drivers/exp85.cpp | 2 +- src/mame/drivers/expro02.cpp | 2 +- src/mame/drivers/exprraid.cpp | 2 +- src/mame/drivers/exterm.cpp | 2 +- src/mame/drivers/exzisus.cpp | 2 +- src/mame/drivers/f-32.cpp | 6 +- src/mame/drivers/f1gp.cpp | 6 +- src/mame/drivers/famibox.cpp | 2 +- src/mame/drivers/fantland.cpp | 8 +-- src/mame/drivers/fastfred.cpp | 2 +- src/mame/drivers/fastlane.cpp | 2 +- src/mame/drivers/fb01.cpp | 3 +- src/mame/drivers/fc100.cpp | 2 +- src/mame/drivers/fcombat.cpp | 2 +- src/mame/drivers/fcrash.cpp | 20 +++--- src/mame/drivers/feversoc.cpp | 2 +- src/mame/drivers/fidel6502.cpp | 20 +++--- src/mame/drivers/fidel68k.cpp | 6 +- src/mame/drivers/fidelmcs48.cpp | 2 +- src/mame/drivers/fidelz80.cpp | 14 ++-- src/mame/drivers/finalizr.cpp | 2 +- src/mame/drivers/fireball.cpp | 2 +- src/mame/drivers/firebeat.cpp | 6 +- src/mame/drivers/firefox.cpp | 3 +- src/mame/drivers/firetrap.cpp | 4 +- src/mame/drivers/firetrk.cpp | 2 +- src/mame/drivers/fitfight.cpp | 4 +- src/mame/drivers/flipjack.cpp | 2 +- src/mame/drivers/flkatck.cpp | 3 +- src/mame/drivers/flower.cpp | 2 +- src/mame/drivers/flstory.cpp | 8 +-- src/mame/drivers/fm7.cpp | 10 +-- src/mame/drivers/fmtowns.cpp | 3 +- src/mame/drivers/foodf.cpp | 2 +- src/mame/drivers/forte2.cpp | 2 +- src/mame/drivers/fortecar.cpp | 2 +- src/mame/drivers/fp1100.cpp | 2 +- src/mame/drivers/fp200.cpp | 2 +- src/mame/drivers/freekick.cpp | 4 +- src/mame/drivers/fresh.cpp | 2 +- src/mame/drivers/fromanc2.cpp | 6 +- src/mame/drivers/fromance.cpp | 6 +- src/mame/drivers/funkybee.cpp | 2 +- src/mame/drivers/funkyjet.cpp | 3 +- src/mame/drivers/funtech.cpp | 2 +- src/mame/drivers/funworld.cpp | 2 +- src/mame/drivers/funybubl.cpp | 2 +- src/mame/drivers/fuukifg2.cpp | 2 +- src/mame/drivers/fuukifg3.cpp | 3 +- src/mame/drivers/g627.cpp | 2 +- src/mame/drivers/gaelco.cpp | 8 +-- src/mame/drivers/gaelco2.cpp | 24 ++++--- src/mame/drivers/gaelco3d.cpp | 2 +- src/mame/drivers/gaiden.cpp | 6 +- src/mame/drivers/gal3.cpp | 3 +- src/mame/drivers/galaga.cpp | 8 +-- src/mame/drivers/galaxi.cpp | 2 +- src/mame/drivers/galaxia.cpp | 4 +- src/mame/drivers/galaxian.cpp | 2 +- src/mame/drivers/galaxold.cpp | 8 +-- src/mame/drivers/galaxy.cpp | 4 +- src/mame/drivers/galeb.cpp | 2 +- src/mame/drivers/galgames.cpp | 2 +- src/mame/drivers/galivan.cpp | 4 +- src/mame/drivers/galpani2.cpp | 3 +- src/mame/drivers/galpani3.cpp | 2 +- src/mame/drivers/galpanic.cpp | 2 +- src/mame/drivers/galspnbl.cpp | 2 +- src/mame/drivers/gamate.cpp | 3 +- src/mame/drivers/gambl186.cpp | 2 +- src/mame/drivers/gamecom.cpp | 2 +- src/mame/drivers/gameplan.cpp | 2 +- src/mame/drivers/gamepock.cpp | 2 +- src/mame/drivers/gamtor.cpp | 3 +- src/mame/drivers/gaplus.cpp | 2 +- src/mame/drivers/gatron.cpp | 2 +- src/mame/drivers/gauntlet.cpp | 3 +- src/mame/drivers/gb.cpp | 12 ++-- src/mame/drivers/gba.cpp | 3 +- src/mame/drivers/gberet.cpp | 4 +- src/mame/drivers/gcpinbal.cpp | 2 +- src/mame/drivers/gei.cpp | 2 +- src/mame/drivers/geneve.cpp | 2 +- src/mame/drivers/ggconnie.cpp | 3 +- src/mame/drivers/ghosteo.cpp | 3 +- src/mame/drivers/gijoe.cpp | 3 +- src/mame/drivers/ginganin.cpp | 2 +- src/mame/drivers/gkigt.cpp | 2 +- src/mame/drivers/gladiatr.cpp | 4 +- src/mame/drivers/glasgow.cpp | 2 +- src/mame/drivers/glass.cpp | 2 +- src/mame/drivers/gluck2.cpp | 2 +- src/mame/drivers/gmaster.cpp | 2 +- src/mame/drivers/gng.cpp | 2 +- src/mame/drivers/go2000.cpp | 2 +- src/mame/drivers/goal92.cpp | 2 +- src/mame/drivers/goindol.cpp | 2 +- src/mame/drivers/gokidetor.cpp | 2 +- src/mame/drivers/goldngam.cpp | 2 +- src/mame/drivers/goldnpkr.cpp | 24 +++---- src/mame/drivers/goldstar.cpp | 40 +++++------ src/mame/drivers/gomoku.cpp | 2 +- src/mame/drivers/good.cpp | 3 +- src/mame/drivers/goodejan.cpp | 2 +- src/mame/drivers/gotcha.cpp | 2 +- src/mame/drivers/gottlieb.cpp | 4 +- src/mame/drivers/gotya.cpp | 2 +- src/mame/drivers/gp2x.cpp | 3 +- src/mame/drivers/gp32.cpp | 3 +- src/mame/drivers/gp_1.cpp | 2 +- src/mame/drivers/gpworld.cpp | 3 +- src/mame/drivers/gradius3.cpp | 3 +- src/mame/drivers/grchamp.cpp | 2 +- src/mame/drivers/gridcomp.cpp | 2 +- src/mame/drivers/gridlee.cpp | 2 +- src/mame/drivers/gstream.cpp | 4 +- src/mame/drivers/gstriker.cpp | 3 +- src/mame/drivers/gsword.cpp | 4 +- src/mame/drivers/gticlub.cpp | 6 +- src/mame/drivers/gts80.cpp | 2 +- src/mame/drivers/gts80a.cpp | 2 +- src/mame/drivers/gts80b.cpp | 2 +- src/mame/drivers/guab.cpp | 2 +- src/mame/drivers/gumbo.cpp | 3 +- src/mame/drivers/gundealr.cpp | 2 +- src/mame/drivers/gunpey.cpp | 3 +- src/mame/drivers/gunsmoke.cpp | 2 +- src/mame/drivers/gyruss.cpp | 3 +- src/mame/drivers/h19.cpp | 2 +- src/mame/drivers/h8.cpp | 2 +- src/mame/drivers/halleys.cpp | 2 +- src/mame/drivers/hanaawas.cpp | 2 +- src/mame/drivers/hankin.cpp | 2 +- src/mame/drivers/harddriv.cpp | 7 +- src/mame/drivers/hcastle.cpp | 2 +- src/mame/drivers/hexion.cpp | 2 +- src/mame/drivers/hh_amis2k.cpp | 2 +- src/mame/drivers/hh_cop400.cpp | 24 +++---- src/mame/drivers/hh_hmcs40.cpp | 60 ++++++++-------- src/mame/drivers/hh_melps4.cpp | 4 +- src/mame/drivers/hh_pic16.cpp | 24 +++---- src/mame/drivers/hh_sm510.cpp | 128 +++++++++++++++++------------------ src/mame/drivers/hh_tms1k.cpp | 124 ++++++++++++++++----------------- src/mame/drivers/hh_ucom4.cpp | 40 +++++------ src/mame/drivers/hideseek.cpp | 3 +- src/mame/drivers/higemaru.cpp | 2 +- src/mame/drivers/highvdeo.cpp | 8 +-- src/mame/drivers/hikaru.cpp | 3 +- src/mame/drivers/himesiki.cpp | 2 +- src/mame/drivers/hitme.cpp | 2 +- src/mame/drivers/hitpoker.cpp | 2 +- src/mame/drivers/hnayayoi.cpp | 2 +- src/mame/drivers/holeland.cpp | 4 +- src/mame/drivers/homedata.cpp | 8 +-- src/mame/drivers/homelab.cpp | 6 +- src/mame/drivers/homerun.cpp | 2 +- src/mame/drivers/hornet.cpp | 3 +- src/mame/drivers/hotblock.cpp | 2 +- src/mame/drivers/hp16500.cpp | 12 ++-- src/mame/drivers/hp2640.cpp | 2 +- src/mame/drivers/hp48.cpp | 2 +- src/mame/drivers/hp64k.cpp | 2 +- src/mame/drivers/hp80.cpp | 2 +- src/mame/drivers/hp9845.cpp | 2 +- src/mame/drivers/hp9k_3xx.cpp | 6 +- src/mame/drivers/hprot1.cpp | 4 +- src/mame/drivers/hunter2.cpp | 2 +- src/mame/drivers/hvyunit.cpp | 2 +- src/mame/drivers/hx20.cpp | 2 +- src/mame/drivers/hyhoo.cpp | 2 +- src/mame/drivers/hyperspt.cpp | 2 +- src/mame/drivers/hyprduel.cpp | 4 +- src/mame/drivers/i7000.cpp | 2 +- src/mame/drivers/ibmpcjr.cpp | 2 +- src/mame/drivers/ice_bozopail.cpp | 2 +- src/mame/drivers/icecold.cpp | 2 +- src/mame/drivers/ichiban.cpp | 2 +- src/mame/drivers/idsa.cpp | 3 +- src/mame/drivers/igs009.cpp | 2 +- src/mame/drivers/igs011.cpp | 2 +- src/mame/drivers/igs017.cpp | 18 ++--- src/mame/drivers/igs_fear.cpp | 2 +- src/mame/drivers/igspoker.cpp | 2 +- src/mame/drivers/ikki.cpp | 2 +- src/mame/drivers/imds2.cpp | 2 +- src/mame/drivers/imolagp.cpp | 2 +- src/mame/drivers/inder.cpp | 8 +-- src/mame/drivers/indigo.cpp | 2 +- src/mame/drivers/indy_indigo2.cpp | 3 +- src/mame/drivers/instantm.cpp | 2 +- src/mame/drivers/instruct.cpp | 2 +- src/mame/drivers/inteladv.cpp | 3 +- src/mame/drivers/intv.cpp | 2 +- src/mame/drivers/inufuku.cpp | 2 +- src/mame/drivers/invqix.cpp | 3 +- src/mame/drivers/iq151.cpp | 2 +- src/mame/drivers/iqblock.cpp | 2 +- src/mame/drivers/irisha.cpp | 2 +- src/mame/drivers/irobot.cpp | 2 +- src/mame/drivers/ironhors.cpp | 2 +- src/mame/drivers/istellar.cpp | 3 +- src/mame/drivers/istrebiteli.cpp | 2 +- src/mame/drivers/itech32.cpp | 6 +- src/mame/drivers/itech8.cpp | 2 +- src/mame/drivers/itgambl2.cpp | 2 +- src/mame/drivers/itgambl3.cpp | 2 +- src/mame/drivers/itgamble.cpp | 2 +- src/mame/drivers/itt3030.cpp | 2 +- src/mame/drivers/jack.cpp | 2 +- src/mame/drivers/jackal.cpp | 3 +- src/mame/drivers/jackie.cpp | 2 +- src/mame/drivers/jackpool.cpp | 2 +- src/mame/drivers/jaguar.cpp | 6 +- src/mame/drivers/jailbrek.cpp | 2 +- src/mame/drivers/jalmah.cpp | 2 +- src/mame/drivers/jangou.cpp | 2 +- src/mame/drivers/jankenmn.cpp | 2 +- src/mame/drivers/jantotsu.cpp | 2 +- src/mame/drivers/jchan.cpp | 3 +- src/mame/drivers/jclub2.cpp | 2 +- src/mame/drivers/jeutel.cpp | 2 +- src/mame/drivers/joctronic.cpp | 4 +- src/mame/drivers/jollyjgr.cpp | 2 +- src/mame/drivers/jongkyo.cpp | 2 +- src/mame/drivers/joystand.cpp | 2 +- src/mame/drivers/jp.cpp | 4 +- src/mame/drivers/jpmimpct.cpp | 4 +- src/mame/drivers/jpmmps.cpp | 2 +- src/mame/drivers/jpms80.cpp | 2 +- src/mame/drivers/jpmsys5.cpp | 6 +- src/mame/drivers/jpmsys7.cpp | 3 +- src/mame/drivers/jr100.cpp | 2 +- src/mame/drivers/jr200.cpp | 2 +- src/mame/drivers/jrpacman.cpp | 2 +- src/mame/drivers/jtc.cpp | 2 +- src/mame/drivers/juicebox.cpp | 2 +- src/mame/drivers/jungleyo.cpp | 3 +- src/mame/drivers/junofrst.cpp | 2 +- src/mame/drivers/jupace.cpp | 2 +- src/mame/drivers/k28.cpp | 2 +- src/mame/drivers/kaneko16.cpp | 16 +++-- src/mame/drivers/kangaroo.cpp | 2 +- src/mame/drivers/karnov.cpp | 4 +- src/mame/drivers/kas89.cpp | 2 +- src/mame/drivers/kaypro.cpp | 4 +- src/mame/drivers/kc.cpp | 4 +- src/mame/drivers/kchamp.cpp | 4 +- src/mame/drivers/kdt6.cpp | 2 +- src/mame/drivers/kickgoal.cpp | 4 +- src/mame/drivers/kingdrby.cpp | 2 +- src/mame/drivers/kingobox.cpp | 4 +- src/mame/drivers/kingpin.cpp | 2 +- src/mame/drivers/klax.cpp | 2 +- src/mame/drivers/kncljoe.cpp | 2 +- src/mame/drivers/koftball.cpp | 3 +- src/mame/drivers/koikoi.cpp | 2 +- src/mame/drivers/konamigq.cpp | 3 +- src/mame/drivers/konamigv.cpp | 3 +- src/mame/drivers/konamigx.cpp | 3 +- src/mame/drivers/konblands.cpp | 2 +- src/mame/drivers/konendev.cpp | 3 +- src/mame/drivers/konmedal.cpp | 7 +- src/mame/drivers/konmedal68k.cpp | 3 +- src/mame/drivers/kontest.cpp | 3 +- src/mame/drivers/krz2000.cpp | 3 +- src/mame/drivers/ksayakyu.cpp | 2 +- src/mame/drivers/ksys573.cpp | 3 +- src/mame/drivers/kungfur.cpp | 3 +- src/mame/drivers/kurukuru.cpp | 2 +- src/mame/drivers/kyocera.cpp | 8 +-- src/mame/drivers/kyugo.cpp | 2 +- src/mame/drivers/labyrunr.cpp | 2 +- src/mame/drivers/ladybug.cpp | 4 +- src/mame/drivers/ladyfrog.cpp | 2 +- src/mame/drivers/laser3k.cpp | 2 +- src/mame/drivers/laserbas.cpp | 2 +- src/mame/drivers/laserbat.cpp | 4 +- src/mame/drivers/lasso.cpp | 2 +- src/mame/drivers/lastbank.cpp | 2 +- src/mame/drivers/lastduel.cpp | 4 +- src/mame/drivers/laz_aftrshok.cpp | 2 +- src/mame/drivers/laz_awetoss.cpp | 2 +- src/mame/drivers/laz_ribrac.cpp | 2 +- src/mame/drivers/lazercmd.cpp | 6 +- src/mame/drivers/lc80.cpp | 4 +- src/mame/drivers/lcmate2.cpp | 2 +- src/mame/drivers/ldplayer.cpp | 6 +- src/mame/drivers/learnwin.cpp | 2 +- src/mame/drivers/legionna.cpp | 12 ++-- src/mame/drivers/leland.cpp | 2 +- src/mame/drivers/lemmings.cpp | 3 +- src/mame/drivers/lethal.cpp | 3 +- src/mame/drivers/lethalj.cpp | 2 +- src/mame/drivers/lgp.cpp | 3 +- src/mame/drivers/liberate.cpp | 4 +- src/mame/drivers/liberatr.cpp | 2 +- src/mame/drivers/limenko.cpp | 5 +- src/mame/drivers/lisa.cpp | 2 +- src/mame/drivers/littlerb.cpp | 3 +- src/mame/drivers/lkage.cpp | 4 +- src/mame/drivers/llc.cpp | 2 +- src/mame/drivers/lockon.cpp | 3 +- src/mame/drivers/lola8a.cpp | 2 +- src/mame/drivers/looping.cpp | 2 +- src/mame/drivers/lordgun.cpp | 4 +- src/mame/drivers/lsasquad.cpp | 4 +- src/mame/drivers/ltcasino.cpp | 2 +- src/mame/drivers/ltd.cpp | 2 +- src/mame/drivers/luckgrln.cpp | 2 +- src/mame/drivers/lucky74.cpp | 2 +- src/mame/drivers/luckybal.cpp | 2 +- src/mame/drivers/lvcards.cpp | 2 +- src/mame/drivers/lviv.cpp | 2 +- src/mame/drivers/lwings.cpp | 4 +- src/mame/drivers/lynx.cpp | 5 +- src/mame/drivers/m10.cpp | 4 +- src/mame/drivers/m107.cpp | 3 +- src/mame/drivers/m14.cpp | 2 +- src/mame/drivers/m5.cpp | 2 +- src/mame/drivers/m63.cpp | 4 +- src/mame/drivers/m72.cpp | 2 +- src/mame/drivers/m79amb.cpp | 2 +- src/mame/drivers/m90.cpp | 2 +- src/mame/drivers/m92.cpp | 2 +- src/mame/drivers/mac.cpp | 26 ++++--- src/mame/drivers/mac128.cpp | 2 +- src/mame/drivers/macpci.cpp | 3 +- src/mame/drivers/macrossp.cpp | 3 +- src/mame/drivers/madalien.cpp | 2 +- src/mame/drivers/madmotor.cpp | 2 +- src/mame/drivers/magic10.cpp | 2 +- src/mame/drivers/magicard.cpp | 2 +- src/mame/drivers/magicfly.cpp | 2 +- src/mame/drivers/magictg.cpp | 3 +- src/mame/drivers/magmax.cpp | 2 +- src/mame/drivers/magnum.cpp | 2 +- src/mame/drivers/magreel.cpp | 2 +- src/mame/drivers/mainevt.cpp | 4 +- src/mame/drivers/mainsnk.cpp | 2 +- src/mame/drivers/majorpkr.cpp | 2 +- src/mame/drivers/malzak.cpp | 2 +- src/mame/drivers/manohman.cpp | 2 +- src/mame/drivers/mappy.cpp | 6 +- src/mame/drivers/marineb.cpp | 2 +- src/mame/drivers/marinedt.cpp | 2 +- src/mame/drivers/markham.cpp | 2 +- src/mame/drivers/marywu.cpp | 2 +- src/mame/drivers/mastboy.cpp | 2 +- src/mame/drivers/mastboyo.cpp | 2 +- src/mame/drivers/matmania.cpp | 4 +- src/mame/drivers/maxaflex.cpp | 2 +- src/mame/drivers/maygay1b.cpp | 3 +- src/mame/drivers/maygayep.cpp | 2 +- src/mame/drivers/maygayv1.cpp | 2 +- src/mame/drivers/mazerbla.cpp | 2 +- src/mame/drivers/mbc200.cpp | 2 +- src/mame/drivers/mbc55x.cpp | 5 +- src/mame/drivers/mbee.cpp | 4 +- src/mame/drivers/mc10.cpp | 4 +- src/mame/drivers/mc1000.cpp | 2 +- src/mame/drivers/mc1502.cpp | 2 +- src/mame/drivers/mcatadv.cpp | 2 +- src/mame/drivers/mcr.cpp | 3 +- src/mame/drivers/mcr3.cpp | 3 +- src/mame/drivers/mcr68.cpp | 2 +- src/mame/drivers/meadows.cpp | 4 +- src/mame/drivers/mediagx.cpp | 3 +- src/mame/drivers/megasys1.cpp | 10 +-- src/mame/drivers/megazone.cpp | 2 +- src/mame/drivers/meijinsn.cpp | 2 +- src/mame/drivers/mekd2.cpp | 2 +- src/mame/drivers/mephisto.cpp | 2 +- src/mame/drivers/mephisto_montec.cpp | 2 +- src/mame/drivers/mephistp.cpp | 2 +- src/mame/drivers/merit.cpp | 2 +- src/mame/drivers/meritm.cpp | 2 +- src/mame/drivers/mermaid.cpp | 2 +- src/mame/drivers/metlclsh.cpp | 2 +- src/mame/drivers/metlfrzr.cpp | 2 +- src/mame/drivers/metro.cpp | 43 ++++++------ src/mame/drivers/mexico86.cpp | 2 +- src/mame/drivers/meyc8080.cpp | 2 +- src/mame/drivers/meyc8088.cpp | 2 +- src/mame/drivers/mgavegas.cpp | 2 +- src/mame/drivers/mhavoc.cpp | 2 +- src/mame/drivers/micro3d.cpp | 3 +- src/mame/drivers/micronic.cpp | 2 +- src/mame/drivers/micropin.cpp | 2 +- src/mame/drivers/microtan.cpp | 2 +- src/mame/drivers/microvsn.cpp | 2 +- src/mame/drivers/midas.cpp | 6 +- src/mame/drivers/midtunit.cpp | 2 +- src/mame/drivers/midyunit.cpp | 5 +- src/mame/drivers/mikie.cpp | 2 +- src/mame/drivers/mikro80.cpp | 2 +- src/mame/drivers/mikrosha.cpp | 2 +- src/mame/drivers/mil4000.cpp | 2 +- src/mame/drivers/milton6805.cpp | 2 +- src/mame/drivers/mini2440.cpp | 3 +- src/mame/drivers/miniboy7.cpp | 2 +- src/mame/drivers/mirage.cpp | 2 +- src/mame/drivers/mirax.cpp | 2 +- src/mame/drivers/missb2.cpp | 2 +- src/mame/drivers/missile.cpp | 2 +- src/mame/drivers/mitchell.cpp | 10 +-- src/mame/drivers/mjkjidai.cpp | 2 +- src/mame/drivers/mjsenpu.cpp | 2 +- src/mame/drivers/mjsister.cpp | 2 +- src/mame/drivers/mk14.cpp | 2 +- src/mame/drivers/mk2.cpp | 2 +- src/mame/drivers/mkit09.cpp | 4 +- src/mame/drivers/mlanding.cpp | 2 +- src/mame/drivers/mmagic.cpp | 2 +- src/mame/drivers/mmm.cpp | 2 +- src/mame/drivers/model1.cpp | 3 +- src/mame/drivers/model2.cpp | 3 +- src/mame/drivers/model3.cpp | 12 ++-- src/mame/drivers/mogura.cpp | 3 +- src/mame/drivers/mole.cpp | 2 +- src/mame/drivers/molecular.cpp | 2 +- src/mame/drivers/momoko.cpp | 2 +- src/mame/drivers/monty.cpp | 2 +- src/mame/drivers/moo.cpp | 6 +- src/mame/drivers/mosaic.cpp | 2 +- src/mame/drivers/mouser.cpp | 2 +- src/mame/drivers/mpf1.cpp | 6 +- src/mame/drivers/mpu12wbk.cpp | 2 +- src/mame/drivers/mpu4dealem.cpp | 2 +- src/mame/drivers/mpu4vid.cpp | 3 +- src/mame/drivers/mpu5.cpp | 3 +- src/mame/drivers/mquake.cpp | 3 +- src/mame/drivers/mrdo.cpp | 2 +- src/mame/drivers/mrflea.cpp | 2 +- src/mame/drivers/mrgame.cpp | 3 +- src/mame/drivers/mrjong.cpp | 2 +- src/mame/drivers/ms0515.cpp | 2 +- src/mame/drivers/ms32.cpp | 3 +- src/mame/drivers/msisaac.cpp | 2 +- src/mame/drivers/msx.cpp | 6 +- src/mame/drivers/mtx.cpp | 2 +- src/mame/drivers/mugsmash.cpp | 3 +- src/mame/drivers/multfish.cpp | 2 +- src/mame/drivers/multi8.cpp | 2 +- src/mame/drivers/multigam.cpp | 2 +- src/mame/drivers/munchmo.cpp | 2 +- src/mame/drivers/murogem.cpp | 2 +- src/mame/drivers/murogmbl.cpp | 4 +- src/mame/drivers/mustache.cpp | 2 +- src/mame/drivers/mwarr.cpp | 2 +- src/mame/drivers/myb3k.cpp | 2 +- src/mame/drivers/mycom.cpp | 2 +- src/mame/drivers/mystston.cpp | 2 +- src/mame/drivers/mystwarr.cpp | 3 +- src/mame/drivers/myvision.cpp | 2 +- src/mame/drivers/mz2000.cpp | 2 +- src/mame/drivers/mz2500.cpp | 2 +- src/mame/drivers/mz3500.cpp | 2 +- src/mame/drivers/mz700.cpp | 2 +- src/mame/drivers/mz80.cpp | 2 +- src/mame/drivers/n64.cpp | 3 +- src/mame/drivers/nakajies.cpp | 2 +- src/mame/drivers/namcofl.cpp | 3 +- src/mame/drivers/namcona1.cpp | 3 +- src/mame/drivers/namconb1.cpp | 6 +- src/mame/drivers/namcond1.cpp | 3 +- src/mame/drivers/namcos1.cpp | 3 +- src/mame/drivers/namcos10.cpp | 6 +- src/mame/drivers/namcos11.cpp | 3 +- src/mame/drivers/namcos12.cpp | 3 +- src/mame/drivers/namcos2.cpp | 21 ++++-- src/mame/drivers/namcos21.cpp | 9 ++- src/mame/drivers/namcos22.cpp | 21 +++--- src/mame/drivers/namcos23.cpp | 9 ++- src/mame/drivers/namcos86.cpp | 2 +- src/mame/drivers/naomi.cpp | 3 +- src/mame/drivers/naughtyb.cpp | 4 +- src/mame/drivers/nbmj8688.cpp | 4 +- src/mame/drivers/nbmj8891.cpp | 2 +- src/mame/drivers/nbmj8900.cpp | 2 +- src/mame/drivers/nbmj8991.cpp | 4 +- src/mame/drivers/nbmj9195.cpp | 2 +- src/mame/drivers/nc.cpp | 2 +- src/mame/drivers/nemesis.cpp | 25 ++++--- src/mame/drivers/neogeo.cpp | 5 +- src/mame/drivers/neoprint.cpp | 6 +- src/mame/drivers/neptunp2.cpp | 2 +- src/mame/drivers/nes.cpp | 2 +- src/mame/drivers/nes_vt.cpp | 2 +- src/mame/drivers/news.cpp | 2 +- src/mame/drivers/ngp.cpp | 3 +- src/mame/drivers/nightgal.cpp | 2 +- src/mame/drivers/ninjakd2.cpp | 2 +- src/mame/drivers/ninjaw.cpp | 6 +- src/mame/drivers/nitedrvr.cpp | 2 +- src/mame/drivers/nmg5.cpp | 2 +- src/mame/drivers/nmk16.cpp | 47 ++++++------- src/mame/drivers/nmkmedal.cpp | 2 +- src/mame/drivers/norautp.cpp | 2 +- src/mame/drivers/notechan.cpp | 2 +- src/mame/drivers/notetaker.cpp | 3 +- src/mame/drivers/nova2001.cpp | 8 +-- src/mame/drivers/novag6502.cpp | 6 +- src/mame/drivers/novag68k.cpp | 2 +- src/mame/drivers/novagmcs48.cpp | 2 +- src/mame/drivers/nsm.cpp | 3 +- src/mame/drivers/nss.cpp | 3 +- src/mame/drivers/nwk-tr.cpp | 3 +- src/mame/drivers/nycaptor.cpp | 6 +- src/mame/drivers/nyny.cpp | 2 +- src/mame/drivers/octopus.cpp | 2 +- src/mame/drivers/odyssey2.cpp | 8 +-- src/mame/drivers/offtwall.cpp | 2 +- src/mame/drivers/ohmygod.cpp | 2 +- src/mame/drivers/ojankohs.cpp | 8 +-- src/mame/drivers/olibochu.cpp | 2 +- src/mame/drivers/omegrace.cpp | 2 +- src/mame/drivers/ondra.cpp | 2 +- src/mame/drivers/oneshot.cpp | 2 +- src/mame/drivers/onetwo.cpp | 2 +- src/mame/drivers/opwolf.cpp | 6 +- src/mame/drivers/orao.cpp | 2 +- src/mame/drivers/orbit.cpp | 3 +- src/mame/drivers/oric.cpp | 2 +- src/mame/drivers/orion.cpp | 6 +- src/mame/drivers/osbexec.cpp | 2 +- src/mame/drivers/osborne1.cpp | 2 +- src/mame/drivers/osi.cpp | 4 +- src/mame/drivers/othello.cpp | 2 +- src/mame/drivers/othunder.cpp | 2 +- src/mame/drivers/overdriv.cpp | 3 +- src/mame/drivers/p2000t.cpp | 4 +- src/mame/drivers/p8k.cpp | 4 +- src/mame/drivers/pachifev.cpp | 2 +- src/mame/drivers/pacland.cpp | 2 +- src/mame/drivers/pacman.cpp | 2 +- src/mame/drivers/palm.cpp | 2 +- src/mame/drivers/pandoras.cpp | 2 +- src/mame/drivers/panicr.cpp | 2 +- src/mame/drivers/paradise.cpp | 2 +- src/mame/drivers/paranoia.cpp | 3 +- src/mame/drivers/parodius.cpp | 3 +- src/mame/drivers/partner.cpp | 2 +- src/mame/drivers/pasha2.cpp | 2 +- src/mame/drivers/pasopia7.cpp | 2 +- src/mame/drivers/pass.cpp | 2 +- src/mame/drivers/pastelg.cpp | 4 +- src/mame/drivers/patapata.cpp | 2 +- src/mame/drivers/pb1000.cpp | 2 +- src/mame/drivers/pbaction.cpp | 2 +- src/mame/drivers/pc100.cpp | 2 +- src/mame/drivers/pc1512.cpp | 4 +- src/mame/drivers/pc2000.cpp | 2 +- src/mame/drivers/pc4.cpp | 2 +- src/mame/drivers/pc6001.cpp | 2 +- src/mame/drivers/pc8001.cpp | 4 +- src/mame/drivers/pc8801.cpp | 2 +- src/mame/drivers/pc88va.cpp | 2 +- src/mame/drivers/pc9801.cpp | 5 +- src/mame/drivers/pcd.cpp | 2 +- src/mame/drivers/pce.cpp | 6 +- src/mame/drivers/pce220.cpp | 6 +- src/mame/drivers/pcfx.cpp | 4 +- src/mame/drivers/pcktgal.cpp | 2 +- src/mame/drivers/pcm.cpp | 2 +- src/mame/drivers/pcw.cpp | 2 +- src/mame/drivers/pcw16.cpp | 2 +- src/mame/drivers/pegasus.cpp | 2 +- src/mame/drivers/pencil2.cpp | 2 +- src/mame/drivers/pengadvb.cpp | 2 +- src/mame/drivers/pengo.cpp | 2 +- src/mame/drivers/pentagon.cpp | 3 +- src/mame/drivers/peplus.cpp | 2 +- src/mame/drivers/pes.cpp | 2 +- src/mame/drivers/pet.cpp | 6 +- src/mame/drivers/peyper.cpp | 2 +- src/mame/drivers/pgm.cpp | 2 +- src/mame/drivers/pgm2.cpp | 3 +- src/mame/drivers/phc25.cpp | 2 +- src/mame/drivers/phoenix.cpp | 4 +- src/mame/drivers/photon.cpp | 2 +- src/mame/drivers/photon2.cpp | 2 +- src/mame/drivers/phunsy.cpp | 2 +- src/mame/drivers/piggypas.cpp | 2 +- src/mame/drivers/pinball2k.cpp | 3 +- src/mame/drivers/pingpong.cpp | 2 +- src/mame/drivers/pinkiri8.cpp | 2 +- src/mame/drivers/pipedrm.cpp | 4 +- src/mame/drivers/pipeline.cpp | 2 +- src/mame/drivers/pirates.cpp | 2 +- src/mame/drivers/piratesh.cpp | 3 +- src/mame/drivers/pitnrun.cpp | 2 +- src/mame/drivers/pk8000.cpp | 2 +- src/mame/drivers/pk8020.cpp | 2 +- src/mame/drivers/pkscram.cpp | 2 +- src/mame/drivers/pktgaldx.cpp | 6 +- src/mame/drivers/play_1.cpp | 2 +- src/mame/drivers/play_2.cpp | 2 +- src/mame/drivers/play_3.cpp | 3 +- src/mame/drivers/playch10.cpp | 2 +- src/mame/drivers/playmark.cpp | 14 ++-- src/mame/drivers/plus4.cpp | 2 +- src/mame/drivers/pluto5.cpp | 3 +- src/mame/drivers/plygonet.cpp | 3 +- src/mame/drivers/pmd85.cpp | 2 +- src/mame/drivers/pockstat.cpp | 2 +- src/mame/drivers/pofo.cpp | 2 +- src/mame/drivers/poisk1.cpp | 2 +- src/mame/drivers/pokechmp.cpp | 2 +- src/mame/drivers/pokemini.cpp | 2 +- src/mame/drivers/poker72.cpp | 2 +- src/mame/drivers/polepos.cpp | 6 +- src/mame/drivers/polgar.cpp | 2 +- src/mame/drivers/policetr.cpp | 3 +- src/mame/drivers/poly.cpp | 2 +- src/mame/drivers/poly88.cpp | 2 +- src/mame/drivers/polyplay.cpp | 2 +- src/mame/drivers/pong.cpp | 6 +- src/mame/drivers/poolshrk.cpp | 2 +- src/mame/drivers/popeye.cpp | 2 +- src/mame/drivers/popobear.cpp | 2 +- src/mame/drivers/popper.cpp | 2 +- src/mame/drivers/portrait.cpp | 2 +- src/mame/drivers/powerbal.cpp | 4 +- src/mame/drivers/powerins.cpp | 2 +- src/mame/drivers/pp01.cpp | 2 +- src/mame/drivers/ppmast93.cpp | 2 +- src/mame/drivers/prehisle.cpp | 2 +- src/mame/drivers/primo.cpp | 2 +- src/mame/drivers/pro80.cpp | 2 +- src/mame/drivers/proconn.cpp | 3 +- src/mame/drivers/progolf.cpp | 2 +- src/mame/drivers/proteus3.cpp | 2 +- src/mame/drivers/psikyo.cpp | 8 +-- src/mame/drivers/psikyo4.cpp | 3 +- src/mame/drivers/psikyosh.cpp | 2 +- src/mame/drivers/psion.cpp | 2 +- src/mame/drivers/psx.cpp | 6 +- src/mame/drivers/psychic5.cpp | 4 +- src/mame/drivers/pt68k4.cpp | 4 +- src/mame/drivers/ptcsol.cpp | 2 +- src/mame/drivers/pturn.cpp | 2 +- src/mame/drivers/punchout.cpp | 4 +- src/mame/drivers/pv1000.cpp | 2 +- src/mame/drivers/pv2000.cpp | 2 +- src/mame/drivers/pve500.cpp | 2 +- src/mame/drivers/px4.cpp | 2 +- src/mame/drivers/px8.cpp | 2 +- src/mame/drivers/pyl601.cpp | 2 +- src/mame/drivers/pzletime.cpp | 2 +- src/mame/drivers/qdrmfgp.cpp | 6 +- src/mame/drivers/ql.cpp | 2 +- src/mame/drivers/quantum.cpp | 2 +- src/mame/drivers/quasar.cpp | 2 +- src/mame/drivers/quickpick5.cpp | 2 +- src/mame/drivers/quizdna.cpp | 2 +- src/mame/drivers/quizo.cpp | 2 +- src/mame/drivers/quizpani.cpp | 2 +- src/mame/drivers/quizpun2.cpp | 2 +- src/mame/drivers/quizshow.cpp | 2 +- src/mame/drivers/r2dtank.cpp | 2 +- src/mame/drivers/r2dx_v33.cpp | 4 +- src/mame/drivers/rabbit.cpp | 3 +- src/mame/drivers/rad_eu3a05.cpp | 2 +- src/mame/drivers/rad_eu3a14.cpp | 2 +- src/mame/drivers/radio86.cpp | 2 +- src/mame/drivers/raiden.cpp | 2 +- src/mame/drivers/raiden2.cpp | 4 +- src/mame/drivers/rallyx.cpp | 2 +- src/mame/drivers/rampart.cpp | 2 +- src/mame/drivers/rastan.cpp | 2 +- src/mame/drivers/rastersp.cpp | 3 +- src/mame/drivers/ravens.cpp | 4 +- src/mame/drivers/rbisland.cpp | 4 +- src/mame/drivers/rbmk.cpp | 3 +- src/mame/drivers/rc702.cpp | 2 +- src/mame/drivers/rc759.cpp | 2 +- src/mame/drivers/re900.cpp | 2 +- src/mame/drivers/realbrk.cpp | 3 +- src/mame/drivers/relief.cpp | 2 +- src/mame/drivers/renegade.cpp | 2 +- src/mame/drivers/replicator.cpp | 2 +- src/mame/drivers/retofinv.cpp | 2 +- src/mame/drivers/rex6000.cpp | 4 +- src/mame/drivers/rgum.cpp | 2 +- src/mame/drivers/risc2500.cpp | 2 +- src/mame/drivers/rltennis.cpp | 2 +- src/mame/drivers/rmhaihai.cpp | 2 +- src/mame/drivers/rmnimbus.cpp | 2 +- src/mame/drivers/rockrage.cpp | 3 +- src/mame/drivers/rohga.cpp | 12 ++-- src/mame/drivers/rollerg.cpp | 2 +- src/mame/drivers/rollrace.cpp | 3 +- src/mame/drivers/ron.cpp | 2 +- src/mame/drivers/rotaryf.cpp | 2 +- src/mame/drivers/roul.cpp | 2 +- src/mame/drivers/route16.cpp | 2 +- src/mame/drivers/rowamet.cpp | 2 +- src/mame/drivers/royalmah.cpp | 2 +- src/mame/drivers/rpunch.cpp | 4 +- src/mame/drivers/runaway.cpp | 2 +- src/mame/drivers/rungun.cpp | 3 +- src/mame/drivers/rx78.cpp | 2 +- src/mame/drivers/rz1.cpp | 2 +- src/mame/drivers/rzone.cpp | 4 +- src/mame/drivers/s11.cpp | 6 +- src/mame/drivers/s11a.cpp | 6 +- src/mame/drivers/s11b.cpp | 6 +- src/mame/drivers/s11c.cpp | 2 +- src/mame/drivers/s3.cpp | 2 +- src/mame/drivers/s4.cpp | 2 +- src/mame/drivers/s6.cpp | 4 +- src/mame/drivers/s6a.cpp | 4 +- src/mame/drivers/s7.cpp | 4 +- src/mame/drivers/s8.cpp | 2 +- src/mame/drivers/s8a.cpp | 2 +- src/mame/drivers/s9.cpp | 4 +- src/mame/drivers/safarir.cpp | 2 +- src/mame/drivers/samcoupe.cpp | 2 +- src/mame/drivers/sandscrp.cpp | 2 +- src/mame/drivers/sangho.cpp | 4 +- src/mame/drivers/sanremo.cpp | 2 +- src/mame/drivers/saturn.cpp | 3 +- src/mame/drivers/sauro.cpp | 2 +- src/mame/drivers/sbasketb.cpp | 2 +- src/mame/drivers/sbc6510.cpp | 2 +- src/mame/drivers/sbowling.cpp | 2 +- src/mame/drivers/sbrain.cpp | 2 +- src/mame/drivers/sbrkout.cpp | 2 +- src/mame/drivers/sbugger.cpp | 2 +- src/mame/drivers/sc1.cpp | 2 +- src/mame/drivers/sc2.cpp | 2 +- src/mame/drivers/scobra.cpp | 4 +- src/mame/drivers/scotrsht.cpp | 2 +- src/mame/drivers/scramble.cpp | 2 +- src/mame/drivers/scregg.cpp | 4 +- src/mame/drivers/scv.cpp | 2 +- src/mame/drivers/scyclone.cpp | 2 +- src/mame/drivers/sderby.cpp | 12 ++-- src/mame/drivers/seabattl.cpp | 2 +- src/mame/drivers/sealy.cpp | 2 +- src/mame/drivers/segac2.cpp | 2 +- src/mame/drivers/segacoin.cpp | 2 +- src/mame/drivers/segae.cpp | 2 +- src/mame/drivers/segag80r.cpp | 2 +- src/mame/drivers/segag80v.cpp | 2 +- src/mame/drivers/segahang.cpp | 9 ++- src/mame/drivers/segajw.cpp | 2 +- src/mame/drivers/segald.cpp | 3 +- src/mame/drivers/segam1.cpp | 2 +- src/mame/drivers/segaorun.cpp | 3 +- src/mame/drivers/segas16a.cpp | 2 +- src/mame/drivers/segas16b.cpp | 4 +- src/mame/drivers/segas18.cpp | 2 +- src/mame/drivers/segas24.cpp | 3 +- src/mame/drivers/segas32.cpp | 6 +- src/mame/drivers/segaufo.cpp | 2 +- src/mame/drivers/segaxbd.cpp | 9 ++- src/mame/drivers/segaybd.cpp | 3 +- src/mame/drivers/seibucats.cpp | 3 +- src/mame/drivers/seibuspi.cpp | 9 +-- src/mame/drivers/seicross.cpp | 2 +- src/mame/drivers/seicupbl.cpp | 2 +- src/mame/drivers/sengokmj.cpp | 2 +- src/mame/drivers/senjyo.cpp | 2 +- src/mame/drivers/seta.cpp | 93 ++++++++++++++----------- src/mame/drivers/seta2.cpp | 8 ++- src/mame/drivers/sf.cpp | 3 +- src/mame/drivers/sfbonus.cpp | 2 +- src/mame/drivers/sfcbox.cpp | 3 +- src/mame/drivers/sfkick.cpp | 2 +- src/mame/drivers/sg1000.cpp | 6 +- src/mame/drivers/sg1000a.cpp | 2 +- src/mame/drivers/shadfrce.cpp | 3 +- src/mame/drivers/shangha3.cpp | 6 +- src/mame/drivers/shanghai.cpp | 6 +- src/mame/drivers/shangkid.cpp | 4 +- src/mame/drivers/shaolins.cpp | 2 +- src/mame/drivers/shisen.cpp | 3 +- src/mame/drivers/shootaway2.cpp | 2 +- src/mame/drivers/shootout.cpp | 4 +- src/mame/drivers/shougi.cpp | 2 +- src/mame/drivers/shuuz.cpp | 2 +- src/mame/drivers/sidearms.cpp | 6 +- src/mame/drivers/sidepckt.cpp | 2 +- src/mame/drivers/sigmab52.cpp | 2 +- src/mame/drivers/sigmab98.cpp | 9 ++- src/mame/drivers/silkroad.cpp | 3 +- src/mame/drivers/silvmil.cpp | 2 +- src/mame/drivers/simpl156.cpp | 3 +- src/mame/drivers/simpsons.cpp | 3 +- src/mame/drivers/skeetsht.cpp | 2 +- src/mame/drivers/skimaxx.cpp | 3 +- src/mame/drivers/skullxbo.cpp | 2 +- src/mame/drivers/skyarmy.cpp | 2 +- src/mame/drivers/skydiver.cpp | 2 +- src/mame/drivers/skyfox.cpp | 2 +- src/mame/drivers/skykid.cpp | 2 +- src/mame/drivers/skylncr.cpp | 2 +- src/mame/drivers/skyraid.cpp | 2 +- src/mame/drivers/slapfght.cpp | 6 +- src/mame/drivers/slapshot.cpp | 6 +- src/mame/drivers/slc1.cpp | 2 +- src/mame/drivers/sliver.cpp | 3 +- src/mame/drivers/slotcarn.cpp | 2 +- src/mame/drivers/smc777.cpp | 2 +- src/mame/drivers/sms.cpp | 5 +- src/mame/drivers/sms_bootleg.cpp | 2 +- src/mame/drivers/smsmcorp.cpp | 2 +- src/mame/drivers/snes.cpp | 3 +- src/mame/drivers/snesb.cpp | 3 +- src/mame/drivers/snk.cpp | 12 ++-- src/mame/drivers/snk6502.cpp | 4 +- src/mame/drivers/snk68.cpp | 2 +- src/mame/drivers/snookr10.cpp | 2 +- src/mame/drivers/snowbros.cpp | 10 +-- src/mame/drivers/socrates.cpp | 4 +- src/mame/drivers/solomon.cpp | 2 +- src/mame/drivers/sonson.cpp | 2 +- src/mame/drivers/sorcerer.cpp | 2 +- src/mame/drivers/sothello.cpp | 2 +- src/mame/drivers/spaceg.cpp | 2 +- src/mame/drivers/spartanxtec.cpp | 2 +- src/mame/drivers/spbactn.cpp | 4 +- src/mame/drivers/spc1000.cpp | 2 +- src/mame/drivers/spc1500.cpp | 2 +- src/mame/drivers/spcforce.cpp | 2 +- src/mame/drivers/spdodgeb.cpp | 3 +- src/mame/drivers/special.cpp | 4 +- src/mame/drivers/spectra.cpp | 2 +- src/mame/drivers/spectrum.cpp | 2 +- src/mame/drivers/speedatk.cpp | 2 +- src/mame/drivers/speedbal.cpp | 2 +- src/mame/drivers/speedspn.cpp | 2 +- src/mame/drivers/spinb.cpp | 4 +- src/mame/drivers/splash.cpp | 6 +- src/mame/drivers/splus.cpp | 2 +- src/mame/drivers/spoker.cpp | 2 +- src/mame/drivers/spool99.cpp | 3 +- src/mame/drivers/sprcros2.cpp | 2 +- src/mame/drivers/sprint2.cpp | 7 +- src/mame/drivers/sprint4.cpp | 3 +- src/mame/drivers/spy.cpp | 2 +- src/mame/drivers/spyhuntertec.cpp | 2 +- src/mame/drivers/squale.cpp | 2 +- src/mame/drivers/srmp2.cpp | 6 +- src/mame/drivers/srmp6.cpp | 3 +- src/mame/drivers/srumbler.cpp | 2 +- src/mame/drivers/sshangha.cpp | 3 +- src/mame/drivers/ssingles.cpp | 2 +- src/mame/drivers/sslam.cpp | 4 +- src/mame/drivers/ssozumo.cpp | 2 +- src/mame/drivers/ssrj.cpp | 2 +- src/mame/drivers/ssv.cpp | 3 +- src/mame/drivers/st_mp200.cpp | 2 +- src/mame/drivers/stadhero.cpp | 2 +- src/mame/drivers/starcrus.cpp | 2 +- src/mame/drivers/starfire.cpp | 2 +- src/mame/drivers/stargame.cpp | 4 +- src/mame/drivers/starshp1.cpp | 2 +- src/mame/drivers/starwars.cpp | 2 +- src/mame/drivers/statriv2.cpp | 2 +- src/mame/drivers/stellafr.cpp | 2 +- src/mame/drivers/stfight.cpp | 2 +- src/mame/drivers/stlforce.cpp | 2 +- src/mame/drivers/strnskil.cpp | 2 +- src/mame/drivers/studio2.cpp | 6 +- src/mame/drivers/stuntair.cpp | 2 +- src/mame/drivers/stv.cpp | 3 +- src/mame/drivers/sub.cpp | 2 +- src/mame/drivers/subhuntr.cpp | 2 +- src/mame/drivers/subs.cpp | 3 +- src/mame/drivers/subsino.cpp | 10 +-- src/mame/drivers/subsino2.cpp | 6 +- src/mame/drivers/suna16.cpp | 12 ++-- src/mame/drivers/suna8.cpp | 10 +-- src/mame/drivers/supbtime.cpp | 2 +- src/mame/drivers/supdrapo.cpp | 2 +- src/mame/drivers/supduck.cpp | 2 +- src/mame/drivers/super80.cpp | 4 +- src/mame/drivers/supercrd.cpp | 2 +- src/mame/drivers/superdq.cpp | 3 +- src/mame/drivers/superqix.cpp | 6 +- src/mame/drivers/supertnk.cpp | 2 +- src/mame/drivers/superwng.cpp | 2 +- src/mame/drivers/suprgolf.cpp | 2 +- src/mame/drivers/suprloco.cpp | 2 +- src/mame/drivers/suprnova.cpp | 3 +- src/mame/drivers/suprridr.cpp | 2 +- src/mame/drivers/suprslam.cpp | 3 +- src/mame/drivers/supstarf.cpp | 2 +- src/mame/drivers/surpratk.cpp | 3 +- src/mame/drivers/sv8000.cpp | 2 +- src/mame/drivers/svi318.cpp | 2 +- src/mame/drivers/svision.cpp | 3 +- src/mame/drivers/svmu.cpp | 2 +- src/mame/drivers/sym1.cpp | 2 +- src/mame/drivers/system1.cpp | 2 +- src/mame/drivers/system16.cpp | 18 +++-- src/mame/drivers/tagteam.cpp | 2 +- src/mame/drivers/tail2nos.cpp | 3 +- src/mame/drivers/taito.cpp | 6 +- src/mame/drivers/taito_b.cpp | 34 +++++----- src/mame/drivers/taito_f2.cpp | 8 ++- src/mame/drivers/taito_f3.cpp | 2 +- src/mame/drivers/taito_h.cpp | 6 +- src/mame/drivers/taito_l.cpp | 10 +-- src/mame/drivers/taito_o.cpp | 2 +- src/mame/drivers/taito_x.cpp | 12 ++-- src/mame/drivers/taito_z.cpp | 39 ++++++----- src/mame/drivers/taitoair.cpp | 2 +- src/mame/drivers/taitogn.cpp | 3 +- src/mame/drivers/taitojc.cpp | 2 +- src/mame/drivers/taitosj.cpp | 2 +- src/mame/drivers/tamag1.cpp | 2 +- src/mame/drivers/tandy2k.cpp | 2 +- src/mame/drivers/tank8.cpp | 2 +- src/mame/drivers/tankbatt.cpp | 2 +- src/mame/drivers/tankbust.cpp | 2 +- src/mame/drivers/taotaido.cpp | 3 +- src/mame/drivers/tapatune.cpp | 3 +- src/mame/drivers/targeth.cpp | 2 +- src/mame/drivers/tasman.cpp | 3 +- src/mame/drivers/tatsumi.cpp | 12 ++-- src/mame/drivers/tattack.cpp | 2 +- src/mame/drivers/tavernie.cpp | 2 +- src/mame/drivers/taxidriv.cpp | 2 +- src/mame/drivers/tbowl.cpp | 2 +- src/mame/drivers/tceptor.cpp | 3 +- src/mame/drivers/tec1.cpp | 4 +- src/mame/drivers/tecmo.cpp | 2 +- src/mame/drivers/tecmo16.cpp | 3 +- src/mame/drivers/tecmosys.cpp | 3 +- src/mame/drivers/tehkanwc.cpp | 2 +- src/mame/drivers/tek405x.cpp | 4 +- src/mame/drivers/tek440x.cpp | 2 +- src/mame/drivers/tempest.cpp | 2 +- src/mame/drivers/terracre.cpp | 2 +- src/mame/drivers/tetrisp2.cpp | 20 ++++-- src/mame/drivers/tg100.cpp | 3 +- src/mame/drivers/thayers.cpp | 3 +- src/mame/drivers/thedealr.cpp | 2 +- src/mame/drivers/thedeep.cpp | 2 +- src/mame/drivers/thepit.cpp | 2 +- src/mame/drivers/thief.cpp | 2 +- src/mame/drivers/thomson.cpp | 2 +- src/mame/drivers/thoop2.cpp | 2 +- src/mame/drivers/thunderj.cpp | 2 +- src/mame/drivers/thunderx.cpp | 2 +- src/mame/drivers/ti99_4p.cpp | 2 +- src/mame/drivers/ti99_4x.cpp | 10 +-- src/mame/drivers/ti99_8.cpp | 6 +- src/mame/drivers/tiamc1.cpp | 2 +- src/mame/drivers/ticalc1x.cpp | 2 +- src/mame/drivers/tickee.cpp | 6 +- src/mame/drivers/tigeroad.cpp | 4 +- src/mame/drivers/tiki100.cpp | 2 +- src/mame/drivers/timelimt.cpp | 2 +- src/mame/drivers/tispeak.cpp | 8 +-- src/mame/drivers/tispellb.cpp | 2 +- src/mame/drivers/tk2000.cpp | 2 +- src/mame/drivers/tm990189.cpp | 4 +- src/mame/drivers/tmaster.cpp | 2 +- src/mame/drivers/tmc1800.cpp | 4 +- src/mame/drivers/tmc2000e.cpp | 2 +- src/mame/drivers/tmmjprd.cpp | 3 +- src/mame/drivers/tmnt.cpp | 32 +++++---- src/mame/drivers/tnzs.cpp | 2 +- src/mame/drivers/toaplan1.cpp | 18 ++--- src/mame/drivers/toaplan2.cpp | 45 ++++++------ src/mame/drivers/toki.cpp | 4 +- src/mame/drivers/tomcat.cpp | 3 +- src/mame/drivers/tonton.cpp | 2 +- src/mame/drivers/toobin.cpp | 3 +- src/mame/drivers/topspeed.cpp | 3 +- src/mame/drivers/toratora.cpp | 2 +- src/mame/drivers/tourtabl.cpp | 2 +- src/mame/drivers/tourvis.cpp | 3 +- src/mame/drivers/toypop.cpp | 2 +- src/mame/drivers/tp84.cpp | 2 +- src/mame/drivers/trackfld.cpp | 4 +- src/mame/drivers/tranz330.cpp | 2 +- src/mame/drivers/triplhnt.cpp | 2 +- src/mame/drivers/trs80.cpp | 2 +- src/mame/drivers/trs80dt1.cpp | 2 +- src/mame/drivers/truco.cpp | 2 +- src/mame/drivers/trucocl.cpp | 2 +- src/mame/drivers/trvmadns.cpp | 2 +- src/mame/drivers/trvquest.cpp | 2 +- src/mame/drivers/tryout.cpp | 2 +- src/mame/drivers/tsamurai.cpp | 6 +- src/mame/drivers/tsispch.cpp | 2 +- src/mame/drivers/ttchamp.cpp | 2 +- src/mame/drivers/tubep.cpp | 4 +- src/mame/drivers/tugboat.cpp | 2 +- src/mame/drivers/tumbleb.cpp | 14 ++-- src/mame/drivers/tunhunt.cpp | 2 +- src/mame/drivers/turrett.cpp | 3 +- src/mame/drivers/tutor.cpp | 2 +- src/mame/drivers/tv910.cpp | 2 +- src/mame/drivers/tv912.cpp | 2 +- src/mame/drivers/tv990.cpp | 2 +- src/mame/drivers/tvboy.cpp | 2 +- src/mame/drivers/tvc.cpp | 2 +- src/mame/drivers/tvgame.cpp | 2 +- src/mame/drivers/twin16.cpp | 6 +- src/mame/drivers/twincobr.cpp | 2 +- src/mame/drivers/twinkle.cpp | 3 +- src/mame/drivers/twins.cpp | 6 +- src/mame/drivers/tx1.cpp | 19 ++++-- src/mame/drivers/uapce.cpp | 3 +- src/mame/drivers/ultraman.cpp | 3 +- src/mame/drivers/ultratnk.cpp | 2 +- src/mame/drivers/ultrsprt.cpp | 3 +- src/mame/drivers/umipoker.cpp | 2 +- src/mame/drivers/unichamp.cpp | 2 +- src/mame/drivers/unico.cpp | 9 ++- src/mame/drivers/unior.cpp | 2 +- src/mame/drivers/univac.cpp | 2 +- src/mame/drivers/unkhorse.cpp | 2 +- src/mame/drivers/upscope.cpp | 3 +- src/mame/drivers/usgames.cpp | 2 +- src/mame/drivers/ut88.cpp | 4 +- src/mame/drivers/uzebox.cpp | 2 +- src/mame/drivers/v6809.cpp | 2 +- src/mame/drivers/vamphalf.cpp | 12 ++-- src/mame/drivers/vaportra.cpp | 2 +- src/mame/drivers/vastar.cpp | 2 +- src/mame/drivers/vball.cpp | 3 +- src/mame/drivers/vboy.cpp | 3 +- src/mame/drivers/vc4000.cpp | 2 +- src/mame/drivers/vcombat.cpp | 4 +- src/mame/drivers/vd.cpp | 3 +- src/mame/drivers/vector06.cpp | 2 +- src/mame/drivers/vectrex.cpp | 2 +- src/mame/drivers/vega.cpp | 2 +- src/mame/drivers/vegaeo.cpp | 3 +- src/mame/drivers/vendetta.cpp | 3 +- src/mame/drivers/vertigo.cpp | 3 +- src/mame/drivers/vg5k.cpp | 2 +- src/mame/drivers/vgmplay.cpp | 3 +- src/mame/drivers/vic10.cpp | 2 +- src/mame/drivers/vic20.cpp | 4 +- src/mame/drivers/vicdual.cpp | 26 +++---- src/mame/drivers/victor9k.cpp | 2 +- src/mame/drivers/vidbrain.cpp | 2 +- src/mame/drivers/videopin.cpp | 2 +- src/mame/drivers/videopkr.cpp | 2 +- src/mame/drivers/vigilant.cpp | 9 ++- src/mame/drivers/vindictr.cpp | 3 +- src/mame/drivers/vip.cpp | 2 +- src/mame/drivers/viper.cpp | 3 +- src/mame/drivers/vis.cpp | 3 +- src/mame/drivers/vixen.cpp | 2 +- src/mame/drivers/vk100.cpp | 2 +- src/mame/drivers/vlc.cpp | 2 +- src/mame/drivers/volfied.cpp | 2 +- src/mame/drivers/votrpss.cpp | 2 +- src/mame/drivers/votrtnt.cpp | 2 +- src/mame/drivers/voyager.cpp | 3 +- src/mame/drivers/vpoker.cpp | 2 +- src/mame/drivers/vroulet.cpp | 2 +- src/mame/drivers/vsnes.cpp | 6 +- src/mame/drivers/vtech1.cpp | 2 +- src/mame/drivers/vtech2.cpp | 2 +- src/mame/drivers/vulgus.cpp | 2 +- src/mame/drivers/wacky_gator.cpp | 2 +- src/mame/drivers/wallc.cpp | 2 +- src/mame/drivers/wardner.cpp | 2 +- src/mame/drivers/warpwarp.cpp | 4 +- src/mame/drivers/warriorb.cpp | 6 +- src/mame/drivers/wc90.cpp | 2 +- src/mame/drivers/wc90b.cpp | 2 +- src/mame/drivers/wecleman.cpp | 6 +- src/mame/drivers/welltris.cpp | 2 +- src/mame/drivers/wgp.cpp | 3 +- src/mame/drivers/wheelfir.cpp | 3 +- src/mame/drivers/wico.cpp | 2 +- src/mame/drivers/wildpkr.cpp | 4 +- src/mame/drivers/williams.cpp | 7 +- src/mame/drivers/wink.cpp | 2 +- src/mame/drivers/wiping.cpp | 2 +- src/mame/drivers/witch.cpp | 2 +- src/mame/drivers/wiz.cpp | 2 +- src/mame/drivers/wmg.cpp | 2 +- src/mame/drivers/wolfpack.cpp | 2 +- src/mame/drivers/wpc_an.cpp | 4 +- src/mame/drivers/wpc_dot.cpp | 2 +- src/mame/drivers/wpc_flip1.cpp | 2 +- src/mame/drivers/wpc_flip2.cpp | 2 +- src/mame/drivers/wrally.cpp | 2 +- src/mame/drivers/wswan.cpp | 3 +- src/mame/drivers/wwfsstar.cpp | 3 +- src/mame/drivers/wyvernf0.cpp | 2 +- src/mame/drivers/x07.cpp | 2 +- src/mame/drivers/x1.cpp | 3 +- src/mame/drivers/x1twin.cpp | 11 +-- src/mame/drivers/x68k.cpp | 3 +- src/mame/drivers/xain.cpp | 2 +- src/mame/drivers/xavix.cpp | 2 +- src/mame/drivers/xbox.cpp | 2 +- src/mame/drivers/xerox820.cpp | 4 +- src/mame/drivers/xexex.cpp | 3 +- src/mame/drivers/xmen.cpp | 6 +- src/mame/drivers/xorworld.cpp | 2 +- src/mame/drivers/xtheball.cpp | 2 +- src/mame/drivers/xxmissio.cpp | 2 +- src/mame/drivers/xybots.cpp | 3 +- src/mame/drivers/xyonix.cpp | 2 +- src/mame/drivers/y2.cpp | 2 +- src/mame/drivers/yiear.cpp | 2 +- src/mame/drivers/ymmu100.cpp | 3 +- src/mame/drivers/yunsun16.cpp | 6 +- src/mame/drivers/yunsung8.cpp | 3 +- src/mame/drivers/yuvomz80.cpp | 5 +- src/mame/drivers/z1013.cpp | 2 +- src/mame/drivers/z88.cpp | 2 +- src/mame/drivers/z9001.cpp | 2 +- src/mame/drivers/zac2650.cpp | 2 +- src/mame/drivers/zaccaria.cpp | 2 +- src/mame/drivers/zaurus.cpp | 2 +- src/mame/drivers/zaxxon.cpp | 8 +-- src/mame/drivers/zerozone.cpp | 2 +- src/mame/drivers/zn.cpp | 6 +- src/mame/drivers/zodiack.cpp | 2 +- src/mame/drivers/zorba.cpp | 2 +- src/mame/drivers/zr107.cpp | 6 +- src/mame/drivers/zrt80.cpp | 2 +- src/mame/drivers/zwackery.cpp | 2 +- src/mame/drivers/zx.cpp | 2 +- src/mame/etc/korgm1.cpp | 2 +- src/mame/etc/template_driver.cpp | 2 +- src/mame/machine/at.cpp | 2 +- src/mame/machine/cit101_kbd.cpp | 2 +- src/mame/machine/compiskb.cpp | 2 +- src/mame/machine/dec_lk201.cpp | 2 +- src/mame/machine/genpin.cpp | 2 +- src/mame/machine/hec2hrp.cpp | 2 +- src/mame/machine/inder_sb.cpp | 2 +- src/mame/machine/kay_kbd.cpp | 2 +- src/mame/machine/km035.cpp | 2 +- src/mame/machine/megadriv.cpp | 6 +- src/mame/machine/mm1kb.cpp | 2 +- src/mame/machine/mmboard.cpp | 2 +- src/mame/machine/mpu4.cpp | 3 +- src/mame/machine/ms7004.cpp | 2 +- src/mame/machine/pcd_kbd.cpp | 2 +- src/mame/machine/st0016.cpp | 3 +- src/mame/machine/teleprinter.cpp | 2 +- src/mame/machine/v1050kb.cpp | 2 +- src/mame/machine/vt100_kbd.cpp | 2 +- src/mame/machine/wangpckb.cpp | 2 +- src/mame/machine/zorbakbd.cpp | 2 +- src/mame/video/911_vdt.cpp | 2 +- src/mame/video/cidelsa.cpp | 6 +- src/mame/video/comx35.cpp | 4 +- src/mame/video/pecom.cpp | 2 +- src/mame/video/tmc1800.cpp | 4 +- src/mame/video/tmc600.cpp | 2 +- 1600 files changed, 3250 insertions(+), 2723 deletions(-) (limited to 'src/mame') diff --git a/src/mame/audio/alesis.cpp b/src/mame/audio/alesis.cpp index a49f25a6ecb..39fb0609fb6 100644 --- a/src/mame/audio/alesis.cpp +++ b/src/mame/audio/alesis.cpp @@ -42,8 +42,10 @@ alesis_dm3ag_device::alesis_dm3ag_device(const machine_config &mconfig, const ch //------------------------------------------------- MACHINE_CONFIG_START(alesis_dm3ag_device::device_add_mconfig) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker1", "rspeaker1") - MCFG_SPEAKER_STANDARD_STEREO("lspeaker2", "rspeaker2") + SPEAKER(config, "lspeaker1").front_left(); + SPEAKER(config, "rspeaker1").front_right(); + SPEAKER(config, "lspeaker2").front_left(); + SPEAKER(config, "rspeaker2").front_right(); MCFG_DEVICE_ADD("dac", PCM54HP, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker1", 1.0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker1", 1.0) // PCM54HP DAC + R63/R73-75 + Sample and hold MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT) diff --git a/src/mame/audio/asteroid.cpp b/src/mame/audio/asteroid.cpp index afcb68898bf..5abe45484c3 100644 --- a/src/mame/audio/asteroid.cpp +++ b/src/mame/audio/asteroid.cpp @@ -316,7 +316,7 @@ WRITE8_MEMBER(asteroid_state::asteroid_noise_reset_w) MACHINE_CONFIG_START(asteroid_state::asteroid_sound) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("discrete", DISCRETE, asteroid_discrete) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.4) @@ -332,7 +332,7 @@ MACHINE_CONFIG_END MACHINE_CONFIG_START(asteroid_state::astdelux_sound) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("discrete", DISCRETE, astdelux_discrete) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/audio/astrof.cpp b/src/mame/audio/astrof.cpp index 88fbb45e2ee..497591479e0 100644 --- a/src/mame/audio/astrof.cpp +++ b/src/mame/audio/astrof.cpp @@ -140,7 +140,7 @@ static const char *const astrof_sample_names[] = }; MACHINE_CONFIG_START(astrof_state::astrof_audio) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("samples", SAMPLES) MCFG_SAMPLES_CHANNELS(4) MCFG_SAMPLES_NAMES(astrof_sample_names) @@ -196,7 +196,7 @@ WRITE8_MEMBER(astrof_state::tomahawk_audio_w) MACHINE_CONFIG_START(astrof_state::tomahawk_audio) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("snsnd", SN76477) MCFG_SN76477_NOISE_PARAMS(0, 0, 0) // noise + filter: N/C MCFG_SN76477_DECAY_RES(0) // decay_res N/C diff --git a/src/mame/audio/avalnche.cpp b/src/mame/audio/avalnche.cpp index 2803c2da03a..e462d19cfb2 100644 --- a/src/mame/audio/avalnche.cpp +++ b/src/mame/audio/avalnche.cpp @@ -104,7 +104,7 @@ DISCRETE_SOUND_END MACHINE_CONFIG_START(avalnche_state::avalnche_sound) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("discrete", DISCRETE, avalnche_discrete) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/audio/bwidow.cpp b/src/mame/audio/bwidow.cpp index 1d0c55bab27..a4dea00bb78 100644 --- a/src/mame/audio/bwidow.cpp +++ b/src/mame/audio/bwidow.cpp @@ -150,7 +150,7 @@ DISCRETE_SOUND_END MACHINE_CONFIG_START(bwidow_state::bwidow_audio) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("pokey1", POKEY, MASTER_CLOCK / 8) /* C/D3 */ MCFG_POKEY_ALLPOT_R_CB(IOPORT("DSW0")) diff --git a/src/mame/audio/bzone.cpp b/src/mame/audio/bzone.cpp index b5a912b3b0c..aada4df6c6f 100644 --- a/src/mame/audio/bzone.cpp +++ b/src/mame/audio/bzone.cpp @@ -399,7 +399,7 @@ WRITE8_MEMBER(bzone_state::bzone_sounds_w) MACHINE_CONFIG_START(bzone_state::bzone_audio) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("pokey", POKEY, BZONE_MASTER_CLOCK / 8) MCFG_POKEY_ALLPOT_R_CB(IOPORT("IN3")) diff --git a/src/mame/audio/cage.cpp b/src/mame/audio/cage.cpp index aec6a37d83d..0c35c32a044 100644 --- a/src/mame/audio/cage.cpp +++ b/src/mame/audio/cage.cpp @@ -637,7 +637,8 @@ MACHINE_CONFIG_START(atari_cage_device::device_add_mconfig) MCFG_TIMER_DEVICE_ADD("cage_timer1", DEVICE_SELF, atari_cage_device, cage_timer_callback) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_16_ADD("soundlatch") diff --git a/src/mame/audio/cheekyms.cpp b/src/mame/audio/cheekyms.cpp index 238732f4e19..85359b96afb 100644 --- a/src/mame/audio/cheekyms.cpp +++ b/src/mame/audio/cheekyms.cpp @@ -38,7 +38,7 @@ WRITE_LINE_MEMBER(cheekyms_audio_device::coin_extra_w) { m_coin_extra->write_li MACHINE_CONFIG_START(cheekyms_audio_device::device_add_mconfig) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("sound_nl", NETLIST_SOUND, 48000) MCFG_NETLIST_SETUP(cheekyms) diff --git a/src/mame/audio/cinemat.cpp b/src/mame/audio/cinemat.cpp index 48a23311981..68d999b434c 100644 --- a/src/mame/audio/cinemat.cpp +++ b/src/mame/audio/cinemat.cpp @@ -159,7 +159,7 @@ MACHINE_CONFIG_START(cinemat_state::spacewar_sound) MCFG_ADDRESSABLE_LATCH_Q3_OUT_CB(WRITELINE(*this, cinemat_state, spacewar_sound3_w)) MCFG_ADDRESSABLE_LATCH_Q4_OUT_CB(WRITELINE(*this, cinemat_state, spacewar_sound4_w)) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("samples", SAMPLES) MCFG_SAMPLES_CHANNELS(8) @@ -211,7 +211,7 @@ MACHINE_CONFIG_START(cinemat_state::barrier_sound) MCFG_ADDRESSABLE_LATCH_Q1_OUT_CB(WRITELINE(*this, cinemat_state, barrier_sound1_w)) MCFG_ADDRESSABLE_LATCH_Q2_OUT_CB(WRITELINE(*this, cinemat_state, barrier_sound2_w)) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("samples", SAMPLES) MCFG_SAMPLES_CHANNELS(3) @@ -268,7 +268,7 @@ MACHINE_CONFIG_START(cinemat_state::speedfrk_sound) MCFG_ADDRESSABLE_LATCH_Q3_OUT_CB(WRITELINE(*this, cinemat_state, speedfrk_sound3_w)) MCFG_ADDRESSABLE_LATCH_Q4_OUT_CB(WRITELINE(*this, cinemat_state, speedfrk_sound4_w)) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("samples", SAMPLES) MCFG_SAMPLES_CHANNELS(1) @@ -353,7 +353,7 @@ MACHINE_CONFIG_START(cinemat_state::starhawk_sound) MCFG_ADDRESSABLE_LATCH_Q4_OUT_CB(WRITELINE(*this, cinemat_state, starhawk_sound4_w)) MCFG_ADDRESSABLE_LATCH_Q7_OUT_CB(WRITELINE(*this, cinemat_state, starhawk_sound7_w)) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("samples", SAMPLES) MCFG_SAMPLES_CHANNELS(5) @@ -432,7 +432,7 @@ MACHINE_CONFIG_START(cinemat_state::sundance_sound) MCFG_ADDRESSABLE_LATCH_Q4_OUT_CB(WRITELINE(*this, cinemat_state, sundance_sound4_w)) MCFG_ADDRESSABLE_LATCH_Q7_OUT_CB(WRITELINE(*this, cinemat_state, sundance_sound7_w)) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("samples", SAMPLES) MCFG_SAMPLES_CHANNELS(6) @@ -510,7 +510,7 @@ MACHINE_CONFIG_START(cinemat_state::tailg_sound) MCFG_DEVICE_MODIFY("outlatch") MCFG_ADDRESSABLE_LATCH_Q4_OUT_CB(WRITELINE(*this, cinemat_state, tailg_sound_w)) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("samples", SAMPLES) MCFG_SAMPLES_CHANNELS(6) @@ -584,7 +584,7 @@ MACHINE_CONFIG_START(cinemat_state::warrior_sound) MCFG_ADDRESSABLE_LATCH_Q3_OUT_CB(WRITELINE(*this, cinemat_state, warrior_sound3_w)) MCFG_ADDRESSABLE_LATCH_Q4_OUT_CB(WRITELINE(*this, cinemat_state, warrior_sound4_w)) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("samples", SAMPLES) MCFG_SAMPLES_CHANNELS(5) @@ -684,7 +684,7 @@ MACHINE_CONFIG_START(cinemat_state::armora_sound) MCFG_ADDRESSABLE_LATCH_Q3_OUT_CB(WRITELINE(*this, cinemat_state, armora_sound3_w)) MCFG_ADDRESSABLE_LATCH_Q4_OUT_CB(WRITELINE(*this, cinemat_state, armora_sound4_w)) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("samples", SAMPLES) MCFG_SAMPLES_CHANNELS(7) @@ -781,7 +781,7 @@ MACHINE_CONFIG_START(cinemat_state::ripoff_sound) MCFG_ADDRESSABLE_LATCH_Q4_OUT_CB(WRITELINE(*this, cinemat_state, ripoff_sound4_w)) MCFG_ADDRESSABLE_LATCH_Q7_OUT_CB(WRITELINE(*this, cinemat_state, ripoff_sound7_w)) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("samples", SAMPLES) MCFG_SAMPLES_CHANNELS(6) @@ -898,7 +898,7 @@ MACHINE_CONFIG_START(cinemat_state::starcas_sound) MCFG_ADDRESSABLE_LATCH_Q3_OUT_CB(WRITELINE(*this, cinemat_state, starcas_sound3_w)) MCFG_ADDRESSABLE_LATCH_Q4_OUT_CB(WRITELINE(*this, cinemat_state, starcas_sound4_w)) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("samples", SAMPLES) MCFG_SAMPLES_CHANNELS(8) @@ -1030,7 +1030,7 @@ MACHINE_CONFIG_START(cinemat_state::solarq_sound) MCFG_ADDRESSABLE_LATCH_Q1_OUT_CB(WRITELINE(*this, cinemat_state, solarq_sound1_w)) MCFG_ADDRESSABLE_LATCH_Q4_OUT_CB(WRITELINE(*this, cinemat_state, solarq_sound4_w)) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("samples", SAMPLES) MCFG_SAMPLES_CHANNELS(8) @@ -1170,7 +1170,7 @@ MACHINE_CONFIG_START(cinemat_state::boxingb_sound) MCFG_ADDRESSABLE_LATCH_Q3_OUT_CB(WRITELINE(*this, cinemat_state, boxingb_sound3_w)) MCFG_ADDRESSABLE_LATCH_Q4_OUT_CB(WRITELINE(*this, cinemat_state, boxingb_sound4_w)) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("samples", SAMPLES) MCFG_SAMPLES_CHANNELS(12) @@ -1287,7 +1287,7 @@ MACHINE_CONFIG_START(cinemat_state::wotw_sound) MCFG_ADDRESSABLE_LATCH_Q3_OUT_CB(WRITELINE(*this, cinemat_state, wotw_sound3_w)) MCFG_ADDRESSABLE_LATCH_Q4_OUT_CB(WRITELINE(*this, cinemat_state, wotw_sound4_w)) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("samples", SAMPLES) MCFG_SAMPLES_CHANNELS(8) @@ -1414,7 +1414,7 @@ MACHINE_CONFIG_START(cinemat_state::demon_sound) MCFG_ADDRESSABLE_LATCH_Q4_OUT_CB(WRITELINE(*this, cinemat_state, demon_sound4_w)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay1", AY8910, 3579545) MCFG_AY8910_PORT_A_READ_CB(READ8(*this, cinemat_state, sound_porta_r)) diff --git a/src/mame/audio/copsnrob.cpp b/src/mame/audio/copsnrob.cpp index 0b4e04eb07a..264bf1c57fc 100644 --- a/src/mame/audio/copsnrob.cpp +++ b/src/mame/audio/copsnrob.cpp @@ -697,7 +697,8 @@ WRITE_LINE_MEMBER(copsnrob_state::one_start_w) MACHINE_CONFIG_START(copsnrob_state::copsnrob_audio) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("discrete", DISCRETE, copsnrob_discrete) MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) diff --git a/src/mame/audio/crbaloon.cpp b/src/mame/audio/crbaloon.cpp index 4e1e15d6590..48f4236aabe 100644 --- a/src/mame/audio/crbaloon.cpp +++ b/src/mame/audio/crbaloon.cpp @@ -140,7 +140,7 @@ DISCRETE_SOUND_END MACHINE_CONFIG_START(crbaloon_state::crbaloon_audio) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("snsnd", SN76477) MCFG_SN76477_NOISE_PARAMS(RES_K(47), RES_K(330), CAP_P(470)) // noise + filter diff --git a/src/mame/audio/dcs.cpp b/src/mame/audio/dcs.cpp index a89370ea1d0..34207213b53 100644 --- a/src/mame/audio/dcs.cpp +++ b/src/mame/audio/dcs.cpp @@ -2480,7 +2480,7 @@ MACHINE_CONFIG_START(dcs_audio_device::add_mconfig_dcs ) MCFG_TIMER_DEVICE_ADD("dcs_reg_timer", DEVICE_SELF, dcs_audio_device, dcs_irq) MCFG_TIMER_DEVICE_ADD("dcs_int_timer", DEVICE_SELF, dcs_audio_device, internal_timer_callback) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("dac", DMADAC) // AD-1851 16bit mono MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -2585,7 +2585,8 @@ MACHINE_CONFIG_START(dcs2_audio_device::add_mconfig_dcs2 ) MCFG_TIMER_DEVICE_ADD("dcs_int_timer", DEVICE_SELF, dcs_audio_device, internal_timer_callback) MCFG_TIMER_DEVICE_ADD("dcs_hle_timer", DEVICE_SELF, dcs_audio_device, transfer_watchdog_callback) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("dac1", DMADAC) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 1.0) @@ -2665,7 +2666,8 @@ MACHINE_CONFIG_START(dcs2_audio_dsio_device::device_add_mconfig) MCFG_TIMER_DEVICE_ADD("dcs_int_timer", DEVICE_SELF, dcs_audio_device, internal_timer_callback) MCFG_TIMER_DEVICE_ADD("dcs_sport0_timer", DEVICE_SELF, dcs_audio_device, sport0_irq) // roadburn needs this to pass harware test - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("dac1", DMADAC) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 1.0) @@ -2706,7 +2708,8 @@ MACHINE_CONFIG_START(dcs2_audio_denver_device::device_add_mconfig) MCFG_TIMER_DEVICE_ADD("dcs_int_timer", DEVICE_SELF, dcs_audio_device, internal_timer_callback) MCFG_TIMER_DEVICE_ADD("dcs_sport0_timer", DEVICE_SELF, dcs_audio_device, sport0_irq) // Atlantis driver waits for sport0 rx interrupts - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("dac1", DMADAC) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 1.0) diff --git a/src/mame/audio/decobsmt.cpp b/src/mame/audio/decobsmt.cpp index 8230204a507..e3da4e65b27 100644 --- a/src/mame/audio/decobsmt.cpp +++ b/src/mame/audio/decobsmt.cpp @@ -53,7 +53,8 @@ MACHINE_CONFIG_START(decobsmt_device::device_add_mconfig) MCFG_DEVICE_PROGRAM_MAP(decobsmt_map) MCFG_DEVICE_PERIODIC_INT_DRIVER(decobsmt_device, decobsmt_firq_interrupt, 489) /* Fixed FIRQ of 489Hz as measured on real (pinball) machine */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_BSMT2000_ADD(BSMT_TAG, XTAL(24'000'000)) MCFG_DEVICE_ADDRESS_MAP(0, bsmt_map) MCFG_BSMT2000_READY_CALLBACK(decobsmt_device, bsmt_ready_callback) diff --git a/src/mame/audio/dkong.cpp b/src/mame/audio/dkong.cpp index 490248e6ef6..6c468c05db7 100644 --- a/src/mame/audio/dkong.cpp +++ b/src/mame/audio/dkong.cpp @@ -1352,7 +1352,7 @@ MACHINE_CONFIG_START(dkong_state::dkong2b_audio) MCFG_MCS48_PORT_T0_IN_CB(READLINE("ls259.6h", latch8_device, bit5_q_r)) MCFG_MCS48_PORT_T1_IN_CB(READLINE("ls259.6h", latch8_device, bit4_q_r)) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("discrete", DISCRETE, dkong2b_discrete) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) MACHINE_CONFIG_END @@ -1425,7 +1425,7 @@ MACHINE_CONFIG_START(dkong_state::dkongjr_audio) MCFG_MCS48_PORT_T0_IN_CB(READLINE("ls259.6h", latch8_device, bit5_q_r)) MCFG_MCS48_PORT_T1_IN_CB(READLINE("ls259.6h", latch8_device, bit4_q_r)) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("discrete", DISCRETE, dkongjr_discrete) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -1444,5 +1444,5 @@ MACHINE_CONFIG_START(dkong_state::dkong3_audio) MCFG_LATCH8_ADD( "latch2") MCFG_LATCH8_ADD( "latch3") - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MACHINE_CONFIG_END diff --git a/src/mame/audio/efo_zsu.cpp b/src/mame/audio/efo_zsu.cpp index cbf54a42b5a..21a652f296f 100644 --- a/src/mame/audio/efo_zsu.cpp +++ b/src/mame/audio/efo_zsu.cpp @@ -221,7 +221,7 @@ MACHINE_CONFIG_START(efo_zsu_device::device_add_mconfig) MCFG_INPUT_MERGER_ANY_HIGH("soundirq") // 74HC03 NAND gate MCFG_INPUT_MERGER_OUTPUT_HANDLER(INPUTLINE("soundcpu", INPUT_LINE_IRQ0)) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd0", AY8910, 4000000/2) MCFG_AY8910_PORT_A_WRITE_CB(MEMBANK("rombank")) MCFG_DEVCB_MASK(0x03) diff --git a/src/mame/audio/exidy.cpp b/src/mame/audio/exidy.cpp index 3a5a4c5a052..6a8244930ac 100644 --- a/src/mame/audio/exidy.cpp +++ b/src/mame/audio/exidy.cpp @@ -765,7 +765,7 @@ MACHINE_CONFIG_START(exidy_state::venture_audio) MCFG_PIA_CB2_HANDLER(WRITELINE("pia0", pia6821_device, ca1_w)) MCFG_PIA_IRQB_HANDLER(WRITELINE("custom", exidy_sound_device, update_irq_state)) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("custom", EXIDY_VENTURE, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) @@ -1014,7 +1014,7 @@ MACHINE_CONFIG_START(victory_state::victory_audio) MCFG_PIA_CB2_HANDLER(WRITELINE("custom", victory_sound_device, main_ack_w)) MCFG_PIA_IRQB_HANDLER(WRITELINE("custom", exidy_sound_device, update_irq_state)) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("custom", EXIDY_VICTORY, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/audio/harddriv.cpp b/src/mame/audio/harddriv.cpp index fee321d9c4a..6957ca97472 100644 --- a/src/mame/audio/harddriv.cpp +++ b/src/mame/audio/harddriv.cpp @@ -453,7 +453,7 @@ MACHINE_CONFIG_START(harddriv_sound_board_device::device_add_mconfig) MCFG_TMS32010_BIO_IN_CB(READLINE(*this, harddriv_sound_board_device, hdsnddsp_get_bio)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", AM6012, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) // ls374d.75e + ls374d.90e + am6012 MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) diff --git a/src/mame/audio/hng64.cpp b/src/mame/audio/hng64.cpp index 034a24d2fe6..db3c6cb5609 100644 --- a/src/mame/audio/hng64.cpp +++ b/src/mame/audio/hng64.cpp @@ -400,7 +400,8 @@ MACHINE_CONFIG_START(hng64_state::hng64_audio) MCFG_V53_TCU_OUT1_HANDLER(WRITELINE(*this, hng64_state, tcu_tm1_cb)) MCFG_V53_TCU_OUT2_HANDLER(WRITELINE(*this, hng64_state, tcu_tm2_cb)) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("l7a1045", L7A1045, 32000000/2 ) // ?? MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) diff --git a/src/mame/audio/irem.cpp b/src/mame/audio/irem.cpp index 5187c93c814..a8f5dc42df4 100644 --- a/src/mame/audio/irem.cpp +++ b/src/mame/audio/irem.cpp @@ -412,7 +412,7 @@ MACHINE_CONFIG_START(m62_audio_device::device_add_mconfig) MCFG_DEVICE_IO_MAP(irem_sound_portmap) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay_45m", AY8910, XTAL(3'579'545)/4) /* verified on pcb */ MCFG_AY8910_OUTPUT_TYPE(AY8910_RESISTOR_OUTPUT) @@ -482,7 +482,7 @@ MACHINE_CONFIG_START(m52_soundc_audio_device::device_add_mconfig) MCFG_DEVICE_PROGRAM_MAP(m52_small_sound_map) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay_45m", AY8910, XTAL(3'579'545)/4) /* verified on pcb */ MCFG_AY8910_OUTPUT_TYPE(AY8910_SINGLE_OUTPUT | AY8910_DISCRETE_OUTPUT) @@ -515,7 +515,7 @@ MACHINE_CONFIG_START(m52_large_audio_device::device_add_mconfig) /* 10 yard fig MCFG_DEVICE_IO_MAP(irem_sound_portmap) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay_45m", AY8910, XTAL(3'579'545)/4) /* verified on pcb */ MCFG_AY8910_OUTPUT_TYPE(AY8910_SINGLE_OUTPUT | AY8910_DISCRETE_OUTPUT) diff --git a/src/mame/audio/jedi.cpp b/src/mame/audio/jedi.cpp index ea606f556e6..7a14d89232f 100644 --- a/src/mame/audio/jedi.cpp +++ b/src/mame/audio/jedi.cpp @@ -196,7 +196,8 @@ MACHINE_CONFIG_START(jedi_state::jedi_audio) MCFG_DEVICE_ADD("audiocpu", M6502, JEDI_AUDIO_CPU_CLOCK) MCFG_DEVICE_PROGRAM_MAP(audio_map) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("pokey1", POKEY, JEDI_POKEY_CLOCK) MCFG_POKEY_OUTPUT_OPAMP(RES_K(1), 0.0, 5.0) diff --git a/src/mame/audio/leland.cpp b/src/mame/audio/leland.cpp index c9300beb150..765e01f70e7 100644 --- a/src/mame/audio/leland.cpp +++ b/src/mame/audio/leland.cpp @@ -134,7 +134,7 @@ WRITE_LINE_MEMBER(leland_80186_sound_device::i80186_tmr1_w) } MACHINE_CONFIG_START(leland_80186_sound_device::device_add_mconfig) - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac1", AD7524, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.2) // 74hc374.u31 + ad7524.u46 MCFG_DEVICE_ADD("dac2", AD7524, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.2) // 74hc374.u32 + ad7524.u47 MCFG_DEVICE_ADD("dac3", AD7524, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.2) // 74hc374.u33 + ad7524.u48 @@ -175,7 +175,7 @@ MACHINE_CONFIG_START(leland_80186_sound_device::device_add_mconfig) MACHINE_CONFIG_END MACHINE_CONFIG_START(redline_80186_sound_device::device_add_mconfig) - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac1", AD7524, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.2) // unknown DAC MCFG_DEVICE_ADD("dac2", AD7524, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.2) // unknown DAC MCFG_DEVICE_ADD("dac3", AD7524, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.2) // unknown DAC @@ -225,7 +225,7 @@ MACHINE_CONFIG_START(redline_80186_sound_device::device_add_mconfig) MACHINE_CONFIG_END MACHINE_CONFIG_START(ataxx_80186_sound_device::device_add_mconfig) - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac1", AD7524, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.2) // unknown DAC MCFG_DEVICE_ADD("dac2", AD7524, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.2) // unknown DAC MCFG_DEVICE_ADD("dac3", AD7524, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.2) // unknown DAC @@ -252,7 +252,7 @@ MACHINE_CONFIG_START(ataxx_80186_sound_device::device_add_mconfig) MACHINE_CONFIG_END MACHINE_CONFIG_START(wsf_80186_sound_device::device_add_mconfig) - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac1", AD7524, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.2) // unknown DAC MCFG_DEVICE_ADD("dac2", AD7524, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.2) // unknown DAC MCFG_DEVICE_ADD("dac3", AD7524, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.2) // unknown DAC diff --git a/src/mame/audio/llander.cpp b/src/mame/audio/llander.cpp index b29eb4dba67..6c2ec3510b1 100644 --- a/src/mame/audio/llander.cpp +++ b/src/mame/audio/llander.cpp @@ -99,7 +99,7 @@ WRITE8_MEMBER(asteroid_state::llander_sounds_w) MACHINE_CONFIG_START(asteroid_state::llander_sound) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("discrete", DISCRETE, llander_discrete) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/audio/mario.cpp b/src/mame/audio/mario.cpp index 07d13d2c313..840a4cdfdcc 100644 --- a/src/mame/audio/mario.cpp +++ b/src/mame/audio/mario.cpp @@ -652,7 +652,7 @@ MACHINE_CONFIG_START(mario_state::mario_audio) MCFG_MCS48_PORT_T0_IN_CB(READLINE(*this, mario_state, mario_sh_t0_r)) MCFG_MCS48_PORT_T1_IN_CB(READLINE(*this, mario_state, mario_sh_t1_r)) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_8_ADD("soundlatch2") @@ -684,7 +684,7 @@ MACHINE_CONFIG_START(mario_state::masao_audio) MCFG_DEVICE_ADD("audiocpu", Z80, 24576000/16) /* ???? */ MCFG_DEVICE_PROGRAM_MAP(masao_sound_map) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/audio/mw8080bw.cpp b/src/mame/audio/mw8080bw.cpp index a2b64a7da4b..f4d9781f174 100644 --- a/src/mame/audio/mw8080bw.cpp +++ b/src/mame/audio/mw8080bw.cpp @@ -147,7 +147,7 @@ static const char *const seawolf_sample_names[] = MACHINE_CONFIG_START(mw8080bw_state::seawolf_audio) MCFG_SOUND_START_OVERRIDE(mw8080bw_state, samples) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("samples", SAMPLES) MCFG_SAMPLES_CHANNELS(5) MCFG_SAMPLES_NAMES(seawolf_sample_names) @@ -201,7 +201,8 @@ static const char *const gunfight_sample_names[] = MACHINE_CONFIG_START(mw8080bw_state::gunfight_audio) MCFG_SOUND_START_OVERRIDE(mw8080bw_state, samples) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("samples1", SAMPLES) MCFG_SAMPLES_CHANNELS(1) @@ -308,7 +309,7 @@ DISCRETE_SOUND_END MACHINE_CONFIG_START(mw8080bw_state::tornbase_audio) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("discrete", DISCRETE, tornbase_discrete) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1) MACHINE_CONFIG_END @@ -351,7 +352,7 @@ WRITE8_MEMBER(mw8080bw_state::tornbase_audio_w) *************************************/ MACHINE_CONFIG_START(mw8080bw_state::zzzap_audio ) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MACHINE_CONFIG_END @@ -553,7 +554,7 @@ DISCRETE_SOUND_END MACHINE_CONFIG_START(mw8080bw_state::maze_audio) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("discrete", DISCRETE, maze_discrete) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) MACHINE_CONFIG_END @@ -799,7 +800,8 @@ DISCRETE_SOUND_END MACHINE_CONFIG_START(mw8080bw_state::boothill_audio) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("discrete", DISCRETE, boothill_discrete) MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) MCFG_SOUND_ROUTE(1, "rspeaker", 1.0) @@ -1028,7 +1030,7 @@ DISCRETE_SOUND_END MACHINE_CONFIG_START(mw8080bw_state::checkmat_audio) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("discrete", DISCRETE, checkmat_discrete) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.4) MACHINE_CONFIG_END @@ -1238,7 +1240,7 @@ DISCRETE_SOUND_END MACHINE_CONFIG_START(mw8080bw_state::desertgu_audio) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("discrete", DISCRETE, desertgu_discrete) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.8) MACHINE_CONFIG_END @@ -1502,7 +1504,7 @@ DISCRETE_SOUND_END MACHINE_CONFIG_START(mw8080bw_state::dplay_audio) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("discrete", DISCRETE, dplay_discrete) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.8) MACHINE_CONFIG_END @@ -1544,7 +1546,8 @@ static const char *const gmissile_sample_names[] = MACHINE_CONFIG_START(mw8080bw_state::gmissile_audio) MCFG_SOUND_START_OVERRIDE(mw8080bw_state, samples) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("samples1", SAMPLES) MCFG_SAMPLES_CHANNELS(1) @@ -1637,7 +1640,8 @@ static const char *const m4_sample_names[] = MACHINE_CONFIG_START(mw8080bw_state::m4_audio) MCFG_SOUND_START_OVERRIDE(mw8080bw_state, samples) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("samples1", SAMPLES) MCFG_SAMPLES_CHANNELS(2) @@ -1892,7 +1896,7 @@ static const char *const clowns_sample_names[] = MACHINE_CONFIG_START(mw8080bw_state::clowns_audio) MCFG_SOUND_START_OVERRIDE(mw8080bw_state, samples) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("samples", SAMPLES) MCFG_SAMPLES_CHANNELS(1) @@ -2262,7 +2266,7 @@ DISCRETE_GAIN(NODE_RELATIVE(SPACWALK_SPRINGBOARD_HIT1_SND, _num - 1), DISCRETE_SOUND_END MACHINE_CONFIG_START(mw8080bw_state::spacwalk_audio) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("discrete", DISCRETE, spacwalk_discrete) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -2490,7 +2494,7 @@ DISCRETE_SOUND_END MACHINE_CONFIG_START(mw8080bw_state::shuffle_audio) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("discrete", DISCRETE, shuffle_discrete) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -2669,7 +2673,8 @@ DISCRETE_SOUND_END MACHINE_CONFIG_START(mw8080bw_state::dogpatch_audio) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("discrete", DISCRETE, dogpatch_discrete) MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) MCFG_SOUND_ROUTE(1, "rspeaker", 1.0) @@ -3173,7 +3178,7 @@ DISCRETE_SOUND_END MACHINE_CONFIG_START(mw8080bw_state::spcenctr_audio) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("snsnd", SN76477) MCFG_SN76477_NOISE_PARAMS(0, 0, 0) // noise + filter: N/C @@ -3260,7 +3265,7 @@ static const char *const phantom2_sample_names[] = MACHINE_CONFIG_START(mw8080bw_state::phantom2_audio) MCFG_SOUND_START_OVERRIDE(mw8080bw_state, samples) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("samples", SAMPLES) MCFG_SAMPLES_CHANNELS(2) MCFG_SAMPLES_NAMES(phantom2_sample_names) @@ -3388,7 +3393,7 @@ DISCRETE_SOUND_END MACHINE_CONFIG_START(mw8080bw_state::bowler_audio) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("discrete", DISCRETE, bowler_discrete) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1) @@ -3504,7 +3509,7 @@ static const char *const invaders_sample_names[] = MACHINE_CONFIG_START(mw8080bw_state::invaders_samples_audio) MCFG_SOUND_START_OVERRIDE(mw8080bw_state, samples) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("snsnd", SN76477) MCFG_SN76477_NOISE_PARAMS(0, 0, 0) // noise + filter: N/C @@ -4084,7 +4089,7 @@ DISCRETE_SOUND_END MACHINE_CONFIG_START(mw8080bw_state::invaders_audio) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("snsnd", SN76477) MCFG_SN76477_NOISE_PARAMS(0, 0, 0) // noise + filter: N/C @@ -4501,7 +4506,7 @@ DISCRETE_SOUND_END MACHINE_CONFIG_START(mw8080bw_state::blueshrk_audio) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("discrete", DISCRETE, blueshrk_discrete) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -4662,7 +4667,8 @@ DISCRETE_SOUND_END MACHINE_CONFIG_START(mw8080bw_state::invad2ct_audio) - MCFG_SPEAKER_STANDARD_STEREO("spk1", "spk2") + SPEAKER(config, "spk1").front_left(); + SPEAKER(config, "spk2").front_right(); MCFG_DEVICE_ADD("discrete", DISCRETE, invad2ct_discrete) MCFG_SOUND_ROUTE(0, "spk1", 0.5) diff --git a/src/mame/audio/n8080.cpp b/src/mame/audio/n8080.cpp index 2d731eec23f..d311fe1e21d 100644 --- a/src/mame/audio/n8080.cpp +++ b/src/mame/audio/n8080.cpp @@ -489,7 +489,7 @@ MACHINE_CONFIG_START(n8080_state::spacefev_sound) MCFG_TIMER_DRIVER_ADD_PERIODIC("vco_timer", n8080_state, spacefev_vco_voltage_timer, attotime::from_hz(1000)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("n8080_dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.15) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) @@ -527,7 +527,7 @@ MACHINE_CONFIG_START(n8080_state::sheriff_sound) MCFG_MCS48_PORT_P2_OUT_CB(WRITE8(*this, n8080_state, n8080_dac_w)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("n8080_dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.15) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) @@ -569,7 +569,7 @@ MACHINE_CONFIG_START(n8080_state::helifire_sound) MCFG_TIMER_DRIVER_ADD_PERIODIC("helifire_dac_volume_timer", n8080_state, helifire_dac_volume_timer, attotime::from_hz(1000)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("helifire_dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.15) // unknown DAC MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "helifire_dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "helifire_dac", -1.0, DAC_VREF_NEG_INPUT) diff --git a/src/mame/audio/nichisnd.cpp b/src/mame/audio/nichisnd.cpp index 8609756730c..d5b4d0ceb1c 100644 --- a/src/mame/audio/nichisnd.cpp +++ b/src/mame/audio/nichisnd.cpp @@ -91,7 +91,7 @@ MACHINE_CONFIG_START(nichisnd_device::device_add_mconfig) MCFG_TMPZ84C011_ZC0_CB(WRITELINE("audiocpu", tmpz84c011_device, trg3)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/audio/qix.cpp b/src/mame/audio/qix.cpp index 4d9c8543501..d6f1bded52f 100644 --- a/src/mame/audio/qix.cpp +++ b/src/mame/audio/qix.cpp @@ -196,7 +196,8 @@ MACHINE_CONFIG_START(qix_state::qix_audio) MCFG_PIA_CA2_HANDLER(WRITE8(*this, qix_state, sndpia_2_warning_w)) MCFG_PIA_CB2_HANDLER(WRITE8(*this, qix_state, sndpia_2_warning_w)) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("discrete", DISCRETE, qix_discrete) MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) @@ -212,7 +213,7 @@ MACHINE_CONFIG_START(qix_state::slither_audio) MCFG_PIA_IRQA_HANDLER(WRITELINE(*this, qix_state, qix_pia_dint)) MCFG_PIA_IRQB_HANDLER(WRITELINE(*this, qix_state, qix_pia_dint)) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("sn1", SN76489, SLITHER_CLOCK_OSC/4/4) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/audio/rax.cpp b/src/mame/audio/rax.cpp index df634c31983..71f6a04e222 100644 --- a/src/mame/audio/rax.cpp +++ b/src/mame/audio/rax.cpp @@ -504,7 +504,8 @@ MACHINE_CONFIG_START(acclaim_rax_device::device_add_mconfig) MCFG_GENERIC_LATCH_16_ADD("data_in") MCFG_GENERIC_LATCH_16_ADD("data_out") - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("dacl", DMADAC) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 1.0) diff --git a/src/mame/audio/redalert.cpp b/src/mame/audio/redalert.cpp index 67070bcdb1a..db7e75138cd 100644 --- a/src/mame/audio/redalert.cpp +++ b/src/mame/audio/redalert.cpp @@ -222,7 +222,7 @@ MACHINE_CONFIG_END MACHINE_CONFIG_START(redalert_state::redalert_audio) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); redalert_audio_m37b(config); redalert_audio_voice(config); @@ -239,7 +239,7 @@ MACHINE_CONFIG_END MACHINE_CONFIG_START(redalert_state::ww3_audio) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); redalert_audio_m37b(config); @@ -357,7 +357,7 @@ MACHINE_CONFIG_START(redalert_state::demoneye_audio) MCFG_SOUND_START_OVERRIDE( redalert_state, demoneye ) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/audio/scramble.cpp b/src/mame/audio/scramble.cpp index 818b23cf6e6..3e4b9a2ad75 100644 --- a/src/mame/audio/scramble.cpp +++ b/src/mame/audio/scramble.cpp @@ -312,7 +312,7 @@ MACHINE_CONFIG_START(scramble_state::ad2083_audio) MCFG_TMSPROM_PDC_CB(WRITELINE("tms", tms5110_device, pdc_w)) /* tms pdc func */ MCFG_TMSPROM_CTL_CB(WRITE8("tms", tms5110_device, ctl_w)) /* tms ctl func */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/audio/segam1audio.cpp b/src/mame/audio/segam1audio.cpp index ea6cf52efc8..749f65e2f06 100644 --- a/src/mame/audio/segam1audio.cpp +++ b/src/mame/audio/segam1audio.cpp @@ -63,7 +63,8 @@ MACHINE_CONFIG_START(segam1audio_device::device_add_mconfig) MCFG_DEVICE_ADD(M68000_TAG, M68000, 10000000) // verified on real h/w MCFG_DEVICE_PROGRAM_MAP(segam1audio_map) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD(YM3438_TAG, YM3438, 8000000) MCFG_SOUND_ROUTE(0, "lspeaker", 0.60) diff --git a/src/mame/audio/spacefb.cpp b/src/mame/audio/spacefb.cpp index 1787413ab71..3128fd58a13 100644 --- a/src/mame/audio/spacefb.cpp +++ b/src/mame/audio/spacefb.cpp @@ -78,7 +78,7 @@ static const char *const spacefb_sample_names[] = MACHINE_CONFIG_START(spacefb_state::spacefb_audio) - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) // unknown DAC MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT) diff --git a/src/mame/audio/spiders.cpp b/src/mame/audio/spiders.cpp index 03b736c8455..223da7f106c 100644 --- a/src/mame/audio/spiders.cpp +++ b/src/mame/audio/spiders.cpp @@ -207,7 +207,7 @@ WRITE8_MEMBER(spiders_state::spiders_audio_ctrl_w) MACHINE_CONFIG_START(spiders_state::spiders_audio) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("discrete", DISCRETE, spiders_discrete) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) MACHINE_CONFIG_END diff --git a/src/mame/audio/sprint8.cpp b/src/mame/audio/sprint8.cpp index 5339365152a..91d0a89203c 100644 --- a/src/mame/audio/sprint8.cpp +++ b/src/mame/audio/sprint8.cpp @@ -300,10 +300,10 @@ MACHINE_CONFIG_START(sprint8_state::sprint8_audio) /* sound hardware */ /* the proper way is to hook up 4 speakers, but they are not really * F/R/L/R speakers. Though you can pretend the 1-2 mix is the front. */ - MCFG_SPEAKER_ADD("speaker_1_2", 0.0, 0.0, 1.0) /* front */ - MCFG_SPEAKER_ADD("speaker_3_7", -0.2, 0.0, 1.0) /* left */ - MCFG_SPEAKER_ADD("speaker_5_6", 0.0, 0.0, -0.5) /* back */ - MCFG_SPEAKER_ADD("speaker_4_8", 0.2, 0.0, 1.0) /* right */ + SPEAKER(config, "speaker_1_2", 0.0, 0.0, 1.0); // front + SPEAKER(config, "speaker_3_7", -0.2, 0.0, 1.0); // left + SPEAKER(config, "speaker_5_6", 0.0, 0.0, -0.5); // back + SPEAKER(config, "speaker_4_8", 0.2, 0.0, 1.0); // right MCFG_DEVICE_ADD("discrete", DISCRETE, sprint8_discrete) MCFG_SOUND_ROUTE(0, "speaker_1_2", 1.0) diff --git a/src/mame/audio/taito_en.cpp b/src/mame/audio/taito_en.cpp index 3450b1fa153..fc038c8a68e 100644 --- a/src/mame/audio/taito_en.cpp +++ b/src/mame/audio/taito_en.cpp @@ -216,7 +216,8 @@ MACHINE_CONFIG_START(taito_en_device::device_add_mconfig) MCFG_DEVICE_ADD("dpram", MB8421, 0) // host accesses this from the other side /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("pump", ESQ_5505_5510_PUMP, XTAL(30'476'100) / (2 * 16 * 32)) MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) diff --git a/src/mame/audio/targ.cpp b/src/mame/audio/targ.cpp index d54ab88ce27..fbdfc484172 100644 --- a/src/mame/audio/targ.cpp +++ b/src/mame/audio/targ.cpp @@ -177,7 +177,7 @@ SAMPLES_START_CB_MEMBER(exidy_state::targ_audio_start) MACHINE_CONFIG_START(exidy_state::spectar_audio) - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("samples", SAMPLES) MCFG_SAMPLES_CHANNELS(4) @@ -193,7 +193,7 @@ MACHINE_CONFIG_END MACHINE_CONFIG_START(exidy_state::targ_audio) - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("samples", SAMPLES) MCFG_SAMPLES_CHANNELS(4) diff --git a/src/mame/audio/timeplt.cpp b/src/mame/audio/timeplt.cpp index 2d992fdbd28..04b206d6246 100644 --- a/src/mame/audio/timeplt.cpp +++ b/src/mame/audio/timeplt.cpp @@ -195,7 +195,7 @@ MACHINE_CONFIG_START(timeplt_audio_device::device_add_mconfig) MCFG_DEVICE_PROGRAM_MAP(timeplt_sound_map) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD(m_soundlatch) diff --git a/src/mame/audio/turbo.cpp b/src/mame/audio/turbo.cpp index f430001a7ad..08fd950006d 100644 --- a/src/mame/audio/turbo.cpp +++ b/src/mame/audio/turbo.cpp @@ -186,10 +186,10 @@ static const char *const turbo_sample_names[] = MACHINE_CONFIG_START(turbo_state::turbo_samples) /* this is the cockpit speaker configuration */ - MCFG_SPEAKER_ADD("fspeaker", 0.0, 0.0, 1.0) /* front */ - MCFG_SPEAKER_ADD("bspeaker", 0.0, 0.0, -0.5) /* back */ - MCFG_SPEAKER_ADD("lspeaker", -0.2, 0.0, 1.0) /* left */ - MCFG_SPEAKER_ADD("rspeaker", 0.2, 0.0, 1.0) /* right */ + SPEAKER(config, "fspeaker", 0.0, 0.0, 1.0); // front + SPEAKER(config, "bspeaker", 0.0, 0.0, -0.5); // back + SPEAKER(config, "lspeaker", -0.2, 0.0, 1.0); // left + SPEAKER(config, "rspeaker", 0.2, 0.0, 1.0); // right MCFG_DEVICE_ADD("samples", SAMPLES) MCFG_SAMPLES_CHANNELS(10) @@ -430,7 +430,8 @@ static const char *const subroc3d_sample_names[] = }; MACHINE_CONFIG_START(turbo_state::subroc3d_samples) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("samples", SAMPLES) MCFG_SAMPLES_CHANNELS(12) @@ -575,7 +576,7 @@ static const char *const buckrog_sample_names[]= MACHINE_CONFIG_START(turbo_state::buckrog_samples) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("samples", SAMPLES) MCFG_SAMPLES_CHANNELS(6) MCFG_SAMPLES_NAMES(buckrog_sample_names) diff --git a/src/mame/audio/vicdual-97271p.cpp b/src/mame/audio/vicdual-97271p.cpp index 3a9a77dbc9e..6daeb676d89 100644 --- a/src/mame/audio/vicdual-97271p.cpp +++ b/src/mame/audio/vicdual-97271p.cpp @@ -87,7 +87,7 @@ s97271p_device::s97271p_device(const machine_config &mconfig, const char *tag, d //------------------------------------------------- MACHINE_CONFIG_START(s97271p_device::device_add_mconfig) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); /* samples */ MCFG_DEVICE_ADD("samples", SAMPLES) diff --git a/src/mame/drivers/1942.cpp b/src/mame/drivers/1942.cpp index a26e1e0da55..3800ce7f2a6 100644 --- a/src/mame/drivers/1942.cpp +++ b/src/mame/drivers/1942.cpp @@ -587,7 +587,7 @@ MACHINE_CONFIG_START(_1942_state::_1942) MCFG_SCREEN_PALETTE("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -658,7 +658,7 @@ MACHINE_CONFIG_START(_1942_state::_1942p) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) diff --git a/src/mame/drivers/1943.cpp b/src/mame/drivers/1943.cpp index 4c17341efb6..86b764beb72 100644 --- a/src/mame/drivers/1943.cpp +++ b/src/mame/drivers/1943.cpp @@ -339,7 +339,7 @@ MACHINE_CONFIG_START(_1943_state::_1943) MCFG_PALETTE_INIT_OWNER(_1943_state, 1943) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/1945kiii.cpp b/src/mame/drivers/1945kiii.cpp index 3bef86fac09..b07de09d497 100644 --- a/src/mame/drivers/1945kiii.cpp +++ b/src/mame/drivers/1945kiii.cpp @@ -401,7 +401,7 @@ MACHINE_CONFIG_START(k3_state::flagrall) MCFG_PALETTE_ADD("palette", 0x800) MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki1", OKIM6295, MASTER_CLOCK/16, okim6295_device::PIN7_HIGH) /* dividers? */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/20pacgal.cpp b/src/mame/drivers/20pacgal.cpp index 3779b402ef8..2644cf977c0 100644 --- a/src/mame/drivers/20pacgal.cpp +++ b/src/mame/drivers/20pacgal.cpp @@ -408,7 +408,7 @@ MACHINE_CONFIG_START(_20pacgal_state::_20pacgal) _20pacgal_video(config); /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("namco", NAMCO_CUS30, NAMCO_AUDIO_CLOCK) MCFG_NAMCO_AUDIO_VOICES(3) diff --git a/src/mame/drivers/2mindril.cpp b/src/mame/drivers/2mindril.cpp index 3883a588a2f..e20e459ebcb 100644 --- a/src/mame/drivers/2mindril.cpp +++ b/src/mame/drivers/2mindril.cpp @@ -384,7 +384,8 @@ MACHINE_CONFIG_START(_2mindril_state::drill) MCFG_VIDEO_START_OVERRIDE(_2mindril_state,f3) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2610B, 16000000/2) MCFG_YM2610_IRQ_HANDLER(WRITELINE(*this, _2mindril_state, irqhandler)) diff --git a/src/mame/drivers/30test.cpp b/src/mame/drivers/30test.cpp index 3a5d1f1b2bf..dc15b854fdd 100644 --- a/src/mame/drivers/30test.cpp +++ b/src/mame/drivers/30test.cpp @@ -265,7 +265,7 @@ MACHINE_CONFIG_START(namco_30test_state::_30test) /* no video! */ /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, 1056000, okim6295_device::PIN7_HIGH) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/39in1.cpp b/src/mame/drivers/39in1.cpp index 78365d41023..3e12a90688f 100644 --- a/src/mame/drivers/39in1.cpp +++ b/src/mame/drivers/39in1.cpp @@ -1600,7 +1600,8 @@ MACHINE_CONFIG_START(_39in1_state::_39in1) MCFG_EEPROM_SERIAL_93C66_ADD("eeprom") - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("dac1", DMADAC) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 1.0) diff --git a/src/mame/drivers/3x3puzzl.cpp b/src/mame/drivers/3x3puzzl.cpp index 290a86a91c7..8babfdd21d2 100644 --- a/src/mame/drivers/3x3puzzl.cpp +++ b/src/mame/drivers/3x3puzzl.cpp @@ -406,7 +406,7 @@ MACHINE_CONFIG_START(_3x3puzzle_state::_3x3puzzle) MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, XTAL(4'000'000)/4, okim6295_device::PIN7_HIGH) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) MACHINE_CONFIG_END diff --git a/src/mame/drivers/4004clk.cpp b/src/mame/drivers/4004clk.cpp index 446a1d8c7d3..1984ce6622c 100644 --- a/src/mame/drivers/4004clk.cpp +++ b/src/mame/drivers/4004clk.cpp @@ -149,7 +149,7 @@ MACHINE_CONFIG_START(nixieclock_state::_4004clk) MCFG_DEFAULT_LAYOUT(layout_4004clk) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) diff --git a/src/mame/drivers/40love.cpp b/src/mame/drivers/40love.cpp index b460f91248b..6e5960f8cc9 100644 --- a/src/mame/drivers/40love.cpp +++ b/src/mame/drivers/40love.cpp @@ -740,7 +740,7 @@ MACHINE_CONFIG_START(fortyl_state::_40love) MCFG_PALETTE_ADD_RRRRGGGGBBBB_PROMS("palette", "proms", 1024) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_TA7630_ADD("ta7630") @@ -806,7 +806,7 @@ MACHINE_CONFIG_START(fortyl_state::undoukai) MCFG_PALETTE_ADD_RRRRGGGGBBBB_PROMS("palette", "proms", 1024) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_TA7630_ADD("ta7630") diff --git a/src/mame/drivers/4enlinea.cpp b/src/mame/drivers/4enlinea.cpp index d7098152e89..79ae0c08ff3 100644 --- a/src/mame/drivers/4enlinea.cpp +++ b/src/mame/drivers/4enlinea.cpp @@ -529,7 +529,7 @@ MACHINE_CONFIG_START(_4enlinea_state::_4enlinea) */ /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, SND_AY_CLOCK) MCFG_AY8910_PORT_A_READ_CB(IOPORT("IN-P2")) MCFG_AY8910_PORT_B_READ_CB(IOPORT("IN-P1")) diff --git a/src/mame/drivers/4enraya.cpp b/src/mame/drivers/4enraya.cpp index 22a100e519c..889a742b92b 100644 --- a/src/mame/drivers/4enraya.cpp +++ b/src/mame/drivers/4enraya.cpp @@ -492,7 +492,7 @@ MACHINE_CONFIG_START(_4enraya_state::_4enraya ) MCFG_PALETTE_ADD_3BIT_RGB("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, MAIN_CLOCK/4) /* guess */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.3) MACHINE_CONFIG_END @@ -508,7 +508,7 @@ MACHINE_CONFIG_START(_4enraya_state::unkpacg) MCFG_NVRAM_ADD_0FILL("nvram") /* sound hardware */ -// MCFG_SPEAKER_STANDARD_MONO("mono") +// SPEAKER(config, "mono").front_center(); MCFG_DEVICE_REPLACE("aysnd", AY8910, MAIN_CLOCK/4) /* guess */ MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW2")) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/4roses.cpp b/src/mame/drivers/4roses.cpp index 4467378a25a..eb154a56dc2 100644 --- a/src/mame/drivers/4roses.cpp +++ b/src/mame/drivers/4roses.cpp @@ -470,7 +470,7 @@ MACHINE_CONFIG_START(_4roses_state::_4roses) //MCFG_MC6845_OUT_VSYNC_CB(INPUTLINE("maincpu", INPUT_LINE_NMI)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay8910", AY8910, MASTER_CLOCK/8) /* 2MHz, guess */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 2.5) diff --git a/src/mame/drivers/5clown.cpp b/src/mame/drivers/5clown.cpp index a289a41bade..72aff21b841 100644 --- a/src/mame/drivers/5clown.cpp +++ b/src/mame/drivers/5clown.cpp @@ -1060,7 +1060,7 @@ MACHINE_CONFIG_START(_5clown_state::fclown) MCFG_MC6845_OUT_VSYNC_CB(INPUTLINE("maincpu", INPUT_LINE_NMI)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay8910", AY8910, MASTER_CLOCK/8) /* guess, seems ok */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) diff --git a/src/mame/drivers/8080bw.cpp b/src/mame/drivers/8080bw.cpp index 516ec4a46ca..f0e76eced07 100644 --- a/src/mame/drivers/8080bw.cpp +++ b/src/mame/drivers/8080bw.cpp @@ -958,7 +958,7 @@ MACHINE_CONFIG_START(_8080bw_state::invrvnge) MCFG_PALETTE_ADD_3BIT_RBG("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay1", AY8910, XTAL(4'000'000)/2) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.5) @@ -1134,7 +1134,7 @@ MACHINE_CONFIG_START(_8080bw_state::lrescue) MCFG_PALETTE_ADD_3BIT_RBG("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("samples", SAMPLES) MCFG_SAMPLES_CHANNELS(4) @@ -1167,7 +1167,7 @@ MACHINE_CONFIG_START(_8080bw_state::escmars) MCFG_PALETTE_ADD_MONOCHROME("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("samples", SAMPLES) MCFG_SAMPLES_CHANNELS(4) @@ -1566,7 +1566,7 @@ MACHINE_CONFIG_START(_8080bw_state::schaser) MCFG_PALETTE_ADD_3BIT_RBG("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("snsnd", SN76477) MCFG_SN76477_NOISE_PARAMS(RES_K(47), RES_K(330), CAP_P(470)) // noise + filter @@ -1900,7 +1900,7 @@ MACHINE_CONFIG_START(_8080bw_state::lupin3) MCFG_PALETTE_ADD_3BIT_RGB("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("snsnd", SN76477) MCFG_SN76477_NOISE_PARAMS(0, 0, 0) // noise + filter: N/C @@ -2071,7 +2071,7 @@ MACHINE_CONFIG_START(_8080bw_state::polaris) MCFG_PALETTE_ADD_3BIT_RBG("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("discrete", DISCRETE, polaris_discrete) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/88games.cpp b/src/mame/drivers/88games.cpp index 40fcc9e1323..3927dd6fe54 100644 --- a/src/mame/drivers/88games.cpp +++ b/src/mame/drivers/88games.cpp @@ -346,7 +346,7 @@ MACHINE_CONFIG_START(_88games_state::_88games) MCFG_K051316_CB(_88games_state, zoom_callback) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/a2600.cpp b/src/mame/drivers/a2600.cpp index 8cb30ad84bc..a59f435e577 100644 --- a/src/mame/drivers/a2600.cpp +++ b/src/mame/drivers/a2600.cpp @@ -521,7 +521,7 @@ MACHINE_CONFIG_START(a2600_state::a2600) MCFG_SCREEN_PALETTE("tia_video:palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_TIA_ADD("tia", MASTER_CLOCK_NTSC/114) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.90) @@ -569,7 +569,7 @@ MACHINE_CONFIG_START(a2600_state::a2600p) MCFG_SCREEN_PALETTE("tia_video:palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_TIA_ADD("tia", MASTER_CLOCK_PAL/114) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.90) diff --git a/src/mame/drivers/a5105.cpp b/src/mame/drivers/a5105.cpp index 77eb0cf344b..b2204c52f10 100644 --- a/src/mame/drivers/a5105.cpp +++ b/src/mame/drivers/a5105.cpp @@ -585,7 +585,7 @@ MACHINE_CONFIG_START(a5105_state::a5105) MCFG_PALETTE_INIT_OWNER(a5105_state, a5105) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MCFG_DEVICE_ADD("beeper", BEEP, 500) diff --git a/src/mame/drivers/a6809.cpp b/src/mame/drivers/a6809.cpp index 5cfe9db5eb6..13757281abd 100644 --- a/src/mame/drivers/a6809.cpp +++ b/src/mame/drivers/a6809.cpp @@ -239,7 +239,7 @@ MACHINE_CONFIG_START(a6809_state::a6809) MCFG_PALETTE_ADD("palette", 8) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mame/drivers/a7800.cpp b/src/mame/drivers/a7800.cpp index f3436602983..9dc01a74f81 100644 --- a/src/mame/drivers/a7800.cpp +++ b/src/mame/drivers/a7800.cpp @@ -1395,7 +1395,7 @@ MACHINE_CONFIG_START(a7800_state::a7800_ntsc) MCFG_MARIA_SCREEN("screen") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_TIA_ADD("tia", 31400) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) diff --git a/src/mame/drivers/aa310.cpp b/src/mame/drivers/aa310.cpp index 402d0911542..1f155433074 100644 --- a/src/mame/drivers/aa310.cpp +++ b/src/mame/drivers/aa310.cpp @@ -434,7 +434,7 @@ MACHINE_CONFIG_START(aa310_state::aa310) MCFG_SOFTWARE_LIST_ADD("flop_list", "archimedes") - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac0", DAC_16BIT_R2R_TWOS_COMPLEMENT, 0) MCFG_SOUND_ROUTE(0, "speaker", 0.1) // unknown DAC MCFG_DEVICE_ADD("dac1", DAC_16BIT_R2R_TWOS_COMPLEMENT, 0) MCFG_SOUND_ROUTE(0, "speaker", 0.1) // unknown DAC MCFG_DEVICE_ADD("dac2", DAC_16BIT_R2R_TWOS_COMPLEMENT, 0) MCFG_SOUND_ROUTE(0, "speaker", 0.1) // unknown DAC diff --git a/src/mame/drivers/abc80.cpp b/src/mame/drivers/abc80.cpp index a2b0d11702a..ddc61a9262f 100644 --- a/src/mame/drivers/abc80.cpp +++ b/src/mame/drivers/abc80.cpp @@ -496,7 +496,7 @@ MACHINE_CONFIG_START(abc80_state::abc80) abc80_video(config); // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD(SN76477_TAG, SN76477) MCFG_SN76477_NOISE_PARAMS(RES_K(47), RES_K(330), CAP_P(390)) // noise + filter: R26 47k - R24 330k - C52 390p MCFG_SN76477_DECAY_RES(RES_K(47)) // decay_res: R23 47k diff --git a/src/mame/drivers/abc80x.cpp b/src/mame/drivers/abc80x.cpp index 176355ebbc2..76a226086d5 100644 --- a/src/mame/drivers/abc80x.cpp +++ b/src/mame/drivers/abc80x.cpp @@ -1161,7 +1161,7 @@ MACHINE_CONFIG_START(abc800c_state::abc800c) abc800c_video(config); // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD(DISCRETE_TAG, DISCRETE, abc800_discrete) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80) @@ -1236,7 +1236,7 @@ MACHINE_CONFIG_START(abc800m_state::abc800m) abc800m_video(config); // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD(DISCRETE_TAG, DISCRETE, abc800_discrete) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80) @@ -1313,7 +1313,7 @@ MACHINE_CONFIG_START(abc802_state::abc802) abc802_video(config); // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD(DISCRETE_TAG, DISCRETE, abc800_discrete) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80) diff --git a/src/mame/drivers/ac1.cpp b/src/mame/drivers/ac1.cpp index d4d23f6f96d..ecb7cdda717 100644 --- a/src/mame/drivers/ac1.cpp +++ b/src/mame/drivers/ac1.cpp @@ -154,7 +154,7 @@ MACHINE_CONFIG_START(ac1_state::ac1) MCFG_PALETTE_ADD_MONOCHROME("palette") - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mame/drivers/accomm.cpp b/src/mame/drivers/accomm.cpp index f7c41c1deee..46df25156e1 100644 --- a/src/mame/drivers/accomm.cpp +++ b/src/mame/drivers/accomm.cpp @@ -857,7 +857,7 @@ MACHINE_CONFIG_START(accomm_state::accomm) MCFG_NVRAM_ADD_0FILL("nvram") /* sound */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, 300) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) diff --git a/src/mame/drivers/aces1.cpp b/src/mame/drivers/aces1.cpp index 09d128ee7e5..a87debe908a 100644 --- a/src/mame/drivers/aces1.cpp +++ b/src/mame/drivers/aces1.cpp @@ -466,7 +466,7 @@ MACHINE_CONFIG_START(aces1_state::aces1) MCFG_DEFAULT_LAYOUT(layout_aces1) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); // 0xadf0 - Dips, Sound MCFG_DEVICE_ADD("aysnd", AY8910, 1500000) /* ?? MHz */ diff --git a/src/mame/drivers/acommand.cpp b/src/mame/drivers/acommand.cpp index a8b5609899f..d254180106b 100644 --- a/src/mame/drivers/acommand.cpp +++ b/src/mame/drivers/acommand.cpp @@ -491,7 +491,8 @@ MACHINE_CONFIG_START(acommand_state::acommand) MCFG_MEGASYS1_TILEMAP_ADD("txtmap", "palette", 0x2700) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("oki1", OKIM6295, 2112000, okim6295_device::PIN7_HIGH) // clock frequency & pin 7 not verified MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 1.0) diff --git a/src/mame/drivers/acrnsys1.cpp b/src/mame/drivers/acrnsys1.cpp index 6cfbc014296..d8cb8ef1a56 100644 --- a/src/mame/drivers/acrnsys1.cpp +++ b/src/mame/drivers/acrnsys1.cpp @@ -273,7 +273,7 @@ MACHINE_CONFIG_START(acrnsys1_state::acrnsys1) MCFG_DEFAULT_LAYOUT(layout_acrnsys1) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mame/drivers/actfancr.cpp b/src/mame/drivers/actfancr.cpp index d51b0b1443f..63c7aa7dbad 100644 --- a/src/mame/drivers/actfancr.cpp +++ b/src/mame/drivers/actfancr.cpp @@ -322,7 +322,7 @@ MACHINE_CONFIG_START(actfancr_state::actfancr) MCFG_DECO_MXC06_GFXDECODE("gfxdecode") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) @@ -380,7 +380,7 @@ MACHINE_CONFIG_START(actfancr_state::triothep) MCFG_DECO_MXC06_GFXDECODE("gfxdecode") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) diff --git a/src/mame/drivers/acvirus.cpp b/src/mame/drivers/acvirus.cpp index 7f8ce0b99bc..f3b36b9d815 100644 --- a/src/mame/drivers/acvirus.cpp +++ b/src/mame/drivers/acvirus.cpp @@ -110,7 +110,8 @@ MACHINE_CONFIG_START(acvirus_state::virus) MCFG_DEVICE_ADD("maincpu", I8052, XTAL(12'000'000)) MCFG_DEVICE_PROGRAM_MAP(virus_map) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MACHINE_CONFIG_END static INPUT_PORTS_START( virus ) diff --git a/src/mame/drivers/adam.cpp b/src/mame/drivers/adam.cpp index f0554ebdf4c..953f83353ae 100644 --- a/src/mame/drivers/adam.cpp +++ b/src/mame/drivers/adam.cpp @@ -1071,7 +1071,7 @@ MACHINE_CONFIG_START(adam_state::adam) MCFG_SCREEN_UPDATE_DEVICE(TMS9928A_TAG, tms9928a_device, screen_update) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD(SN76489A_TAG, SN76489A, XTAL(7'159'090)/2) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) // TODO: enable when Z80 has better WAIT pin emulation diff --git a/src/mame/drivers/adp.cpp b/src/mame/drivers/adp.cpp index 26e216dd690..9637d5e34a2 100644 --- a/src/mame/drivers/adp.cpp +++ b/src/mame/drivers/adp.cpp @@ -583,7 +583,7 @@ MACHINE_CONFIG_START(adp_state::quickjac) MCFG_HD63484_ADD("acrtc", 0, adp_hd63484_map) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, 3686400/2) MCFG_AY8910_PORT_A_READ_CB(IOPORT("PA")) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.10) diff --git a/src/mame/drivers/advision.cpp b/src/mame/drivers/advision.cpp index 58c77b18bcf..a878481e33c 100644 --- a/src/mame/drivers/advision.cpp +++ b/src/mame/drivers/advision.cpp @@ -91,7 +91,7 @@ MACHINE_CONFIG_START(advision_state::advision) MCFG_PALETTE_INIT_OWNER(advision_state, advision) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_2BIT_BINARY_WEIGHTED, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) // unknown DAC MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT) diff --git a/src/mame/drivers/aeroboto.cpp b/src/mame/drivers/aeroboto.cpp index c94846cce15..628472e52f9 100644 --- a/src/mame/drivers/aeroboto.cpp +++ b/src/mame/drivers/aeroboto.cpp @@ -268,7 +268,7 @@ MACHINE_CONFIG_START(aeroboto_state::formatz) MCFG_PALETTE_ADD_RRRRGGGGBBBB_PROMS("palette", "proms", 256) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_8_ADD("soundlatch2") diff --git a/src/mame/drivers/aerofgt.cpp b/src/mame/drivers/aerofgt.cpp index 949892d56a3..a6849b0f125 100644 --- a/src/mame/drivers/aerofgt.cpp +++ b/src/mame/drivers/aerofgt.cpp @@ -1484,7 +1484,8 @@ MACHINE_CONFIG_START(aerofgt_state::pspikes) MCFG_VIDEO_START_OVERRIDE(aerofgt_state,pspikes) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) @@ -1564,7 +1565,7 @@ MACHINE_CONFIG_START(aerofgt_state::pspikesb) MCFG_VIDEO_START_OVERRIDE(aerofgt_state,pspikes) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, 1056000, okim6295_device::PIN7_LOW) // clock frequency & pin 7 not verified, pin high causes sound pitch to be too high MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -1614,7 +1615,7 @@ MACHINE_CONFIG_START(aerofgt_state::kickball) MCFG_VIDEO_START_OVERRIDE(aerofgt_state,pspikes) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) @@ -1661,7 +1662,7 @@ MACHINE_CONFIG_START(aerofgt_state::pspikesc) MCFG_VIDEO_START_OVERRIDE(aerofgt_state,pspikes) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, 1056000, okim6295_device::PIN7_HIGH) // clock frequency & pin 7 not verified MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -1710,7 +1711,8 @@ MACHINE_CONFIG_START(aerofgt_state::karatblz) MCFG_VIDEO_START_OVERRIDE(aerofgt_state,karatblz) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) @@ -1770,7 +1772,7 @@ MACHINE_CONFIG_START(aerofgt_state::karatblzbl) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM3812, XTAL(8'000'000)/2) MCFG_YM3812_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) @@ -1824,7 +1826,8 @@ MACHINE_CONFIG_START(aerofgt_state::spinlbrk) MCFG_VIDEO_START_OVERRIDE(aerofgt_state,spinlbrk) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) @@ -1881,7 +1884,8 @@ MACHINE_CONFIG_START(aerofgt_state::turbofrc) MCFG_VIDEO_START_OVERRIDE(aerofgt_state,turbofrc) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) @@ -1939,7 +1943,8 @@ MACHINE_CONFIG_START(aerofgt_state::aerofgtb) MCFG_VIDEO_START_OVERRIDE(aerofgt_state,turbofrc) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) @@ -2002,7 +2007,8 @@ MACHINE_CONFIG_START(aerofgt_state::aerofgt) MCFG_VIDEO_START_OVERRIDE(aerofgt_state,turbofrc) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) @@ -2048,7 +2054,7 @@ MACHINE_CONFIG_START(aerofgt_state::aerfboot) MCFG_VIDEO_START_OVERRIDE(aerofgt_state,turbofrc) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) @@ -2088,7 +2094,7 @@ MACHINE_CONFIG_START(aerofgt_state::aerfboo2) MCFG_VIDEO_START_OVERRIDE(aerofgt_state,turbofrc) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, 1056000, okim6295_device::PIN7_HIGH) // clock frequency & pin 7 not verified MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -2129,7 +2135,7 @@ MACHINE_CONFIG_START(aerofgt_state::wbbc97) MCFG_VIDEO_START_OVERRIDE(aerofgt_state,wbbc97) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) diff --git a/src/mame/drivers/agat.cpp b/src/mame/drivers/agat.cpp index 4db4cf368df..2c5d1dd91a2 100644 --- a/src/mame/drivers/agat.cpp +++ b/src/mame/drivers/agat.cpp @@ -1097,7 +1097,7 @@ MACHINE_CONFIG_START(agat7_state::agat7) MCFG_RAM_DEFAULT_VALUE(0x00) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD(A7_SPEAKER_TAG, SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) diff --git a/src/mame/drivers/age_candy.cpp b/src/mame/drivers/age_candy.cpp index 0119df14328..f04459e4362 100644 --- a/src/mame/drivers/age_candy.cpp +++ b/src/mame/drivers/age_candy.cpp @@ -61,7 +61,7 @@ MACHINE_CONFIG_START(age_candy_state::age_candy) // MCFG_DEVICE_IO_MAP(age_candy_io) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MACHINE_CONFIG_END diff --git a/src/mame/drivers/aim65.cpp b/src/mame/drivers/aim65.cpp index 8fb5fb4b74f..a4dd3084356 100644 --- a/src/mame/drivers/aim65.cpp +++ b/src/mame/drivers/aim65.cpp @@ -206,7 +206,7 @@ MACHINE_CONFIG_START(aim65_state::aim65) MCFG_DL1416_UPDATE_HANDLER(WRITE16(*this, aim65_state, aim65_update_ds<5>)) /* Sound - wave sound only */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mame/drivers/airbustr.cpp b/src/mame/drivers/airbustr.cpp index 77728184ebb..acf9f14ef17 100644 --- a/src/mame/drivers/airbustr.cpp +++ b/src/mame/drivers/airbustr.cpp @@ -605,7 +605,7 @@ MACHINE_CONFIG_START(airbustr_state::airbustr) MCFG_KANEKO_PANDORA_GFXDECODE("gfxdecode") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch1") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) diff --git a/src/mame/drivers/airraid.cpp b/src/mame/drivers/airraid.cpp index 60a0e715a81..a22f2ae2413 100644 --- a/src/mame/drivers/airraid.cpp +++ b/src/mame/drivers/airraid.cpp @@ -404,7 +404,7 @@ MACHINE_CONFIG_START(airraid_state::airraid) MCFG_AIRRAID_VIDEO_ADD("airraid_vid") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2151, XTAL(14'318'181)/4) MCFG_YM2151_IRQ_HANDLER(WRITELINE("seibu_sound", seibu_sound_device, fm_irqhandler)) diff --git a/src/mame/drivers/ajax.cpp b/src/mame/drivers/ajax.cpp index fd36a1d1eae..6b22e935327 100644 --- a/src/mame/drivers/ajax.cpp +++ b/src/mame/drivers/ajax.cpp @@ -214,7 +214,8 @@ MACHINE_CONFIG_START(ajax_state::ajax) MCFG_K051316_CB(ajax_state, zoom_callback) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/albazc.cpp b/src/mame/drivers/albazc.cpp index 615f1daed54..20fb8252653 100644 --- a/src/mame/drivers/albazc.cpp +++ b/src/mame/drivers/albazc.cpp @@ -304,7 +304,7 @@ MACHINE_CONFIG_START(albazc_state::hanaroku) MCFG_PALETTE_INIT_OWNER(albazc_state, albazc) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, 1500000) /* ? MHz */ MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW1")) diff --git a/src/mame/drivers/albazg.cpp b/src/mame/drivers/albazg.cpp index 9133200b476..5dc05b75d31 100644 --- a/src/mame/drivers/albazg.cpp +++ b/src/mame/drivers/albazg.cpp @@ -396,7 +396,7 @@ MACHINE_CONFIG_START(albazg_state::yumefuda) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, MASTER_CLOCK/16) /* guessed to use the same xtal as the crtc */ MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW1")) diff --git a/src/mame/drivers/aleck64.cpp b/src/mame/drivers/aleck64.cpp index 956f06af2d0..46eff01eec8 100644 --- a/src/mame/drivers/aleck64.cpp +++ b/src/mame/drivers/aleck64.cpp @@ -935,7 +935,8 @@ MACHINE_CONFIG_START(aleck64_state::aleck64) MCFG_PALETTE_ADD("palette", 0x1000) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("dac1", DMADAC) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 1.0) diff --git a/src/mame/drivers/alg.cpp b/src/mame/drivers/alg.cpp index 32c4d3eb432..943ccded4e6 100644 --- a/src/mame/drivers/alg.cpp +++ b/src/mame/drivers/alg.cpp @@ -332,7 +332,8 @@ MACHINE_CONFIG_START(alg_state::alg_r1) MCFG_VIDEO_START_OVERRIDE(alg_state,alg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("amiga", PAULA_8364, amiga_state::CLK_C1_NTSC) MCFG_SOUND_ROUTE(0, "lspeaker", 0.25) diff --git a/src/mame/drivers/alien.cpp b/src/mame/drivers/alien.cpp index 0b7efa6afbe..bf1c6817acd 100644 --- a/src/mame/drivers/alien.cpp +++ b/src/mame/drivers/alien.cpp @@ -108,7 +108,7 @@ MACHINE_CONFIG_START(alien_state::alien) MCFG_PALETTE_ADD("palette", 0x1000) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MACHINE_CONFIG_END diff --git a/src/mame/drivers/aliens.cpp b/src/mame/drivers/aliens.cpp index 046106353c5..0386cb5ce8a 100644 --- a/src/mame/drivers/aliens.cpp +++ b/src/mame/drivers/aliens.cpp @@ -236,7 +236,7 @@ MACHINE_CONFIG_START(aliens_state::aliens) MCFG_K051960_IRQ_HANDLER(INPUTLINE("maincpu", KONAMI_IRQ_LINE)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/alinvade.cpp b/src/mame/drivers/alinvade.cpp index 20e15526336..19c64dd99b8 100644 --- a/src/mame/drivers/alinvade.cpp +++ b/src/mame/drivers/alinvade.cpp @@ -221,7 +221,7 @@ MACHINE_CONFIG_START(alinvade_state::alinvade) MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, alinvade_state, vblank_irq)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("discrete", DISCRETE, alinvade_discrete) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) MACHINE_CONFIG_END diff --git a/src/mame/drivers/alpha68k.cpp b/src/mame/drivers/alpha68k.cpp index 1277d24586a..ee035381220 100644 --- a/src/mame/drivers/alpha68k.cpp +++ b/src/mame/drivers/alpha68k.cpp @@ -1969,7 +1969,7 @@ MACHINE_CONFIG_START(alpha68k_state::sstingry) MCFG_PALETTE_INIT_OWNER(alpha68k_state,kyros) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -2021,7 +2021,7 @@ MACHINE_CONFIG_START(alpha68k_state::kyros) MCFG_PALETTE_INIT_OWNER(alpha68k_state,kyros) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -2072,7 +2072,7 @@ MACHINE_CONFIG_START(alpha68k_state::jongbou) MCFG_PALETTE_INIT_OWNER(alpha68k_state,kyros) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -2111,7 +2111,7 @@ MACHINE_CONFIG_START(alpha68k_state::alpha68k_I) MCFG_PALETTE_INIT_OWNER(alpha68k_state,paddlem) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -2158,7 +2158,7 @@ MACHINE_CONFIG_START(alpha68k_state::alpha68k_II) MCFG_VIDEO_START_OVERRIDE(alpha68k_state,alpha68k) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -2215,7 +2215,7 @@ MACHINE_CONFIG_START(alpha68k_state::alpha68k_II_gm) MCFG_VIDEO_START_OVERRIDE(alpha68k_state,alpha68k) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -2264,7 +2264,7 @@ MACHINE_CONFIG_START(alpha68k_state::alpha68k_V) MCFG_VIDEO_START_OVERRIDE(alpha68k_state,alpha68k) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -2313,7 +2313,7 @@ MACHINE_CONFIG_START(alpha68k_state::alpha68k_V_sb) MCFG_VIDEO_START_OVERRIDE(alpha68k_state,alpha68k) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -2361,7 +2361,7 @@ MACHINE_CONFIG_START(alpha68k_state::tnextspc) MCFG_PALETTE_INIT_OWNER(alpha68k_state,paddlem) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/alphatpx.cpp b/src/mame/drivers/alphatpx.cpp index 3c37e024aaa..eb770b10723 100644 --- a/src/mame/drivers/alphatpx.cpp +++ b/src/mame/drivers/alphatpx.cpp @@ -1240,7 +1240,7 @@ MACHINE_CONFIG_START(alphatp_12_state::alphatp2) MCFG_GFXDECODE_ADD("gfxdecode", "palette", alphatp3) // sound hardware - MCFG_SPEAKER_STANDARD_MONO( "mono" ) + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD( "beeper", BEEP, 1060 ) MCFG_SOUND_ROUTE( ALL_OUTPUTS, "mono", 1.00 ) @@ -1321,7 +1321,7 @@ MACHINE_CONFIG_START(alphatp_34_state::alphatp3) MCFG_GFXDECODE_ADD("gfxdecode", "palette", alphatp3) // sound hardware - MCFG_SPEAKER_STANDARD_MONO( "mono" ) + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD( "beeper", BEEP, 1060 ) MCFG_SOUND_ROUTE( ALL_OUTPUTS, "mono", 1.00 ) diff --git a/src/mame/drivers/alphatro.cpp b/src/mame/drivers/alphatro.cpp index 8a7b795cd58..f146f43f3a7 100644 --- a/src/mame/drivers/alphatro.cpp +++ b/src/mame/drivers/alphatro.cpp @@ -716,7 +716,7 @@ MACHINE_CONFIG_START(alphatro_state::alphatro) MCFG_PALETTE_INIT_OWNER(alphatro_state, alphatro) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, 950) /* piezo-device needs to be measured */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") diff --git a/src/mame/drivers/alto2.cpp b/src/mame/drivers/alto2.cpp index bbcf2135b0e..6cfed0f62e2 100644 --- a/src/mame/drivers/alto2.cpp +++ b/src/mame/drivers/alto2.cpp @@ -303,7 +303,7 @@ MACHINE_CONFIG_START(alto2_state::alto2) MCFG_PALETTE_ADD_MONOCHROME("palette") // Sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80) diff --git a/src/mame/drivers/amaticmg.cpp b/src/mame/drivers/amaticmg.cpp index 9bb46b56554..d522e453a4c 100644 --- a/src/mame/drivers/amaticmg.cpp +++ b/src/mame/drivers/amaticmg.cpp @@ -881,7 +881,7 @@ MACHINE_CONFIG_START(amaticmg_state::amaticmg) MCFG_PALETTE_INIT_OWNER(amaticmg_state, amaticmg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("ymsnd", YM3812, SND_CLOCK) /* Y3014B DAC */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) diff --git a/src/mame/drivers/ambush.cpp b/src/mame/drivers/ambush.cpp index 2775ec4197a..09c881a4313 100644 --- a/src/mame/drivers/ambush.cpp +++ b/src/mame/drivers/ambush.cpp @@ -718,7 +718,7 @@ MACHINE_CONFIG_START(ambush_state::ambush) MCFG_PALETTE_INIT_OWNER(ambush_state, ambush) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay1", AY8912, XTAL(18'432'000)/6/2) MCFG_AY8910_PORT_A_READ_CB(IOPORT("buttons")) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.33) diff --git a/src/mame/drivers/amerihok.cpp b/src/mame/drivers/amerihok.cpp index c6c03c47a30..f2a179d443d 100644 --- a/src/mame/drivers/amerihok.cpp +++ b/src/mame/drivers/amerihok.cpp @@ -84,7 +84,7 @@ MACHINE_CONFIG_START(amerihok_state::amerihok) MCFG_DEVICE_DATA_MAP(amerihok_data_map) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6376, 1000000) // 64-pin QFP (probably actually MSM6650) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/amiga.cpp b/src/mame/drivers/amiga.cpp index 27b371d798b..42c3add6430 100644 --- a/src/mame/drivers/amiga.cpp +++ b/src/mame/drivers/amiga.cpp @@ -1396,7 +1396,8 @@ MACHINE_CONFIG_START(amiga_state::amiga_base) MCFG_MOS6526_PB_OUTPUT_CALLBACK(WRITE8("fdc", amiga_fdc_device, ciaaprb_w)) // audio - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("amiga", PAULA_8364, amiga_state::CLK_C1_PAL) MCFG_SOUND_ROUTE(0, "lspeaker", 0.50) MCFG_SOUND_ROUTE(1, "rspeaker", 0.50) diff --git a/src/mame/drivers/ampoker2.cpp b/src/mame/drivers/ampoker2.cpp index 992ecefad17..35224ab4314 100644 --- a/src/mame/drivers/ampoker2.cpp +++ b/src/mame/drivers/ampoker2.cpp @@ -1175,7 +1175,7 @@ MACHINE_CONFIG_START(ampoker2_state::ampoker2) MCFG_PALETTE_INIT_OWNER(ampoker2_state, ampoker2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, MASTER_CLOCK/4) /* 1.5 MHz, measured */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30) MACHINE_CONFIG_END diff --git a/src/mame/drivers/amspdwy.cpp b/src/mame/drivers/amspdwy.cpp index bc57d7c596f..38e8255909c 100644 --- a/src/mame/drivers/amspdwy.cpp +++ b/src/mame/drivers/amspdwy.cpp @@ -274,7 +274,8 @@ MACHINE_CONFIG_START(amspdwy_state::amspdwy) MCFG_PALETTE_FORMAT(BBGGGRRR_inverted) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) diff --git a/src/mame/drivers/amstrad.cpp b/src/mame/drivers/amstrad.cpp index c7dfd59874f..78ae761a2c3 100644 --- a/src/mame/drivers/amstrad.cpp +++ b/src/mame/drivers/amstrad.cpp @@ -947,7 +947,7 @@ MACHINE_CONFIG_START(amstrad_state::amstrad_base) MCFG_VIDEO_START_OVERRIDE(amstrad_state,amstrad) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MCFG_DEVICE_ADD("ay", AY8912, XTAL(16'000'000) / 16) @@ -1075,7 +1075,7 @@ MACHINE_CONFIG_START(amstrad_state::cpcplus) MCFG_VIDEO_START_OVERRIDE(amstrad_state,amstrad) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MCFG_DEVICE_ADD("ay", AY8912, XTAL(40'000'000) / 40) @@ -1154,7 +1154,7 @@ MACHINE_CONFIG_START(amstrad_state::gx4000) MCFG_VIDEO_START_OVERRIDE(amstrad_state,amstrad) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay", AY8912, XTAL(40'000'000) / 40) MCFG_AY8910_PORT_A_READ_CB(READ8(*this, amstrad_state, amstrad_psg_porta_read)) /* portA read */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mame/drivers/amusco.cpp b/src/mame/drivers/amusco.cpp index b2ddd42d138..6b970c065d2 100644 --- a/src/mame/drivers/amusco.cpp +++ b/src/mame/drivers/amusco.cpp @@ -592,7 +592,7 @@ MACHINE_CONFIG_START(amusco_state::amusco) MCFG_MC6845_UPDATE_ROW_CB(amusco_state, update_row) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("sn", SN76489A, SND_CLOCK) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80) MACHINE_CONFIG_END diff --git a/src/mame/drivers/amust.cpp b/src/mame/drivers/amust.cpp index e64a9de40b1..75a9112306f 100644 --- a/src/mame/drivers/amust.cpp +++ b/src/mame/drivers/amust.cpp @@ -395,7 +395,7 @@ MACHINE_CONFIG_START(amust_state::amust) MCFG_GFXDECODE_ADD("gfxdecode", "palette", amust) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, 800) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/anes.cpp b/src/mame/drivers/anes.cpp index 6e2adfcaf90..b80bd82a1a8 100644 --- a/src/mame/drivers/anes.cpp +++ b/src/mame/drivers/anes.cpp @@ -173,7 +173,7 @@ MACHINE_CONFIG_START(anes_state::anes) MCFG_PALETTE_ADD("palette", 0x100) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ym", YM2413, XTAL(3'579'545)) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30) MACHINE_CONFIG_END diff --git a/src/mame/drivers/angelkds.cpp b/src/mame/drivers/angelkds.cpp index 83550c5e1bc..780908686de 100644 --- a/src/mame/drivers/angelkds.cpp +++ b/src/mame/drivers/angelkds.cpp @@ -554,7 +554,7 @@ MACHINE_CONFIG_START(angelkds_state::angelkds) MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ym1", YM2203, XTAL(4'000'000)) MCFG_YM2203_IRQ_HANDLER(INPUTLINE("sub", 0)) diff --git a/src/mame/drivers/apc.cpp b/src/mame/drivers/apc.cpp index 419e836d199..924611538c7 100644 --- a/src/mame/drivers/apc.cpp +++ b/src/mame/drivers/apc.cpp @@ -987,7 +987,7 @@ MACHINE_CONFIG_START(apc_state::apc) MCFG_UPD7220_DISPLAY_PIXELS_CALLBACK_OWNER(apc_state, hgdc_display_pixels) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD( "upd1771c", UPD1771C, MAIN_CLOCK ) //uPD1771C-006 MCFG_SOUND_ROUTE( ALL_OUTPUTS, "mono", 1.00 ) MACHINE_CONFIG_END diff --git a/src/mame/drivers/apf.cpp b/src/mame/drivers/apf.cpp index 3409811f529..e9dc9a82e99 100644 --- a/src/mame/drivers/apf.cpp +++ b/src/mame/drivers/apf.cpp @@ -533,7 +533,7 @@ MACHINE_CONFIG_START(apf_state::apfm1000) // other lines not connected /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/apogee.cpp b/src/mame/drivers/apogee.cpp index 91c727e26ea..e280fde1833 100644 --- a/src/mame/drivers/apogee.cpp +++ b/src/mame/drivers/apogee.cpp @@ -253,7 +253,7 @@ MACHINE_CONFIG_START(apogee_state::apogee) MCFG_PALETTE_ADD("palette", 3) MCFG_PALETTE_INIT_OWNER(apogee_state,radio86) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) diff --git a/src/mame/drivers/apollo.cpp b/src/mame/drivers/apollo.cpp index 8ee9cf4c829..65eeb4a0041 100644 --- a/src/mame/drivers/apollo.cpp +++ b/src/mame/drivers/apollo.cpp @@ -1064,7 +1064,7 @@ MACHINE_CONFIG_START(apollo_state::dn3500) apollo(config); /* keyboard beeper */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beep", BEEP, 1000) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) @@ -1088,7 +1088,7 @@ MACHINE_CONFIG_START(apollo_state::dsp3500) apollo_terminal(config); /* keyboard beeper */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beep", BEEP, 1000) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) @@ -1139,7 +1139,7 @@ MACHINE_CONFIG_START(apollo_state::dsp3000) apollo_terminal(config); /* keyboard beeper */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beep", BEEP, 1000) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) @@ -1188,7 +1188,7 @@ MACHINE_CONFIG_START(apollo_state::dsp5500) apollo_terminal(config); /* keyboard beeper */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beep", BEEP, 1000) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) diff --git a/src/mame/drivers/apple2.cpp b/src/mame/drivers/apple2.cpp index ecaa9c5a4bd..2079a4175f4 100644 --- a/src/mame/drivers/apple2.cpp +++ b/src/mame/drivers/apple2.cpp @@ -1391,7 +1391,7 @@ MACHINE_CONFIG_START(napple2_state::apple2_common) MCFG_PALETTE_INIT_OWNER(napple2_state, apple2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD(A2_SPEAKER_TAG, SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) diff --git a/src/mame/drivers/apple2e.cpp b/src/mame/drivers/apple2e.cpp index c4a00aca969..6f6b5fc32d7 100644 --- a/src/mame/drivers/apple2e.cpp +++ b/src/mame/drivers/apple2e.cpp @@ -3903,7 +3903,7 @@ MACHINE_CONFIG_START(apple2e_state::apple2e) MCFG_PALETTE_INIT_OWNER(apple2e_state, apple2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD(A2_SPEAKER_TAG, SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) diff --git a/src/mame/drivers/apple2gs.cpp b/src/mame/drivers/apple2gs.cpp index 96fe438ec6c..44fbdf85bc0 100644 --- a/src/mame/drivers/apple2gs.cpp +++ b/src/mame/drivers/apple2gs.cpp @@ -363,10 +363,11 @@ MACHINE_CONFIG_START(apple2gs_state::apple2gs) MCFG_AY3600_DATA_READY_CB(WRITELINE(*this, apple2_state, ay3600_iie_data_ready_w)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("a2speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_ES5503_ADD("es5503", APPLE2GS_7M) MCFG_ES5503_OUTPUT_CHANNELS(2) diff --git a/src/mame/drivers/apple3.cpp b/src/mame/drivers/apple3.cpp index de924a79573..62fade1212e 100644 --- a/src/mame/drivers/apple3.cpp +++ b/src/mame/drivers/apple3.cpp @@ -146,7 +146,7 @@ MACHINE_CONFIG_START(apple3_state::apple3) MCFG_VIA6522_IRQ_HANDLER(WRITELINE(*this, apple3_state, apple3_via_1_irq_func)) /* sound */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("bell", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.99) MCFG_DEVICE_ADD("dac", DAC_6BIT_BINARY_WEIGHTED, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.125) // 6522.b5(pb0-pb5) + 320k,160k,80k,40k,20k,10k MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) diff --git a/src/mame/drivers/applix.cpp b/src/mame/drivers/applix.cpp index fd82b97630f..5174f8c052b 100644 --- a/src/mame/drivers/applix.cpp +++ b/src/mame/drivers/applix.cpp @@ -870,7 +870,8 @@ MACHINE_CONFIG_START(applix_state::applix) MCFG_PALETTE_INIT_OWNER(applix_state, applix) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ldac", DAC0800, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 1.0) // 74ls374.u20 + dac0800.u21 + 4052.u23 MCFG_DEVICE_ADD("rdac", DAC0800, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 1.0) // 74ls374.u20 + dac0800.u21 + 4052.u23 MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) diff --git a/src/mame/drivers/appoooh.cpp b/src/mame/drivers/appoooh.cpp index 3436dd4302f..01a3a3acc93 100644 --- a/src/mame/drivers/appoooh.cpp +++ b/src/mame/drivers/appoooh.cpp @@ -429,7 +429,7 @@ MACHINE_CONFIG_START(appoooh_state::appoooh_common) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("sn1", SN76489, 18432000/6) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30) diff --git a/src/mame/drivers/apricot.cpp b/src/mame/drivers/apricot.cpp index 2e8d81f936c..68b61dad99d 100644 --- a/src/mame/drivers/apricot.cpp +++ b/src/mame/drivers/apricot.cpp @@ -391,7 +391,7 @@ MACHINE_CONFIG_START(apricot_state::apricot) MCFG_MC6845_OUT_DE_CB(WRITELINE(*this, apricot_state, apricot_hd6845_de)) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ic7", SN76489, XTAL(4'000'000) / 2) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/apricotp.cpp b/src/mame/drivers/apricotp.cpp index e6bcf0ae926..d3b2400a813 100644 --- a/src/mame/drivers/apricotp.cpp +++ b/src/mame/drivers/apricotp.cpp @@ -623,7 +623,7 @@ MACHINE_CONFIG_START(fp_state::fp) MCFG_MC6845_UPDATE_ROW_CB(fp_state, update_row) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD(SN76489AN_TAG, SN76489A, 2000000) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) diff --git a/src/mame/drivers/aquarium.cpp b/src/mame/drivers/aquarium.cpp index 2c5a70f2ad5..3cfde4fbc60 100644 --- a/src/mame/drivers/aquarium.cpp +++ b/src/mame/drivers/aquarium.cpp @@ -317,7 +317,8 @@ MACHINE_CONFIG_START(aquarium_state::aquarium) MCFG_DEVICE_ADD("spritegen", EXCELLENT_SPRITE, 0) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) diff --git a/src/mame/drivers/aquarius.cpp b/src/mame/drivers/aquarius.cpp index c6fa6ac234e..eeb93bec085 100644 --- a/src/mame/drivers/aquarius.cpp +++ b/src/mame/drivers/aquarius.cpp @@ -372,7 +372,7 @@ MACHINE_CONFIG_START(aquarius_state::aquarius) MCFG_PALETTE_INIT_OWNER(aquarius_state, aquarius) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mame/drivers/arabian.cpp b/src/mame/drivers/arabian.cpp index 390239549e0..7c0824376ae 100644 --- a/src/mame/drivers/arabian.cpp +++ b/src/mame/drivers/arabian.cpp @@ -392,7 +392,7 @@ MACHINE_CONFIG_START(arabian_state::arabian) MCFG_PALETTE_INIT_OWNER(arabian_state, arabian) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, MAIN_OSC/4/2) MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(*this, arabian_state, ay8910_porta_w)) diff --git a/src/mame/drivers/arachnid.cpp b/src/mame/drivers/arachnid.cpp index 43266ae2644..dca711a8924 100644 --- a/src/mame/drivers/arachnid.cpp +++ b/src/mame/drivers/arachnid.cpp @@ -450,7 +450,7 @@ MACHINE_CONFIG_START(arachnid_state::arachnid) MCFG_SCREEN_UPDATE_DEVICE( TMS9118_TAG, tms9118_device, screen_update ) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/arcadecl.cpp b/src/mame/drivers/arcadecl.cpp index 2c77d71f86c..53eb79d986a 100644 --- a/src/mame/drivers/arcadecl.cpp +++ b/src/mame/drivers/arcadecl.cpp @@ -346,7 +346,7 @@ MACHINE_CONFIG_START(sparkz_state::sparkz) MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, sparkz_state, video_int_write_line)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, MASTER_CLOCK/4/3, okim6295_device::PIN7_LOW) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/arcadia.cpp b/src/mame/drivers/arcadia.cpp index f086a4d83be..17e86f46725 100644 --- a/src/mame/drivers/arcadia.cpp +++ b/src/mame/drivers/arcadia.cpp @@ -494,7 +494,7 @@ MACHINE_CONFIG_START(arcadia_state::arcadia) MCFG_PALETTE_INIT_OWNER(arcadia_state, arcadia) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("custom", ARCADIA_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) diff --git a/src/mame/drivers/argus.cpp b/src/mame/drivers/argus.cpp index 761903f0f71..ddd07617598 100644 --- a/src/mame/drivers/argus.cpp +++ b/src/mame/drivers/argus.cpp @@ -567,7 +567,7 @@ MACHINE_CONFIG_START(argus_state::argus) MCFG_VIDEO_RESET_OVERRIDE(argus_state,argus) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -615,7 +615,7 @@ MACHINE_CONFIG_START(argus_state::valtric) MCFG_VIDEO_RESET_OVERRIDE(argus_state,valtric) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -663,7 +663,7 @@ MACHINE_CONFIG_START(argus_state::butasan) MCFG_VIDEO_RESET_OVERRIDE(argus_state,butasan) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/aristmk4.cpp b/src/mame/drivers/aristmk4.cpp index e3966751ced..669a8dc6f3d 100644 --- a/src/mame/drivers/aristmk4.cpp +++ b/src/mame/drivers/aristmk4.cpp @@ -1818,7 +1818,7 @@ MACHINE_CONFIG_START(aristmk4_state::aristmk4) MCFG_MC146818_ADD( "rtc", XTAL(4'194'304) ) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); // the Mark IV has X 2 AY8910 sound chips which are tied to the VIA MCFG_DEVICE_ADD("ay1", AY8910 , MAIN_CLOCK/8) diff --git a/src/mame/drivers/aristmk5.cpp b/src/mame/drivers/aristmk5.cpp index 55012a00697..35f4cbfec9b 100644 --- a/src/mame/drivers/aristmk5.cpp +++ b/src/mame/drivers/aristmk5.cpp @@ -2091,7 +2091,7 @@ MACHINE_CONFIG_START(aristmk5_state::aristmk5) MCFG_TICKET_DISPENSER_ADD("hopper", attotime::from_msec(100), TICKET_MOTOR_ACTIVE_HIGH, TICKET_STATUS_ACTIVE_LOW) - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac0", DAC_16BIT_R2R_TWOS_COMPLEMENT, 0) MCFG_SOUND_ROUTE(0, "speaker", 0.1) // unknown DAC MCFG_DEVICE_ADD("dac1", DAC_16BIT_R2R_TWOS_COMPLEMENT, 0) MCFG_SOUND_ROUTE(0, "speaker", 0.1) // unknown DAC MCFG_DEVICE_ADD("dac2", DAC_16BIT_R2R_TWOS_COMPLEMENT, 0) MCFG_SOUND_ROUTE(0, "speaker", 0.1) // unknown DAC diff --git a/src/mame/drivers/arkanoid.cpp b/src/mame/drivers/arkanoid.cpp index df49864a7d2..49cfdc3893c 100644 --- a/src/mame/drivers/arkanoid.cpp +++ b/src/mame/drivers/arkanoid.cpp @@ -1369,7 +1369,7 @@ MACHINE_CONFIG_START(arkanoid_state::arkanoid) MCFG_PALETTE_ADD_RRRRGGGGBBBB_PROMS("palette", "proms", 512) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", YM2149, XTAL(12'000'000)/4) /* YM2149 clock is 3mhz, pin 26 is low so final clock is 3mhz/2, handled inside the ay core */ MCFG_AY8910_OUTPUT_TYPE(AY8910_SINGLE_OUTPUT | YM2149_PIN26_LOW) // all outputs are tied together with no resistors, and pin 26 is low @@ -1443,7 +1443,7 @@ MACHINE_CONFIG_START(arkanoid_state::hexa) MCFG_PALETTE_ADD_RRRRGGGGBBBB_PROMS("palette", "proms", 256) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, XTAL(12'000'000)/4/2) /* Imported from arkanoid - correct? */ MCFG_AY8910_PORT_A_READ_CB(IOPORT("INPUTS")) MCFG_AY8910_PORT_B_READ_CB(IOPORT("DSW")) @@ -1486,7 +1486,7 @@ MACHINE_CONFIG_START(arkanoid_state::brixian) MCFG_PALETTE_ADD_RRRRGGGGBBBB_PROMS("palette", "proms", 512) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, XTAL(12'000'000)/4/2) /* Imported from arkanoid - correct? */ MCFG_AY8910_PORT_A_READ_CB(IOPORT("INPUTS")) MCFG_AY8910_PORT_B_READ_CB(IOPORT("DSW")) diff --git a/src/mame/drivers/armedf.cpp b/src/mame/drivers/armedf.cpp index 4e4430313d8..4aafa05ca27 100644 --- a/src/mame/drivers/armedf.cpp +++ b/src/mame/drivers/armedf.cpp @@ -1256,7 +1256,7 @@ MACHINE_CONFIG_START(armedf_state::terraf_sound) MCFG_DEVICE_IO_MAP(sound_portmap) MCFG_DEVICE_PERIODIC_INT_DRIVER(armedf_state, irq0_line_hold, XTAL(8'000'000)/2/512) // ? - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -1343,7 +1343,7 @@ MACHINE_CONFIG_START(armedf_state::terrafjb) MCFG_DEVICE_ADD("spriteram", BUFFERED_SPRITERAM16) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -1430,7 +1430,7 @@ MACHINE_CONFIG_START(armedf_state::armedf) MCFG_DEVICE_ADD("spriteram", BUFFERED_SPRITERAM16) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -1480,7 +1480,7 @@ MACHINE_CONFIG_START(armedf_state::cclimbr2) MCFG_DEVICE_ADD("spriteram", BUFFERED_SPRITERAM16) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -1530,7 +1530,7 @@ MACHINE_CONFIG_START(armedf_state::legion) MCFG_DEVICE_ADD("spriteram", BUFFERED_SPRITERAM16) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -1578,7 +1578,7 @@ MACHINE_CONFIG_START(armedf_state::legionjb) MCFG_DEVICE_ADD("spriteram", BUFFERED_SPRITERAM16) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/arsystems.cpp b/src/mame/drivers/arsystems.cpp index 437aec43b31..91922ddff07 100644 --- a/src/mame/drivers/arsystems.cpp +++ b/src/mame/drivers/arsystems.cpp @@ -322,7 +322,8 @@ MACHINE_CONFIG_START(arcadia_amiga_state::arcadia) MCFG_VIDEO_START_OVERRIDE(arcadia_amiga_state,amiga) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("amiga", PAULA_8364, amiga_state::CLK_C1_NTSC) MCFG_SOUND_ROUTE(0, "lspeaker", 0.50) diff --git a/src/mame/drivers/artmagic.cpp b/src/mame/drivers/artmagic.cpp index a319d53f8e4..2945cac6392 100644 --- a/src/mame/drivers/artmagic.cpp +++ b/src/mame/drivers/artmagic.cpp @@ -835,7 +835,7 @@ MACHINE_CONFIG_START(artmagic_state::artmagic) MCFG_SCREEN_UPDATE_DEVICE("tms", tms34010_device, tms340x0_rgb32) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, MASTER_CLOCK_40MHz/3/10, okim6295_device::PIN7_LOW) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.65) diff --git a/src/mame/drivers/ashnojoe.cpp b/src/mame/drivers/ashnojoe.cpp index e99964760af..79411264367 100644 --- a/src/mame/drivers/ashnojoe.cpp +++ b/src/mame/drivers/ashnojoe.cpp @@ -330,7 +330,7 @@ MACHINE_CONFIG_START(ashnojoe_state::ashnojoe) MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/asterix.cpp b/src/mame/drivers/asterix.cpp index 1dc9835d11f..61106710b31 100644 --- a/src/mame/drivers/asterix.cpp +++ b/src/mame/drivers/asterix.cpp @@ -297,7 +297,8 @@ MACHINE_CONFIG_START(asterix_state::asterix) MCFG_K053251_ADD("k053251") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2151, XTAL(32'000'000)/8) // 4MHz MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) diff --git a/src/mame/drivers/astinvad.cpp b/src/mame/drivers/astinvad.cpp index 69e3076d2ce..ab7ef34b148 100644 --- a/src/mame/drivers/astinvad.cpp +++ b/src/mame/drivers/astinvad.cpp @@ -690,7 +690,7 @@ MACHINE_CONFIG_START(astinvad_state::kamikaze) MCFG_PALETTE_ADD_3BIT_RBG("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("samples", SAMPLES) MCFG_SAMPLES_CHANNELS(6) @@ -738,7 +738,7 @@ MACHINE_CONFIG_START(astinvad_state::spaceint) MCFG_PALETTE_ADD_3BIT_RBG("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("samples", SAMPLES) MCFG_SAMPLES_CHANNELS(6) diff --git a/src/mame/drivers/astrcorp.cpp b/src/mame/drivers/astrcorp.cpp index 85499d2f1bf..ab8d5daba70 100644 --- a/src/mame/drivers/astrcorp.cpp +++ b/src/mame/drivers/astrcorp.cpp @@ -535,7 +535,7 @@ MACHINE_CONFIG_START(astrocorp_state::showhand) MCFG_VIDEO_START_OVERRIDE(astrocorp_state,astrocorp) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, XTAL(20'000'000)/20, okim6295_device::PIN7_HIGH) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -590,7 +590,7 @@ MACHINE_CONFIG_START(astrocorp_state::skilldrp) MCFG_VIDEO_START_OVERRIDE(astrocorp_state,astrocorp) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, XTAL(24'000'000)/24, okim6295_device::PIN7_HIGH) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/astrocde.cpp b/src/mame/drivers/astrocde.cpp index 54c46098d08..70e37e68280 100644 --- a/src/mame/drivers/astrocde.cpp +++ b/src/mame/drivers/astrocde.cpp @@ -1309,7 +1309,7 @@ MACHINE_CONFIG_END MACHINE_CONFIG_START(astrocde_state::astrocade_mono_sound) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_ASTROCADE_ADD("astrocade1", ASTROCADE_CLOCK/4) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -1319,7 +1319,8 @@ MACHINE_CONFIG_END MACHINE_CONFIG_START(astrocde_state::astrocade_stereo_sound) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_ASTROCADE_ADD("astrocade1", ASTROCADE_CLOCK/4) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 1.0) @@ -1345,7 +1346,8 @@ MACHINE_CONFIG_START(astrocde_state::seawolf2) MCFG_DEVICE_IO_MAP(port_map) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("samples", SAMPLES) MCFG_SAMPLES_CHANNELS(10) /* 5*2 channels */ @@ -1399,7 +1401,7 @@ MACHINE_CONFIG_START(astrocde_state::wow) // MCFG_SCREEN_DEFAULT_POSITION(1.066, -0.004, 1.048, -0.026) /* adjusted to match flyer */ /* sound hardware */ - MCFG_SPEAKER_ADD("center", 0.0, 0.0, 1.0) + SPEAKER(config, "center").front_center(); MCFG_DEVICE_ADD("votrax", VOTRAX_SC01, 720000) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "center", 0.85) @@ -1419,8 +1421,8 @@ MACHINE_CONFIG_START(astrocde_state::gorf) MCFG_SCREEN_DEFAULT_POSITION(1.0, 0.0, 1.0, 0.0) /* adjusted to match flyer */ /* sound hardware */ - MCFG_SPEAKER_ADD("upper", 0.0, 0.0, 1.0) - MCFG_SPEAKER_ADD("lower", 0.0, -0.5, 1.0) + SPEAKER(config, "upper", 0.0, 0.0, 1.0); + SPEAKER(config, "lower", 0.0, -0.5, 1.0); MCFG_ASTROCADE_ADD("astrocade1", ASTROCADE_CLOCK/4) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "upper", 1.0) @@ -1488,7 +1490,7 @@ MACHINE_CONFIG_START(astrocde_state::tenpindx) MCFG_Z80CTC_INTR_CB(INPUTLINE("sub", INPUT_LINE_IRQ0)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("sub", INPUT_LINE_NMI)) diff --git a/src/mame/drivers/astrohome.cpp b/src/mame/drivers/astrohome.cpp index a806fb5f778..c095ad6218c 100644 --- a/src/mame/drivers/astrohome.cpp +++ b/src/mame/drivers/astrohome.cpp @@ -215,7 +215,7 @@ MACHINE_CONFIG_START(astrocde_mess_state::astrocde) MCFG_PALETTE_INIT_OWNER(astrocde_state, astrocde) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("astrocade1", ASTROCADE, ASTROCADE_CLOCK/4) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) diff --git a/src/mame/drivers/asuka.cpp b/src/mame/drivers/asuka.cpp index a53f1fbd775..c1d139a85fd 100644 --- a/src/mame/drivers/asuka.cpp +++ b/src/mame/drivers/asuka.cpp @@ -888,7 +888,7 @@ MACHINE_CONFIG_START(asuka_state::bonzeadv) MCFG_TC0110PCR_PALETTE("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2610, XTAL(16'000'000)/2) MCFG_YM2610_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) @@ -951,7 +951,7 @@ MACHINE_CONFIG_START(asuka_state::asuka) MCFG_TC0110PCR_PALETTE("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2151, XTAL(16'000'000)/4) /* verified on pcb */ MCFG_YM2151_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) @@ -1027,7 +1027,7 @@ MACHINE_CONFIG_START(asuka_state::cadash) MCFG_TC0110PCR_PALETTE("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2151, XTAL(8'000'000)/2) /* verified on pcb */ MCFG_YM2151_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) @@ -1090,7 +1090,7 @@ MACHINE_CONFIG_START(asuka_state::mofflott) MCFG_TC0110PCR_PALETTE("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2151, 4000000) MCFG_YM2151_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) @@ -1161,7 +1161,7 @@ MACHINE_CONFIG_START(asuka_state::eto) MCFG_TC0110PCR_PALETTE("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2151, 4000000) MCFG_YM2151_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) diff --git a/src/mame/drivers/at.cpp b/src/mame/drivers/at.cpp index 5d6e129f665..8b3c5d28127 100644 --- a/src/mame/drivers/at.cpp +++ b/src/mame/drivers/at.cpp @@ -680,7 +680,7 @@ MACHINE_CONFIG_START(megapc_state::megapc) MCFG_RAM_EXTRA_OPTIONS("1M,2M,8M,15M,16M") // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/atari400.cpp b/src/mame/drivers/atari400.cpp index dbc306d217f..24bfd73a486 100644 --- a/src/mame/drivers/atari400.cpp +++ b/src/mame/drivers/atari400.cpp @@ -2132,7 +2132,7 @@ MACHINE_CONFIG_START(a400_state::atari_common_nodac) MCFG_A8SIO_SLOT_ADD("a8sio", "sio", nullptr) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("pokey", POKEY, pokey_device::FREQ_17_EXACT) MCFG_POKEY_POT0_R_CB(IOPORT("analog_0")) MCFG_POKEY_POT1_R_CB(IOPORT("analog_1")) diff --git a/src/mame/drivers/atari_s1.cpp b/src/mame/drivers/atari_s1.cpp index 2fa24684b31..f994b13ba1f 100644 --- a/src/mame/drivers/atari_s1.cpp +++ b/src/mame/drivers/atari_s1.cpp @@ -457,7 +457,7 @@ MACHINE_CONFIG_START(atari_s1_state::atari_s1) /* Sound */ genpin_audio(config); - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_4BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.3) // unknown DAC MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) diff --git a/src/mame/drivers/atari_s2.cpp b/src/mame/drivers/atari_s2.cpp index 86d5346eb9c..80fe22f4153 100644 --- a/src/mame/drivers/atari_s2.cpp +++ b/src/mame/drivers/atari_s2.cpp @@ -489,7 +489,7 @@ MACHINE_CONFIG_START(atari_s2_state::atari_s2) /* Sound */ genpin_audio(config); - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_4BIT_BINARY_WEIGHTED, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.15) // r23-r26 (68k,33k,18k,8.2k) MCFG_DEVICE_ADD("dac1", DAC_3BIT_BINARY_WEIGHTED, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.15) // r18-r20 (100k,47k,100k) diff --git a/src/mame/drivers/atarifb.cpp b/src/mame/drivers/atarifb.cpp index 4e2aeec7743..67bbd66adce 100644 --- a/src/mame/drivers/atarifb.cpp +++ b/src/mame/drivers/atarifb.cpp @@ -577,7 +577,7 @@ MACHINE_CONFIG_START(atarifb_state::atarifb) MCFG_PALETTE_INIT_OWNER(atarifb_state, atarifb) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("discrete", DISCRETE, atarifb_discrete) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.18) diff --git a/src/mame/drivers/atarig1.cpp b/src/mame/drivers/atarig1.cpp index 223a44d6919..2f63da49610 100644 --- a/src/mame/drivers/atarig1.cpp +++ b/src/mame/drivers/atarig1.cpp @@ -434,7 +434,7 @@ MACHINE_CONFIG_START(atarig1_state::atarig1) MCFG_VIDEO_START_OVERRIDE(atarig1_state,atarig1) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_ATARI_JSA_II_ADD("jsa", INPUTLINE("maincpu", M68K_IRQ_2)) MCFG_ATARI_JSA_TEST_PORT("IN0", 14) diff --git a/src/mame/drivers/atarig42.cpp b/src/mame/drivers/atarig42.cpp index b9175417042..52f7dad33e2 100644 --- a/src/mame/drivers/atarig42.cpp +++ b/src/mame/drivers/atarig42.cpp @@ -548,7 +548,7 @@ MACHINE_CONFIG_START(atarig42_state::atarig42) MCFG_VIDEO_START_OVERRIDE(atarig42_state,atarig42) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_ATARI_JSA_III_ADD("jsa", INPUTLINE("maincpu", M68K_IRQ_5)) MCFG_ATARI_JSA_TEST_PORT("IN2", 6) diff --git a/src/mame/drivers/atarigx2.cpp b/src/mame/drivers/atarigx2.cpp index 3c5ab257b68..5953a5ba4b5 100644 --- a/src/mame/drivers/atarigx2.cpp +++ b/src/mame/drivers/atarigx2.cpp @@ -1521,7 +1521,8 @@ MACHINE_CONFIG_START(atarigx2_state::atarigx2) MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, atarigx2_state, video_int_write_line)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_ATARI_JSA_IIIS_ADD("jsa", INPUTLINE("maincpu", M68K_IRQ_5)) MCFG_ATARI_JSA_TEST_PORT("SERVICE", 6) diff --git a/src/mame/drivers/atarist.cpp b/src/mame/drivers/atarist.cpp index 5c31455ad92..12fad9d93cc 100644 --- a/src/mame/drivers/atarist.cpp +++ b/src/mame/drivers/atarist.cpp @@ -2048,7 +2048,7 @@ MACHINE_CONFIG_START(st_state::st) MCFG_PALETTE_ADD("palette", 16) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD(YM2149_TAG, YM2149, Y2/16) MCFG_AY8910_OUTPUT_TYPE(AY8910_SINGLE_OUTPUT) MCFG_AY8910_RES_LOADS(RES_K(1), 0, 0) @@ -2138,7 +2138,7 @@ MACHINE_CONFIG_START(megast_state::megast) MCFG_PALETTE_ADD("palette", 16) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD(YM2149_TAG, YM2149, Y2/16) MCFG_AY8910_OUTPUT_TYPE(AY8910_SINGLE_OUTPUT) MCFG_AY8910_RES_LOADS(RES_K(1), 0, 0) @@ -2229,7 +2229,8 @@ MACHINE_CONFIG_START(ste_state::ste) MCFG_PALETTE_ADD("palette", 512) // sound hardware - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD(YM2149_TAG, YM2149, Y2/16) MCFG_AY8910_OUTPUT_TYPE(AY8910_SINGLE_OUTPUT) @@ -2345,7 +2346,7 @@ static MACHINE_CONFIG_START(stbook_state::stbook) MCFG_PALETTE_ADD_MONOCHROME("palette") // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD(YM3439_TAG, YM3439, U517/8) MCFG_AY8910_OUTPUT_TYPE(AY8910_SINGLE_OUTPUT) MCFG_AY8910_RES_LOADS(RES_K(1), 0, 0) diff --git a/src/mame/drivers/atarisy1.cpp b/src/mame/drivers/atarisy1.cpp index 4b54289ea4a..501a53eeed2 100644 --- a/src/mame/drivers/atarisy1.cpp +++ b/src/mame/drivers/atarisy1.cpp @@ -774,7 +774,8 @@ MACHINE_CONFIG_START(atarisy1_state::atarisy1) /* sound hardware */ MCFG_ATARI_SOUND_COMM_ADD("soundcomm", "audiocpu", INPUTLINE("maincpu", M68K_IRQ_6)) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2151, ATARI_CLOCK_14MHz/4) MCFG_YM2151_IRQ_HANDLER(WRITELINE("soundcomm", atari_sound_comm_device, ym2151_irq_gen)) diff --git a/src/mame/drivers/atarisy2.cpp b/src/mame/drivers/atarisy2.cpp index cb3858cb58c..bb845d35b50 100644 --- a/src/mame/drivers/atarisy2.cpp +++ b/src/mame/drivers/atarisy2.cpp @@ -1237,7 +1237,8 @@ MACHINE_CONFIG_START(atarisy2_state::atarisy2) /* sound hardware */ MCFG_ATARI_SOUND_COMM_ADD("soundcomm", "audiocpu", NOOP) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2151, SOUND_CLOCK/4) MCFG_SOUND_ROUTE(0, "lspeaker", 0.60) MCFG_SOUND_ROUTE(1, "rspeaker", 0.60) diff --git a/src/mame/drivers/atetris.cpp b/src/mame/drivers/atetris.cpp index 2376a9ddb9d..e8dc53bbe78 100644 --- a/src/mame/drivers/atetris.cpp +++ b/src/mame/drivers/atetris.cpp @@ -356,7 +356,7 @@ MACHINE_CONFIG_START(atetris_state::atetris) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("pokey1", POKEY, MASTER_CLOCK/8) MCFG_POKEY_ALLPOT_R_CB(IOPORT("IN0")) @@ -395,7 +395,7 @@ MACHINE_CONFIG_START(atetris_state::atetrisb2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("sn1", SN76496, BOOTLEG_CLOCK/8) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/atom.cpp b/src/mame/drivers/atom.cpp index 26c150ff144..cd4f20a1a2f 100644 --- a/src/mame/drivers/atom.cpp +++ b/src/mame/drivers/atom.cpp @@ -720,7 +720,7 @@ MACHINE_CONFIG_START(atom_state::atom) MCFG_MC6847_INPUT_CALLBACK(READ8(*this, atom_state, vdg_videoram_r)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) @@ -830,7 +830,7 @@ MACHINE_CONFIG_START(atom_state::atombb) MCFG_MC6847_INPUT_CALLBACK(READ8(*this, atom_state, vdg_videoram_r)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) diff --git a/src/mame/drivers/attache.cpp b/src/mame/drivers/attache.cpp index 4c9b59ce5f3..343e11bf4ec 100644 --- a/src/mame/drivers/attache.cpp +++ b/src/mame/drivers/attache.cpp @@ -1121,7 +1121,7 @@ MACHINE_CONFIG_START(attache_state::attache) MCFG_PALETTE_ADD_MONOCHROME_HIGHLIGHT("palette") - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("psg", AY8912, XTAL(8'000'000) / 4) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) @@ -1205,7 +1205,7 @@ MACHINE_CONFIG_START(attache816_state::attache816) MCFG_PALETTE_ADD_MONOCHROME_HIGHLIGHT("palette") - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("psg", AY8912, XTAL(8'000'000) / 4) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mame/drivers/attckufo.cpp b/src/mame/drivers/attckufo.cpp index 92bb28a45ee..697d0ebca6e 100644 --- a/src/mame/drivers/attckufo.cpp +++ b/src/mame/drivers/attckufo.cpp @@ -125,7 +125,7 @@ MACHINE_CONFIG_START(attckufo_state::attckufo) MCFG_PIA_READPA_HANDLER(IOPORT("DSW")) MCFG_PIA_READPB_HANDLER(IOPORT("INPUT")) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_MOS656X_ATTACK_UFO_ADD("mos6560", "screen", XTAL(14'318'181) / 14, vic_videoram_map, vic_colorram_map) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END diff --git a/src/mame/drivers/aussiebyte.cpp b/src/mame/drivers/aussiebyte.cpp index 3cd6cc9386d..75dce762385 100644 --- a/src/mame/drivers/aussiebyte.cpp +++ b/src/mame/drivers/aussiebyte.cpp @@ -512,7 +512,7 @@ MACHINE_CONFIG_START(aussiebyte_state::aussiebyte) MCFG_PALETTE_ADD_MONOCHROME("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) MCFG_DEVICE_ADD("votrax", VOTRAX_SC01, 720000) /* 720kHz? needs verify */ diff --git a/src/mame/drivers/avigo.cpp b/src/mame/drivers/avigo.cpp index 209b876ab6b..e13617bdacd 100644 --- a/src/mame/drivers/avigo.cpp +++ b/src/mame/drivers/avigo.cpp @@ -785,7 +785,7 @@ MACHINE_CONFIG_START(avigo_state::avigo) MCFG_PALETTE_INIT_OWNER(avigo_state, avigo) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/avt.cpp b/src/mame/drivers/avt.cpp index b9a2b664f78..0e241b6ebbe 100644 --- a/src/mame/drivers/avt.cpp +++ b/src/mame/drivers/avt.cpp @@ -985,7 +985,7 @@ MACHINE_CONFIG_START(avt_state::avt) MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE(*this, avt_state, avtbingo_w)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, CPU_CLOCK/2) /* 1.25 MHz.?? */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) diff --git a/src/mame/drivers/aztarac.cpp b/src/mame/drivers/aztarac.cpp index fdd9e89ef6d..cfe362930ab 100644 --- a/src/mame/drivers/aztarac.cpp +++ b/src/mame/drivers/aztarac.cpp @@ -175,7 +175,7 @@ MACHINE_CONFIG_START(aztarac_state::aztarac) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/b2m.cpp b/src/mame/drivers/b2m.cpp index 1fed33c64a6..f7cd85e8243 100644 --- a/src/mame/drivers/b2m.cpp +++ b/src/mame/drivers/b2m.cpp @@ -235,7 +235,7 @@ MACHINE_CONFIG_START(b2m_state::b2m) MCFG_PIC8259_OUT_INT_CB(INPUTLINE("maincpu", 0)) /* sound */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mame/drivers/backfire.cpp b/src/mame/drivers/backfire.cpp index 547ed8830bb..3407fc3965a 100644 --- a/src/mame/drivers/backfire.cpp +++ b/src/mame/drivers/backfire.cpp @@ -503,7 +503,8 @@ MACHINE_CONFIG_START(backfire_state::backfire) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymz", YMZ280B, 28000000 / 2) MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) diff --git a/src/mame/drivers/badlands.cpp b/src/mame/drivers/badlands.cpp index d3fa3010177..006d66f26fc 100644 --- a/src/mame/drivers/badlands.cpp +++ b/src/mame/drivers/badlands.cpp @@ -481,7 +481,7 @@ MACHINE_CONFIG_START(badlands_state::badlands) /* sound hardware */ MCFG_ATARI_SOUND_COMM_ADD("soundcomm", "audiocpu", INPUTLINE("maincpu", M68K_IRQ_2)) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2151, ATARI_CLOCK_14MHz/4) MCFG_SOUND_ROUTE(0, "mono", 0.30) diff --git a/src/mame/drivers/badlandsbl.cpp b/src/mame/drivers/badlandsbl.cpp index e82e93fdcce..a6446910242 100644 --- a/src/mame/drivers/badlandsbl.cpp +++ b/src/mame/drivers/badlandsbl.cpp @@ -256,7 +256,7 @@ MACHINE_CONFIG_START(badlandsbl_state::badlandsb) MCFG_VIDEO_START_OVERRIDE(badlands_state,badlands) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2151, XTAL(20'000'000)/8) /* Divisor estimated */ MCFG_SOUND_ROUTE(0, "mono", 0.30) diff --git a/src/mame/drivers/bagman.cpp b/src/mame/drivers/bagman.cpp index 1168c32cb8b..1bbde83db6d 100644 --- a/src/mame/drivers/bagman.cpp +++ b/src/mame/drivers/bagman.cpp @@ -468,7 +468,7 @@ MACHINE_CONFIG_START(bagman_state::bagman) MCFG_TMSPROM_CTL_CB(WRITE8("tms", tms5110_device, ctl_w)) /* tms ctl func */ /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, BAGMAN_H0 / 2) MCFG_AY8910_PORT_A_READ_CB(IOPORT("P1")) @@ -534,7 +534,7 @@ MACHINE_CONFIG_START(bagman_state::pickin) MCFG_PALETTE_INIT_OWNER(bagman_state,bagman) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, 1500000) MCFG_AY8910_PORT_A_READ_CB(IOPORT("P1")) @@ -594,7 +594,7 @@ MACHINE_CONFIG_START(bagman_state::botanic) MCFG_PALETTE_INIT_OWNER(bagman_state,bagman) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, 1500000) MCFG_AY8910_PORT_A_READ_CB(IOPORT("P1")) diff --git a/src/mame/drivers/balsente.cpp b/src/mame/drivers/balsente.cpp index 3ace124fe27..9efb7085e4b 100644 --- a/src/mame/drivers/balsente.cpp +++ b/src/mame/drivers/balsente.cpp @@ -1337,7 +1337,7 @@ MACHINE_CONFIG_START(balsente_state::balsente) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_CEM3394_ADD("cem1", 0) MCFG_CEM3394_EXT_INPUT_CB(balsente_state, noise_gen_0) diff --git a/src/mame/drivers/bankp.cpp b/src/mame/drivers/bankp.cpp index 86459742ad2..aa934d2c91c 100644 --- a/src/mame/drivers/bankp.cpp +++ b/src/mame/drivers/bankp.cpp @@ -314,7 +314,7 @@ MACHINE_CONFIG_START(bankp_state::bankp) MCFG_PALETTE_INIT_OWNER(bankp_state, bankp) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("sn1", SN76489, MASTER_CLOCK/6) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/baraduke.cpp b/src/mame/drivers/baraduke.cpp index 31637f2fa4c..b7e834509de 100644 --- a/src/mame/drivers/baraduke.cpp +++ b/src/mame/drivers/baraduke.cpp @@ -399,7 +399,7 @@ MACHINE_CONFIG_START(baraduke_state::baraduke) MCFG_PALETTE_INIT_OWNER(baraduke_state, baraduke) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("namco", NAMCO_CUS30, XTAL(49'152'000)/2048) MCFG_NAMCO_AUDIO_VOICES(8) diff --git a/src/mame/drivers/barata.cpp b/src/mame/drivers/barata.cpp index a2f78ed3869..b83d5a4f6b1 100644 --- a/src/mame/drivers/barata.cpp +++ b/src/mame/drivers/barata.cpp @@ -317,7 +317,7 @@ MACHINE_CONFIG_START(barata_state::barata) MCFG_DEFAULT_LAYOUT( layout_barata ) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); /* TODO: add sound samples */ MACHINE_CONFIG_END diff --git a/src/mame/drivers/bartop52.cpp b/src/mame/drivers/bartop52.cpp index ae94332cf28..ad4583bbe60 100644 --- a/src/mame/drivers/bartop52.cpp +++ b/src/mame/drivers/bartop52.cpp @@ -152,7 +152,7 @@ MACHINE_CONFIG_START(bartop52_state::a5200) MCFG_PALETTE_INIT_OWNER(bartop52_state, atari) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("pokey", POKEY, pokey_device::FREQ_17_EXACT) MCFG_POKEY_POT0_R_CB(IOPORT("analog_0")) diff --git a/src/mame/drivers/batman.cpp b/src/mame/drivers/batman.cpp index b5d1d07baa6..b2a56693e69 100644 --- a/src/mame/drivers/batman.cpp +++ b/src/mame/drivers/batman.cpp @@ -214,7 +214,7 @@ MACHINE_CONFIG_START(batman_state::batman) MCFG_SCREEN_PALETTE("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_ATARI_JSA_III_ADD("jsa", INPUTLINE("maincpu", M68K_IRQ_6)) MCFG_ATARI_JSA_TEST_PORT("260010", 6) diff --git a/src/mame/drivers/battlane.cpp b/src/mame/drivers/battlane.cpp index e42426106cd..cd4257a04c9 100644 --- a/src/mame/drivers/battlane.cpp +++ b/src/mame/drivers/battlane.cpp @@ -298,7 +298,7 @@ MACHINE_CONFIG_START(battlane_state::battlane) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM3526, 3000000) MCFG_YM3526_IRQ_HANDLER(INPUTLINE("maincpu", M6809_FIRQ_LINE)) diff --git a/src/mame/drivers/battlera.cpp b/src/mame/drivers/battlera.cpp index 07b2d56f80e..57d4f25608c 100644 --- a/src/mame/drivers/battlera.cpp +++ b/src/mame/drivers/battlera.cpp @@ -297,7 +297,7 @@ MACHINE_CONFIG_START(battlera_state::battlera) MCFG_HUC6270_IRQ_CHANGED_CB(INPUTLINE("maincpu", 0)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/battlex.cpp b/src/mame/drivers/battlex.cpp index 5329661a4b5..446fbbf36de 100644 --- a/src/mame/drivers/battlex.cpp +++ b/src/mame/drivers/battlex.cpp @@ -313,7 +313,7 @@ MACHINE_CONFIG_START(battlex_state::battlex) MCFG_PALETTE_ADD("palette", 64 + 128) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay1", AY8910, XTAL(10'000'000)/8) // ? MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.40) MACHINE_CONFIG_END diff --git a/src/mame/drivers/battlnts.cpp b/src/mame/drivers/battlnts.cpp index 599d9a9ff17..93497f4932c 100644 --- a/src/mame/drivers/battlnts.cpp +++ b/src/mame/drivers/battlnts.cpp @@ -267,7 +267,7 @@ MACHINE_CONFIG_START(battlnts_state::battlnts) MCFG_K007420_PALETTE("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/bbc.cpp b/src/mame/drivers/bbc.cpp index 358489c2edd..25ce27e4bae 100644 --- a/src/mame/drivers/bbc.cpp +++ b/src/mame/drivers/bbc.cpp @@ -873,7 +873,7 @@ MACHINE_CONFIG_START(bbc_state::bbca) MCFG_DEFAULT_LAYOUT(layout_bbc) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("sn76489", SN76489, 16_MHz_XTAL/4) /* 4 MHz */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -1338,7 +1338,7 @@ MACHINE_CONFIG_START(bbc_state::bbcm) MCFG_VIDEO_START_OVERRIDE(bbc_state, bbc) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("sn76489", SN76489, 16_MHz_XTAL/4) /* 4 MHz */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/bbusters.cpp b/src/mame/drivers/bbusters.cpp index b84b6fdc903..04b218b53f8 100644 --- a/src/mame/drivers/bbusters.cpp +++ b/src/mame/drivers/bbusters.cpp @@ -685,7 +685,8 @@ MACHINE_CONFIG_START(bbusters_state::bbusters) MCFG_DEVICE_ADD("spriteram2", BUFFERED_SPRITERAM16) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -726,7 +727,8 @@ MACHINE_CONFIG_START(bbusters_state::mechatt) MCFG_DEVICE_ADD("spriteram", BUFFERED_SPRITERAM16) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/beathead.cpp b/src/mame/drivers/beathead.cpp index c9002de41a2..003d8b8827e 100644 --- a/src/mame/drivers/beathead.cpp +++ b/src/mame/drivers/beathead.cpp @@ -364,7 +364,7 @@ MACHINE_CONFIG_START(beathead_state::beathead) MCFG_PALETTE_MEMBITS(16) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_ATARI_JSA_III_ADD("jsa", NOOP) MCFG_ATARI_JSA_TEST_PORT("IN2", 6) diff --git a/src/mame/drivers/bebox.cpp b/src/mame/drivers/bebox.cpp index 570186d80a8..1e25eeb5f99 100644 --- a/src/mame/drivers/bebox.cpp +++ b/src/mame/drivers/bebox.cpp @@ -198,7 +198,7 @@ MACHINE_CONFIG_START(bebox_state::bebox) MCFG_DEVICE_ADD("vga", CIRRUS_GD5428, 0) MCFG_VIDEO_SET_SCREEN("screen") - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ym3812", YM3812, 3579545) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) diff --git a/src/mame/drivers/beezer.cpp b/src/mame/drivers/beezer.cpp index 27b5cad9b5f..9cd12a42d0c 100644 --- a/src/mame/drivers/beezer.cpp +++ b/src/mame/drivers/beezer.cpp @@ -530,7 +530,7 @@ MACHINE_CONFIG_START(beezer_state::beezer) MCFG_MM5837_VDD(12) MCFG_MM5837_OUTPUT_CB(WRITELINE(*this, beezer_state, noise_w)) - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC76, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 1.0) MACHINE_CONFIG_END diff --git a/src/mame/drivers/belatra.cpp b/src/mame/drivers/belatra.cpp index 305b41f2850..4b370810c40 100644 --- a/src/mame/drivers/belatra.cpp +++ b/src/mame/drivers/belatra.cpp @@ -74,7 +74,8 @@ MACHINE_CONFIG_START(belatra_state::belatra) MCFG_DEVICE_ADD("maincpu", ARM7, 54000000) // guess... MCFG_DEVICE_PROGRAM_MAP(belatra_map) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); /* unknown sound */ MACHINE_CONFIG_END diff --git a/src/mame/drivers/berzerk.cpp b/src/mame/drivers/berzerk.cpp index 366580a7f37..0603fe87570 100644 --- a/src/mame/drivers/berzerk.cpp +++ b/src/mame/drivers/berzerk.cpp @@ -1129,7 +1129,7 @@ MACHINE_CONFIG_START(berzerk_state::berzerk) MCFG_SCREEN_UPDATE_DRIVER(berzerk_state, screen_update) /* audio hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speech", S14001A, S14001_CLOCK/16/8) /* placeholder - the clock is software controllable */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) diff --git a/src/mame/drivers/bestleag.cpp b/src/mame/drivers/bestleag.cpp index f5266ff5a91..e902813a29e 100644 --- a/src/mame/drivers/bestleag.cpp +++ b/src/mame/drivers/bestleag.cpp @@ -396,7 +396,8 @@ MACHINE_CONFIG_START(bestleag_state::bestleag) MCFG_PALETTE_ADD("palette", 0x800) MCFG_PALETTE_FORMAT(RRRRGGGGBBBBRGBx) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("oki", OKIM6295, 1000000, okim6295_device::PIN7_HIGH) /* Hand-tuned */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 1.00) diff --git a/src/mame/drivers/beta.cpp b/src/mame/drivers/beta.cpp index 6c0fac6b429..6aaaba0c84e 100644 --- a/src/mame/drivers/beta.cpp +++ b/src/mame/drivers/beta.cpp @@ -350,7 +350,7 @@ MACHINE_CONFIG_START(beta_state::beta) MCFG_DEFAULT_LAYOUT( layout_beta ) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mame/drivers/bfcobra.cpp b/src/mame/drivers/bfcobra.cpp index eb03095d69b..9b97b68b258 100644 --- a/src/mame/drivers/bfcobra.cpp +++ b/src/mame/drivers/bfcobra.cpp @@ -1667,7 +1667,7 @@ MACHINE_CONFIG_START(bfcobra_state::bfcobra) MCFG_RAMDAC_ADD("ramdac", ramdac_map, "palette") // MUSIC Semiconductor TR9C1710 RAMDAC or equivalent MCFG_RAMDAC_SPLIT_READ(1) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, M6809_XTAL / 4) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.20) diff --git a/src/mame/drivers/bfm_ad5.cpp b/src/mame/drivers/bfm_ad5.cpp index e6e8bf54ef3..0cb2dbbb357 100644 --- a/src/mame/drivers/bfm_ad5.cpp +++ b/src/mame/drivers/bfm_ad5.cpp @@ -85,7 +85,8 @@ MACHINE_CONFIG_START(adder5_state::bfm_ad5) MCFG_DEVICE_PERIODIC_INT_DRIVER(adder5_state, ad5_fake_timer_int, 1000) MCFG_MCF5206E_PERIPHERAL_ADD("maincpu_onboard") - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); /* unknown sound */ MACHINE_CONFIG_END diff --git a/src/mame/drivers/bfm_sc1.cpp b/src/mame/drivers/bfm_sc1.cpp index 17c6606ea4b..29834932374 100644 --- a/src/mame/drivers/bfm_sc1.cpp +++ b/src/mame/drivers/bfm_sc1.cpp @@ -1088,7 +1088,7 @@ MACHINE_CONFIG_START(bfm_sc1_state::scorpion1) MCFG_BFMBD1_ADD("vfd0",0) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_DEVICE_ADD("aysnd",AY8912, MASTER_CLOCK/4) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mame/drivers/bfm_sc2.cpp b/src/mame/drivers/bfm_sc2.cpp index 611a3313a09..c5e917b9bcd 100644 --- a/src/mame/drivers/bfm_sc2.cpp +++ b/src/mame/drivers/bfm_sc2.cpp @@ -2293,7 +2293,7 @@ MACHINE_CONFIG_START(bfm_sc2_vid_state::scorpion2_vid) MCFG_BFM_ADDER2_ADD("adder2") - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("upd", UPD7759) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) @@ -3757,7 +3757,7 @@ MACHINE_CONFIG_START(bfm_sc2_awp_state::scorpion2) MCFG_BFMBD1_ADD("vfd0",0) MCFG_BFMBD1_ADD("vfd1",1) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("upd",UPD7759) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) @@ -3814,7 +3814,7 @@ MACHINE_CONFIG_START(bfm_sc2_dmd_state::scorpion2_dm01) MCFG_WATCHDOG_ADD("watchdog") MCFG_WATCHDOG_TIME_INIT(PERIOD_OF_555_MONOSTABLE(120000,100e-9)) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd",YM2413, XTAL(3'579'545)) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/bfm_sc4.cpp b/src/mame/drivers/bfm_sc4.cpp index 1376f85e342..3c760aaa1d5 100644 --- a/src/mame/drivers/bfm_sc4.cpp +++ b/src/mame/drivers/bfm_sc4.cpp @@ -900,7 +900,7 @@ MACHINE_CONFIG_START(sc4_state::sc4_common) MCFG_MC68307_SERIAL_OUTPORT_CALLBACK(WRITE8(*this, sc4_state, m68307_duart_output_w)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_NVRAM_ADD_1FILL("nvram") diff --git a/src/mame/drivers/bfm_sc5.cpp b/src/mame/drivers/bfm_sc5.cpp index 704028b5dff..4aa48b0bb49 100644 --- a/src/mame/drivers/bfm_sc5.cpp +++ b/src/mame/drivers/bfm_sc5.cpp @@ -216,7 +216,7 @@ MACHINE_CONFIG_START(bfm_sc5_state::bfm_sc5) MCFG_MCF5206E_PERIPHERAL_ADD("maincpu_onboard") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("duart68681", MC68681, 16000000/4) // ?? Mhz MCFG_MC68681_SET_EXTERNAL_CLOCKS(16000000/2/8, 16000000/2/16, 16000000/2/16, 16000000/2/8) diff --git a/src/mame/drivers/bfm_swp.cpp b/src/mame/drivers/bfm_swp.cpp index 9c0bfc9f791..381b687418e 100644 --- a/src/mame/drivers/bfm_swp.cpp +++ b/src/mame/drivers/bfm_swp.cpp @@ -215,7 +215,7 @@ MACHINE_CONFIG_START(bfm_swp_state::bfm_swp) MCFG_SCREEN_SIZE(64*8, 64*8) MCFG_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 32*8-1) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymz", YMZ280B, 10000000 ) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/bfmsys83.cpp b/src/mame/drivers/bfmsys83.cpp index 65fd275cf9c..723d9cb16df 100644 --- a/src/mame/drivers/bfmsys83.cpp +++ b/src/mame/drivers/bfmsys83.cpp @@ -38,7 +38,7 @@ MACHINE_CONFIG_START(bfmsys83_state::bfmsys83) MCFG_DEVICE_ADD("maincpu", M6802, 40000000/4) MCFG_DEVICE_PROGRAM_MAP(memmap) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd",AY8912, 40000000/4) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END diff --git a/src/mame/drivers/bfmsys85.cpp b/src/mame/drivers/bfmsys85.cpp index 01957cbf473..91c654b1fa4 100644 --- a/src/mame/drivers/bfmsys85.cpp +++ b/src/mame/drivers/bfmsys85.cpp @@ -400,7 +400,7 @@ MACHINE_CONFIG_START(bfmsys85_state::bfmsys85) MCFG_DEVICE_ADD("acia_clock", CLOCK, 31250*16) // What are the correct ACIA clocks ? MCFG_CLOCK_SIGNAL_HANDLER(WRITELINE(*this, bfmsys85_state, write_acia_clock)) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd",AY8912, MASTER_CLOCK/4) // add AY8912 soundchip MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mame/drivers/big10.cpp b/src/mame/drivers/big10.cpp index d9b3ebd7529..065b163fd8f 100644 --- a/src/mame/drivers/big10.cpp +++ b/src/mame/drivers/big10.cpp @@ -242,7 +242,7 @@ MACHINE_CONFIG_START(big10_state::big10) MCFG_V99X8_SCREEN_ADD_NTSC("screen", "v9938", MASTER_CLOCK) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, MASTER_CLOCK/12) /* guess */ MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW2")) MCFG_AY8910_PORT_B_READ_CB(IOPORT("DSW1")) diff --git a/src/mame/drivers/bigbord2.cpp b/src/mame/drivers/bigbord2.cpp index 0137fcb58dc..77fb90f31aa 100644 --- a/src/mame/drivers/bigbord2.cpp +++ b/src/mame/drivers/bigbord2.cpp @@ -622,7 +622,7 @@ MACHINE_CONFIG_START(bigbord2_state::bigbord2) MCFG_GENERIC_KEYBOARD_CB(PUT(bigbord2_state, kbd_put)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, 950) // actual frequency is unknown MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) MACHINE_CONFIG_END diff --git a/src/mame/drivers/bigevglf.cpp b/src/mame/drivers/bigevglf.cpp index e2d35a5a4b8..abbef96ec5e 100644 --- a/src/mame/drivers/bigevglf.cpp +++ b/src/mame/drivers/bigevglf.cpp @@ -422,7 +422,7 @@ MACHINE_CONFIG_START(bigevglf_state::bigevglf) MCFG_PALETTE_ADD("palette", 0x800) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", YM2149, 8000000/4) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.15) diff --git a/src/mame/drivers/bigstrkb.cpp b/src/mame/drivers/bigstrkb.cpp index ebe75c471bb..253a25117e8 100644 --- a/src/mame/drivers/bigstrkb.cpp +++ b/src/mame/drivers/bigstrkb.cpp @@ -220,7 +220,8 @@ MACHINE_CONFIG_START(bigstrkb_state::bigstrkb) MCFG_PALETTE_FORMAT(RRRRGGGGBBBBRGBx) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); // MCFG_DEVICE_ADD("ymsnd", YM2151, ym2151_config) MCFG_DEVICE_ADD("oki1", OKIM6295, 4000000, okim6295_device::PIN7_HIGH) diff --git a/src/mame/drivers/binbug.cpp b/src/mame/drivers/binbug.cpp index 84115a651df..6bdeef87701 100644 --- a/src/mame/drivers/binbug.cpp +++ b/src/mame/drivers/binbug.cpp @@ -324,7 +324,7 @@ MACHINE_CONFIG_START(binbug_state::binbug) /* Cassette */ MCFG_CASSETTE_ADD( "cassette" ) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) @@ -560,7 +560,7 @@ MACHINE_CONFIG_START(dg680_state::dg680) /* Cassette */ MCFG_CASSETTE_ADD( "cassette" ) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mame/drivers/bingoc.cpp b/src/mame/drivers/bingoc.cpp index 64d801f7b75..c0dec563132 100644 --- a/src/mame/drivers/bingoc.cpp +++ b/src/mame/drivers/bingoc.cpp @@ -211,7 +211,8 @@ MACHINE_CONFIG_START(bingoc_state::bingoc) MCFG_PALETTE_ADD("palette", 0x100) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") //might just be mono... + SPEAKER(config, "lspeaker").front_left(); //might just be mono... + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/bingoman.cpp b/src/mame/drivers/bingoman.cpp index 3e5077546cd..1882efed3a8 100644 --- a/src/mame/drivers/bingoman.cpp +++ b/src/mame/drivers/bingoman.cpp @@ -398,7 +398,7 @@ MACHINE_CONFIG_START(bingoman_state::bingoman) MCFG_PALETTE_INIT_OWNER(bingoman_state, bingoman) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MACHINE_CONFIG_END diff --git a/src/mame/drivers/bingor.cpp b/src/mame/drivers/bingor.cpp index c96d6d9f7a8..5792f4c334f 100644 --- a/src/mame/drivers/bingor.cpp +++ b/src/mame/drivers/bingor.cpp @@ -712,7 +712,7 @@ MACHINE_CONFIG_START(bingor_state::bingor) MCFG_PALETTE_ADD("palette", 0x100) MCFG_PALETTE_FORMAT(RRRRGGGGBBBBIIII) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SAA1099_ADD("saa", 6000000 ) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) MACHINE_CONFIG_END @@ -804,7 +804,7 @@ MACHINE_CONFIG_START(bingor_state::vip2000) MCFG_PALETTE_ADD("palette", 0x100) MCFG_PALETTE_FORMAT(RRRRGGGGBBBBIIII) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymz", YMZ284, 1250000) // probably clocked by square wave output of 80186 timer 0 MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/bingowav.cpp b/src/mame/drivers/bingowav.cpp index 7618319ef14..8e5c8037ed3 100644 --- a/src/mame/drivers/bingowav.cpp +++ b/src/mame/drivers/bingowav.cpp @@ -128,7 +128,7 @@ MACHINE_CONFIG_START(bingowav_state::bingowav) MCFG_DEVICE_ADD("audiocpu", Z80, 4000000) MCFG_DEVICE_PROGRAM_MAP(bingowav_audio_map) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2610, 8000000) MCFG_YM2610_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) diff --git a/src/mame/drivers/bionicc.cpp b/src/mame/drivers/bionicc.cpp index cc1f604595f..10af55b28c6 100644 --- a/src/mame/drivers/bionicc.cpp +++ b/src/mame/drivers/bionicc.cpp @@ -423,7 +423,7 @@ MACHINE_CONFIG_START(bionicc_state::bionicc) MCFG_DEVICE_ADD("spriteram", BUFFERED_SPRITERAM16) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/bishi.cpp b/src/mame/drivers/bishi.cpp index bb5815182a1..dfc5a6fae97 100644 --- a/src/mame/drivers/bishi.cpp +++ b/src/mame/drivers/bishi.cpp @@ -477,7 +477,8 @@ MACHINE_CONFIG_START(bishi_state::bishi) MCFG_K055555_ADD("k055555") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymz", YMZ280B, SOUND_CLOCK) /* 16.9344MHz */ MCFG_YMZ280B_IRQ_HANDLER(INPUTLINE("maincpu", M68K_IRQ_1)) diff --git a/src/mame/drivers/bitgraph.cpp b/src/mame/drivers/bitgraph.cpp index 863f1b7e2d0..274a234a377 100644 --- a/src/mame/drivers/bitgraph.cpp +++ b/src/mame/drivers/bitgraph.cpp @@ -553,7 +553,7 @@ MACHINE_CONFIG_START(bitgraph_state::bg_motherboard) MCFG_DEVICE_ADD(EAROM_TAG, ER2055, 0) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD(PSG_TAG, AY8912, XTAL(1'294'400)) MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(*this, bitgraph_state, earom_write)) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) diff --git a/src/mame/drivers/bk.cpp b/src/mame/drivers/bk.cpp index 8580acd4f3c..79bf5f50674 100644 --- a/src/mame/drivers/bk.cpp +++ b/src/mame/drivers/bk.cpp @@ -183,7 +183,7 @@ MACHINE_CONFIG_START(bk_state::bk0010) MCFG_PALETTE_ADD_MONOCHROME("palette") - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mame/drivers/bking.cpp b/src/mame/drivers/bking.cpp index 4d873a81178..f91d69afbf2 100644 --- a/src/mame/drivers/bking.cpp +++ b/src/mame/drivers/bking.cpp @@ -422,7 +422,7 @@ MACHINE_CONFIG_START(bking_state::bking) MCFG_PALETTE_INIT_OWNER(bking_state, bking) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(WRITELINE("soundnmi", input_merger_device, in_w<0>)) diff --git a/src/mame/drivers/blackt96.cpp b/src/mame/drivers/blackt96.cpp index ec3141a68de..445ff5b1d51 100644 --- a/src/mame/drivers/blackt96.cpp +++ b/src/mame/drivers/blackt96.cpp @@ -507,7 +507,8 @@ MACHINE_CONFIG_START(blackt96_state::blackt96) MCFG_SNK68_SPR_SET_TILE_INDIRECT( blackt96_state, tile_callback ) MCFG_SNK68_SPR_NO_PARTIAL - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("oki1", OKIM6295, 8000000/8, okim6295_device::PIN7_HIGH) // music MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.47) diff --git a/src/mame/drivers/bladestl.cpp b/src/mame/drivers/bladestl.cpp index ba57f709efc..e0f952e7cd3 100644 --- a/src/mame/drivers/bladestl.cpp +++ b/src/mame/drivers/bladestl.cpp @@ -346,7 +346,7 @@ MACHINE_CONFIG_START(bladestl_state::bladestl) /* sound hardware */ /* the initialization order is important, the port callbacks being called at initialization time */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD(m_soundlatch) MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE(m_audiocpu, M6809_IRQ_LINE)) diff --git a/src/mame/drivers/blitz68k.cpp b/src/mame/drivers/blitz68k.cpp index 9d61f13c287..b120f93afb8 100644 --- a/src/mame/drivers/blitz68k.cpp +++ b/src/mame/drivers/blitz68k.cpp @@ -1980,7 +1980,7 @@ MACHINE_CONFIG_START(blitz68k_state::maxidbl) MCFG_PALETTE_ADD("palette", 0x100) MCFG_RAMDAC_ADD("ramdac", ramdac_map, "palette") - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SAA1099_ADD("saa", XTAL(8'000'000)/2) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) MACHINE_CONFIG_END diff --git a/src/mame/drivers/blktiger.cpp b/src/mame/drivers/blktiger.cpp index f462cd8ab9a..50fe0547ee4 100644 --- a/src/mame/drivers/blktiger.cpp +++ b/src/mame/drivers/blktiger.cpp @@ -327,7 +327,7 @@ MACHINE_CONFIG_START(blktiger_state::blktiger) MCFG_DEVICE_ADD("spriteram", BUFFERED_SPRITERAM8) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/blmbycar.cpp b/src/mame/drivers/blmbycar.cpp index 059a5f05f8c..dbff04fa901 100644 --- a/src/mame/drivers/blmbycar.cpp +++ b/src/mame/drivers/blmbycar.cpp @@ -379,7 +379,8 @@ MACHINE_CONFIG_START(blmbycar_state::blmbycar) MCFG_PALETTE_FORMAT(xxxxBBBBRRRRGGGG) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("oki", OKIM6295, XTAL(1'000'000), okim6295_device::PIN7_HIGH) // clock frequency & pin 7 not verified MCFG_DEVICE_ADDRESS_MAP(0, blmbycar_oki_map) diff --git a/src/mame/drivers/blockade.cpp b/src/mame/drivers/blockade.cpp index d6a52906f5b..e8cc107e77f 100644 --- a/src/mame/drivers/blockade.cpp +++ b/src/mame/drivers/blockade.cpp @@ -482,7 +482,7 @@ MACHINE_CONFIG_START(blockade_state::blockade) MCFG_PALETTE_ADD_MONOCHROME("palette") // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("samples", SAMPLES) MCFG_SAMPLES_CHANNELS(1) diff --git a/src/mame/drivers/blockhl.cpp b/src/mame/drivers/blockhl.cpp index 0fb737288d8..275a71e7774 100644 --- a/src/mame/drivers/blockhl.cpp +++ b/src/mame/drivers/blockhl.cpp @@ -319,7 +319,7 @@ MACHINE_CONFIG_START(blockhl_state::blockhl) MCFG_K051960_CB(blockhl_state, sprite_callback) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/blockout.cpp b/src/mame/drivers/blockout.cpp index 14b1cad4bf5..fc048f55143 100644 --- a/src/mame/drivers/blockout.cpp +++ b/src/mame/drivers/blockout.cpp @@ -326,7 +326,8 @@ MACHINE_CONFIG_START(blockout_state::blockout) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) diff --git a/src/mame/drivers/blocktax.cpp b/src/mame/drivers/blocktax.cpp index 2b7d145a204..2ef854be0e8 100644 --- a/src/mame/drivers/blocktax.cpp +++ b/src/mame/drivers/blocktax.cpp @@ -86,7 +86,7 @@ MACHINE_CONFIG_START(blocktax_state::blocktax) MCFG_PALETTE_ADD("palette", 0x200) MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB) - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, 30_MHz_XTAL/16, okim6295_device::PIN7_HIGH) // clock frequency & pin 7 not verified MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 1.00) diff --git a/src/mame/drivers/bloodbro.cpp b/src/mame/drivers/bloodbro.cpp index ed46f5b45c9..5484007e430 100644 --- a/src/mame/drivers/bloodbro.cpp +++ b/src/mame/drivers/bloodbro.cpp @@ -551,7 +551,7 @@ MACHINE_CONFIG_START(bloodbro_state::bloodbro) MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM3812, XTAL(7'159'090)/2) MCFG_YM3812_IRQ_HANDLER(WRITELINE("seibu_sound", seibu_sound_device, fm_irqhandler)) diff --git a/src/mame/drivers/blstroid.cpp b/src/mame/drivers/blstroid.cpp index 37978c25eeb..2bfc711c71f 100644 --- a/src/mame/drivers/blstroid.cpp +++ b/src/mame/drivers/blstroid.cpp @@ -207,7 +207,8 @@ MACHINE_CONFIG_START(blstroid_state::blstroid) MCFG_VIDEO_START_OVERRIDE(blstroid_state,blstroid) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_ATARI_JSA_I_ADD("jsa", INPUTLINE("maincpu", M68K_IRQ_4)) MCFG_ATARI_JSA_TEST_PORT("IN0", 7) diff --git a/src/mame/drivers/blueprnt.cpp b/src/mame/drivers/blueprnt.cpp index 71bf0f1c36a..8469c913320 100644 --- a/src/mame/drivers/blueprnt.cpp +++ b/src/mame/drivers/blueprnt.cpp @@ -378,7 +378,7 @@ MACHINE_CONFIG_START(blueprnt_state::blueprnt) MCFG_PALETTE_INIT_OWNER(blueprnt_state, blueprnt) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/bmcbowl.cpp b/src/mame/drivers/bmcbowl.cpp index a7dec51938e..241f2805275 100644 --- a/src/mame/drivers/bmcbowl.cpp +++ b/src/mame/drivers/bmcbowl.cpp @@ -473,7 +473,8 @@ MACHINE_CONFIG_START(bmcbowl_state::bmcbowl) MCFG_NVRAM_ADD_1FILL("nvram") - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2413, XTAL(3'579'545) ) // guessed chip type, clock not verified MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.50) diff --git a/src/mame/drivers/bmcpokr.cpp b/src/mame/drivers/bmcpokr.cpp index ab37f0fa97c..70302c39064 100644 --- a/src/mame/drivers/bmcpokr.cpp +++ b/src/mame/drivers/bmcpokr.cpp @@ -830,7 +830,8 @@ MACHINE_CONFIG_START(bmcpokr_state::bmcpokr) MCFG_TICKET_DISPENSER_ADD("hopper", attotime::from_msec(10), TICKET_MOTOR_ACTIVE_HIGH, TICKET_STATUS_ACTIVE_LOW) // hopper stuck low if too slow - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2413, XTAL(42'000'000) / 12) // UM3567 @3.50MHz (42/12) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.50) diff --git a/src/mame/drivers/bmjr.cpp b/src/mame/drivers/bmjr.cpp index 378f2e2ab24..c3c93309e98 100644 --- a/src/mame/drivers/bmjr.cpp +++ b/src/mame/drivers/bmjr.cpp @@ -356,7 +356,7 @@ MACHINE_CONFIG_START(bmjr_state::bmjr) MCFG_GFXDECODE_ADD("gfxdecode", "palette", bmjr) /* Audio */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, 1200) // guesswork MCFG_SOUND_ROUTE(ALL_OUTPUTS,"mono",0.50) MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") diff --git a/src/mame/drivers/bml3.cpp b/src/mame/drivers/bml3.cpp index 21171ab7953..abea68e0287 100644 --- a/src/mame/drivers/bml3.cpp +++ b/src/mame/drivers/bml3.cpp @@ -1013,7 +1013,7 @@ MACHINE_CONFIG_START(bml3_state::bml3_common) MCFG_CASSETTE_ADD( "cassette" ) /* Audio */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) diff --git a/src/mame/drivers/bnstars.cpp b/src/mame/drivers/bnstars.cpp index 84871e083eb..c8d517ec10d 100644 --- a/src/mame/drivers/bnstars.cpp +++ b/src/mame/drivers/bnstars.cpp @@ -847,7 +847,8 @@ MACHINE_CONFIG_START(bnstars_state::bnstars) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) diff --git a/src/mame/drivers/bogeyman.cpp b/src/mame/drivers/bogeyman.cpp index a8d6e48ba85..0663369be67 100644 --- a/src/mame/drivers/bogeyman.cpp +++ b/src/mame/drivers/bogeyman.cpp @@ -254,7 +254,7 @@ MACHINE_CONFIG_START(bogeyman_state::bogeyman) MCFG_PALETTE_INIT_OWNER(bogeyman_state, bogeyman) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); // verified to be YM2149s from PCB pic MCFG_DEVICE_ADD("ay1", YM2149, 1500000) /* Verified */ diff --git a/src/mame/drivers/bombjack.cpp b/src/mame/drivers/bombjack.cpp index ecbd5edc216..472e419c4d7 100644 --- a/src/mame/drivers/bombjack.cpp +++ b/src/mame/drivers/bombjack.cpp @@ -378,7 +378,7 @@ MACHINE_CONFIG_START(bombjack_state::bombjack) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay1", AY8910, XTAL(12'000'000)/8) /* Confirmed from PCB */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.13) diff --git a/src/mame/drivers/boogwing.cpp b/src/mame/drivers/boogwing.cpp index 529010e580c..7469900a864 100644 --- a/src/mame/drivers/boogwing.cpp +++ b/src/mame/drivers/boogwing.cpp @@ -411,7 +411,8 @@ MACHINE_CONFIG_START(boogwing_state::boogwing) MCFG_DECO146_SET_USE_MAGIC_ADDRESS_XOR /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2151, SOUND_XTAL/9) MCFG_YM2151_IRQ_HANDLER(INPUTLINE("audiocpu", 1)) /* IRQ2 */ diff --git a/src/mame/drivers/bottom9.cpp b/src/mame/drivers/bottom9.cpp index b519e6971e7..aa36bd9d1eb 100644 --- a/src/mame/drivers/bottom9.cpp +++ b/src/mame/drivers/bottom9.cpp @@ -340,7 +340,7 @@ MACHINE_CONFIG_START(bottom9_state::bottom9) MCFG_K051316_CB(bottom9_state, zoom_callback) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/br8641.cpp b/src/mame/drivers/br8641.cpp index 07e9215dd35..f7b7263133a 100644 --- a/src/mame/drivers/br8641.cpp +++ b/src/mame/drivers/br8641.cpp @@ -166,7 +166,7 @@ MACHINE_CONFIG_START(brandt8641_state::brandt8641) MCFG_Z80_DAISY_CHAIN(daisy_chain_intf) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, 2000) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/brkthru.cpp b/src/mame/drivers/brkthru.cpp index 8f8a7b10324..f0d66e2ec14 100644 --- a/src/mame/drivers/brkthru.cpp +++ b/src/mame/drivers/brkthru.cpp @@ -397,7 +397,7 @@ MACHINE_CONFIG_START(brkthru_state::brkthru) MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, brkthru_state, vblank_irq)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) @@ -449,7 +449,7 @@ MACHINE_CONFIG_START(brkthru_state::darwin) MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, brkthru_state, vblank_irq)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) diff --git a/src/mame/drivers/bsktball.cpp b/src/mame/drivers/bsktball.cpp index 3868ce84d7c..3ef4acdfed9 100644 --- a/src/mame/drivers/bsktball.cpp +++ b/src/mame/drivers/bsktball.cpp @@ -270,7 +270,7 @@ MACHINE_CONFIG_START(bsktball_state::bsktball) MCFG_PALETTE_INIT_OWNER(bsktball_state, bsktball) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("discrete", DISCRETE, bsktball_discrete) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/btime.cpp b/src/mame/drivers/btime.cpp index 7254eecbafe..e92ccb34265 100644 --- a/src/mame/drivers/btime.cpp +++ b/src/mame/drivers/btime.cpp @@ -1306,7 +1306,7 @@ MACHINE_CONFIG_START(btime_state::btime) MCFG_PALETTE_FORMAT(BBGGGRRR_inverted) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", 0)) diff --git a/src/mame/drivers/btoads.cpp b/src/mame/drivers/btoads.cpp index 97c2ae6abcb..bac51a466ea 100644 --- a/src/mame/drivers/btoads.cpp +++ b/src/mame/drivers/btoads.cpp @@ -329,7 +329,8 @@ MACHINE_CONFIG_START(btoads_state::btoads) MCFG_SCREEN_UPDATE_DEVICE("maincpu", tms34020_device, tms340x0_rgb32) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_BSMT2000_ADD("bsmt", SOUND_CLOCK) MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) diff --git a/src/mame/drivers/bublbobl.cpp b/src/mame/drivers/bublbobl.cpp index 6e686236173..e174fd9aaae 100644 --- a/src/mame/drivers/bublbobl.cpp +++ b/src/mame/drivers/bublbobl.cpp @@ -880,7 +880,7 @@ MACHINE_CONFIG_START(bublbobl_state::tokio) MCFG_PALETTE_ENDIANNESS(ENDIANNESS_BIG) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_INPUT_MERGER_ALL_HIGH("soundnmi") MCFG_INPUT_MERGER_OUTPUT_HANDLER(INPUTLINE("audiocpu", INPUT_LINE_NMI)) @@ -993,7 +993,7 @@ MACHINE_CONFIG_START(bublbobl_state::bublbobl_nomcu) MCFG_PALETTE_ENDIANNESS(ENDIANNESS_BIG) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_INPUT_MERGER_ANY_HIGH("soundirq") MCFG_INPUT_MERGER_OUTPUT_HANDLER(INPUTLINE("audiocpu", INPUT_LINE_IRQ0)) diff --git a/src/mame/drivers/buggychl.cpp b/src/mame/drivers/buggychl.cpp index db5077c9870..68f44b8d71f 100644 --- a/src/mame/drivers/buggychl.cpp +++ b/src/mame/drivers/buggychl.cpp @@ -490,7 +490,7 @@ MACHINE_CONFIG_START(buggychl_state::buggychl) MCFG_PALETTE_INIT_OWNER(buggychl_state, buggychl) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(WRITELINE("soundnmi", input_merger_device, in_w<0>)) diff --git a/src/mame/drivers/buster.cpp b/src/mame/drivers/buster.cpp index 52ca4a06c08..cec8db5564b 100644 --- a/src/mame/drivers/buster.cpp +++ b/src/mame/drivers/buster.cpp @@ -343,7 +343,7 @@ MACHINE_CONFIG_START(buster_state::buster) MCFG_PALETTE_ADD_3BIT_RGB("palette") - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, 1500000/2) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mame/drivers/bw12.cpp b/src/mame/drivers/bw12.cpp index 888acf24ae5..7aa3004c81b 100644 --- a/src/mame/drivers/bw12.cpp +++ b/src/mame/drivers/bw12.cpp @@ -570,7 +570,7 @@ MACHINE_CONFIG_START(bw12_state::common) MCFG_MC6845_UPDATE_ROW_CB(bw12_state, crtc_update_row) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", MC1408, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.125) // ls273.ic5 + mc1408.ic4 MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT) diff --git a/src/mame/drivers/bwing.cpp b/src/mame/drivers/bwing.cpp index 3437775e06e..d7479399d1a 100644 --- a/src/mame/drivers/bwing.cpp +++ b/src/mame/drivers/bwing.cpp @@ -401,7 +401,7 @@ MACHINE_CONFIG_START(bwing_state::bwing) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/by35.cpp b/src/mame/drivers/by35.cpp index 31518d1c195..23e4d057833 100644 --- a/src/mame/drivers/by35.cpp +++ b/src/mame/drivers/by35.cpp @@ -1137,7 +1137,7 @@ MACHINE_CONFIG_START(by35_state::by35) MACHINE_CONFIG_END MACHINE_CONFIG_START(as2888_state::as2888_audio) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("discrete", DISCRETE, as2888_discrete) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) diff --git a/src/mame/drivers/byvid.cpp b/src/mame/drivers/byvid.cpp index 997c2f65010..5a6ba944d17 100644 --- a/src/mame/drivers/byvid.cpp +++ b/src/mame/drivers/byvid.cpp @@ -807,12 +807,12 @@ MACHINE_CONFIG_START(by133_state::babypac) MCFG_SCREEN_UPDATE_DEVICE( "crtc", tms9928a_device, screen_update ) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", ZN429E, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) // U32 (Vidiot) or U6 (Cheap Squeak) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT) - MCFG_SPEAKER_STANDARD_MONO("beee") + SPEAKER(config, "beee").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, 600) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "beee", 0.10) MACHINE_CONFIG_END diff --git a/src/mame/drivers/bzone.cpp b/src/mame/drivers/bzone.cpp index dd5eb8b5c7c..da730a9c51e 100644 --- a/src/mame/drivers/bzone.cpp +++ b/src/mame/drivers/bzone.cpp @@ -588,7 +588,7 @@ MACHINE_CONFIG_START(redbaron_state::redbaron) MCFG_SCREEN_VISIBLE_AREA(0, 520, 0, 400) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("pokey", POKEY, 1500000) MCFG_POKEY_ALLPOT_R_CB(READ8(*this, redbaron_state, redbaron_joy_r)) diff --git a/src/mame/drivers/c128.cpp b/src/mame/drivers/c128.cpp index ac95038ced5..3847622dd31 100644 --- a/src/mame/drivers/c128.cpp +++ b/src/mame/drivers/c128.cpp @@ -1733,7 +1733,7 @@ MACHINE_CONFIG_START(c128_state::ntsc) MCFG_GFXDECODE_ADD("gfxdecode", MOS8563_TAG":palette", c128) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD(MOS6581_TAG, MOS6581, XTAL(14'318'181)*2/3.5/8) MCFG_MOS6581_POTX_CALLBACK(READ8(*this, c128_state, sid_potx_r)) MCFG_MOS6581_POTY_CALLBACK(READ8(*this, c128_state, sid_poty_r)) @@ -1907,7 +1907,7 @@ MACHINE_CONFIG_START(c128_state::pal) MCFG_GFXDECODE_ADD("gfxdecode", MOS8563_TAG":palette", c128) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD(MOS6581_TAG, MOS6581, XTAL(17'734'472)*2/4.5/8) MCFG_MOS6581_POTX_CALLBACK(READ8(*this, c128_state, sid_potx_r)) MCFG_MOS6581_POTY_CALLBACK(READ8(*this, c128_state, sid_poty_r)) diff --git a/src/mame/drivers/c64.cpp b/src/mame/drivers/c64.cpp index 25dc47a1d4b..db7182dcc64 100644 --- a/src/mame/drivers/c64.cpp +++ b/src/mame/drivers/c64.cpp @@ -1350,7 +1350,7 @@ MACHINE_CONFIG_START(c64_state::ntsc) MCFG_SCREEN_UPDATE_DEVICE(MOS6567_TAG, mos6567_device, screen_update) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD(MOS6581_TAG, MOS6581, XTAL(14'318'181)/14) MCFG_MOS6581_POTX_CALLBACK(READ8(*this, c64_state, sid_potx_r)) MCFG_MOS6581_POTY_CALLBACK(READ8(*this, c64_state, sid_poty_r)) @@ -1508,7 +1508,7 @@ MACHINE_CONFIG_START(c64_state::pal) MCFG_SCREEN_UPDATE_DEVICE(MOS6569_TAG, mos6569_device, screen_update) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD(MOS6581_TAG, MOS6581, XTAL(17'734'472)/18) MCFG_MOS6581_POTX_CALLBACK(READ8(*this, c64_state, sid_potx_r)) MCFG_MOS6581_POTY_CALLBACK(READ8(*this, c64_state, sid_poty_r)) @@ -1644,7 +1644,7 @@ MACHINE_CONFIG_START(c64gs_state::pal_gs) MCFG_SCREEN_UPDATE_DEVICE(MOS6569_TAG, mos8565_device, screen_update) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD(MOS6581_TAG, MOS8580, XTAL(17'734'472)/18) MCFG_MOS6581_POTX_CALLBACK(READ8(*this, c64_state, sid_potx_r)) MCFG_MOS6581_POTY_CALLBACK(READ8(*this, c64_state, sid_poty_r)) diff --git a/src/mame/drivers/c65.cpp b/src/mame/drivers/c65.cpp index fec2185c107..ba21846b324 100644 --- a/src/mame/drivers/c65.cpp +++ b/src/mame/drivers/c65.cpp @@ -721,7 +721,8 @@ MACHINE_CONFIG_START(c65_state::c65) MCFG_PALETTE_INIT_OWNER(c65_state, c65) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); // 2x 8580 SID // software list diff --git a/src/mame/drivers/c80.cpp b/src/mame/drivers/c80.cpp index 348fbd8df98..669fff0b3e8 100644 --- a/src/mame/drivers/c80.cpp +++ b/src/mame/drivers/c80.cpp @@ -278,7 +278,7 @@ MACHINE_CONFIG_START(c80_state::c80) MCFG_CASSETTE_ADD("cassette") MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_ENABLED ) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mame/drivers/cabal.cpp b/src/mame/drivers/cabal.cpp index 0b7082b5bb7..a258091de08 100644 --- a/src/mame/drivers/cabal.cpp +++ b/src/mame/drivers/cabal.cpp @@ -534,7 +534,7 @@ MACHINE_CONFIG_START(cabal_state::cabal) MCFG_SEIBU_SOUND_YM_READ_CB(READ8("ymsnd", ym2151_device, read)) MCFG_SEIBU_SOUND_YM_WRITE_CB(WRITE8("ymsnd", ym2151_device, write)) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2151, XTAL(3'579'545)) /* verified on pcb */ MCFG_YM2151_IRQ_HANDLER(WRITELINE("seibu_sound", seibu_sound_device, fm_irqhandler)) @@ -612,7 +612,7 @@ MACHINE_CONFIG_START(cabal_state::cabalbl) MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_8_ADD("soundlatch2") diff --git a/src/mame/drivers/cabaret.cpp b/src/mame/drivers/cabaret.cpp index e27c373ce78..a283cb4ea53 100644 --- a/src/mame/drivers/cabaret.cpp +++ b/src/mame/drivers/cabaret.cpp @@ -394,7 +394,7 @@ MACHINE_CONFIG_START(cabaret_state::cabaret) MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2413, XTAL(3'579'545)) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) MACHINE_CONFIG_END diff --git a/src/mame/drivers/calchase.cpp b/src/mame/drivers/calchase.cpp index 7751c31ee69..801a68b7761 100644 --- a/src/mame/drivers/calchase.cpp +++ b/src/mame/drivers/calchase.cpp @@ -701,7 +701,8 @@ MACHINE_CONFIG_START(calchase_state::calchase) MCFG_MC146818_CENTURY_INDEX(0x32) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker","rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ldac", DAC_12BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.25) // unknown DAC MCFG_DEVICE_ADD("rdac", DAC_12BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 0.25) // unknown DAC MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) @@ -728,7 +729,8 @@ MACHINE_CONFIG_START(calchase_state::hostinv) pcvideo_trident_vga(config); /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ldac", DAC_12BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.25) // unknown DAC MCFG_DEVICE_ADD("rdac", DAC_12BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 0.25) // unknown DAC MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) diff --git a/src/mame/drivers/calcune.cpp b/src/mame/drivers/calcune.cpp index 218de396985..2de18da5e3e 100644 --- a/src/mame/drivers/calcune.cpp +++ b/src/mame/drivers/calcune.cpp @@ -293,7 +293,8 @@ MACHINE_CONFIG_START(calcune_state::calcune) MCFG_NVRAM_ADD_0FILL("nvram") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymz", YMZ280B, XTAL(16'934'400)) MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) diff --git a/src/mame/drivers/calomega.cpp b/src/mame/drivers/calomega.cpp index 179aaf8cff0..3344a5e1982 100644 --- a/src/mame/drivers/calomega.cpp +++ b/src/mame/drivers/calomega.cpp @@ -2606,7 +2606,7 @@ MACHINE_CONFIG_START(calomega_state::sys903) MCFG_MC6845_CHAR_WIDTH(8) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay8912", AY8912, SND_CLOCK) /* confirmed */ MCFG_AY8910_PORT_A_READ_CB(IOPORT("SW3")) /* from schematics */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75) diff --git a/src/mame/drivers/calorie.cpp b/src/mame/drivers/calorie.cpp index e58b03e2960..6e184d9fd3f 100644 --- a/src/mame/drivers/calorie.cpp +++ b/src/mame/drivers/calorie.cpp @@ -491,7 +491,7 @@ MACHINE_CONFIG_START(calorie_state::calorie) MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/camplynx.cpp b/src/mame/drivers/camplynx.cpp index 07a7c9670a6..b3dd2be9943 100644 --- a/src/mame/drivers/camplynx.cpp +++ b/src/mame/drivers/camplynx.cpp @@ -847,7 +847,7 @@ MACHINE_CONFIG_START(camplynx_state::lynx_common) MCFG_PALETTE_ADD_3BIT_RGB("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_6BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.375) // unknown DAC MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT) diff --git a/src/mame/drivers/canyon.cpp b/src/mame/drivers/canyon.cpp index 076c4414e6f..622304a6f77 100644 --- a/src/mame/drivers/canyon.cpp +++ b/src/mame/drivers/canyon.cpp @@ -270,7 +270,8 @@ MACHINE_CONFIG_START(canyon_state::canyon) MCFG_PALETTE_INIT_OWNER(canyon_state, canyon) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("discrete", DISCRETE, canyon_discrete) MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) diff --git a/src/mame/drivers/capbowl.cpp b/src/mame/drivers/capbowl.cpp index 15099f19cc7..fb9c309b853 100644 --- a/src/mame/drivers/capbowl.cpp +++ b/src/mame/drivers/capbowl.cpp @@ -347,7 +347,7 @@ MACHINE_CONFIG_START(capbowl_state::capbowl) MCFG_TMS34061_INTERRUPT_CB(INPUTLINE("maincpu", M6809_FIRQ_LINE)) /* interrupt gen callback */ /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/capr1.cpp b/src/mame/drivers/capr1.cpp index 04c42d33106..a03a72342b4 100644 --- a/src/mame/drivers/capr1.cpp +++ b/src/mame/drivers/capr1.cpp @@ -220,7 +220,7 @@ MACHINE_CONFIG_START(capr1_state::cspin2) /* no video! */ /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ym", YM2203, 4000000) // clock frequency unknown MCFG_YM2203_IRQ_HANDLER(INPUTLINE("maincpu", 0)) diff --git a/src/mame/drivers/cardline.cpp b/src/mame/drivers/cardline.cpp index 7ef2dcb851a..b4977e5cd00 100644 --- a/src/mame/drivers/cardline.cpp +++ b/src/mame/drivers/cardline.cpp @@ -352,7 +352,8 @@ MACHINE_CONFIG_START(cardline_state::cardline) MCFG_DEFAULT_LAYOUT(layout_cardline) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("oki", OKIM6295, 1056000, okim6295_device::PIN7_HIGH) // clock frequency & pin 7 not verified MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 1.0) diff --git a/src/mame/drivers/carjmbre.cpp b/src/mame/drivers/carjmbre.cpp index a2727cd5240..45695901594 100644 --- a/src/mame/drivers/carjmbre.cpp +++ b/src/mame/drivers/carjmbre.cpp @@ -380,7 +380,7 @@ MACHINE_CONFIG_START(carjmbre_state::carjmbre) MCFG_PALETTE_INIT_OWNER(carjmbre_state, carjmbre) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/carrera.cpp b/src/mame/drivers/carrera.cpp index b2617c98156..5fbab017a84 100644 --- a/src/mame/drivers/carrera.cpp +++ b/src/mame/drivers/carrera.cpp @@ -338,7 +338,7 @@ MACHINE_CONFIG_START(carrera_state::carrera) MCFG_PALETTE_INIT_OWNER(carrera_state, carrera) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, MASTER_CLOCK/12) /* these are set as input, but I have no idea which input port it uses is for the AY */ diff --git a/src/mame/drivers/casloopy.cpp b/src/mame/drivers/casloopy.cpp index 35c8e239c02..34df5e891e3 100644 --- a/src/mame/drivers/casloopy.cpp +++ b/src/mame/drivers/casloopy.cpp @@ -551,7 +551,7 @@ MACHINE_CONFIG_START(casloopy_state::casloopy) MCFG_SOFTWARE_LIST_ADD("cart_list","casloopy") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MACHINE_CONFIG_END /*************************************************************************** diff --git a/src/mame/drivers/caswin.cpp b/src/mame/drivers/caswin.cpp index 84aa917e203..ff88d0536fb 100644 --- a/src/mame/drivers/caswin.cpp +++ b/src/mame/drivers/caswin.cpp @@ -354,7 +354,7 @@ MACHINE_CONFIG_START(caswin_state::vvillage) MCFG_PALETTE_ADD("palette", 0x40) MCFG_PALETTE_INIT_OWNER(caswin_state, caswin) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, 4000000 / 4) MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW1")) diff --git a/src/mame/drivers/cat.cpp b/src/mame/drivers/cat.cpp index a1feae3198c..3f651707dbf 100644 --- a/src/mame/drivers/cat.cpp +++ b/src/mame/drivers/cat.cpp @@ -1089,7 +1089,7 @@ MACHINE_CONFIG_START(cat_state::cat) MCFG_CENTRONICS_BUSY_HANDLER(WRITELINE("duartn68681", mc68681_device, ip4_w)) MCFG_DEVCB_XOR(1) MCFG_CENTRONICS_OUTPUT_LATCH_ADD("ctx_data_out", "ctx") - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) diff --git a/src/mame/drivers/cave.cpp b/src/mame/drivers/cave.cpp index 6b545c696bb..184c9f09d27 100644 --- a/src/mame/drivers/cave.cpp +++ b/src/mame/drivers/cave.cpp @@ -2122,7 +2122,7 @@ MACHINE_CONFIG_START(cave_state::dfeveron) MCFG_VIDEO_START_OVERRIDE(cave_state,cave_2_layers) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymz", YMZ280B, 16.9344_MHz_XTAL) MCFG_YMZ280B_IRQ_HANDLER(WRITELINE(*this, cave_state, sound_irq_gen)) @@ -2163,7 +2163,7 @@ MACHINE_CONFIG_START(cave_state::ddonpach) MCFG_VIDEO_START_OVERRIDE(cave_state,cave_3_layers) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymz", YMZ280B, 16.9344_MHz_XTAL) MCFG_YMZ280B_IRQ_HANDLER(WRITELINE(*this, cave_state, sound_irq_gen)) @@ -2203,7 +2203,7 @@ MACHINE_CONFIG_START(cave_state::donpachi) MCFG_VIDEO_START_OVERRIDE(cave_state,cave_3_layers) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki1", OKIM6295, 4.224_MHz_XTAL/4, okim6295_device::PIN7_HIGH) // pin 7 not verified MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.60) @@ -2250,7 +2250,7 @@ MACHINE_CONFIG_START(cave_state::esprade) MCFG_VIDEO_START_OVERRIDE(cave_state,cave_3_layers) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymz", YMZ280B, 16.9344_MHz_XTAL) MCFG_YMZ280B_IRQ_HANDLER(WRITELINE(*this, cave_state, sound_irq_gen)) @@ -2291,7 +2291,7 @@ MACHINE_CONFIG_START(cave_state::gaia) MCFG_VIDEO_START_OVERRIDE(cave_state,cave_3_layers) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymz", YMZ280B, 16.9344_MHz_XTAL) MCFG_YMZ280B_IRQ_HANDLER(WRITELINE(*this, cave_state, sound_irq_gen)) @@ -2331,7 +2331,7 @@ MACHINE_CONFIG_START(cave_state::guwange) MCFG_VIDEO_START_OVERRIDE(cave_state,cave_3_layers) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymz", YMZ280B, 16.9344_MHz_XTAL) MCFG_YMZ280B_IRQ_HANDLER(WRITELINE(*this, cave_state, sound_irq_gen)) @@ -2374,7 +2374,7 @@ MACHINE_CONFIG_START(cave_state::hotdogst) MCFG_VIDEO_START_OVERRIDE(cave_state,cave_3_layers) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_16_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) @@ -2424,7 +2424,7 @@ MACHINE_CONFIG_START(cave_state::korokoro) MCFG_VIDEO_START_OVERRIDE(cave_state,cave_1_layer) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymz", YMZ280B, 16.9344_MHz_XTAL) MCFG_YMZ280B_IRQ_HANDLER(WRITELINE(*this, cave_state, sound_irq_gen)) @@ -2477,7 +2477,7 @@ MACHINE_CONFIG_START(cave_state::mazinger) MCFG_VIDEO_START_OVERRIDE(cave_state,cave_2_layers) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_16_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) @@ -2534,7 +2534,7 @@ MACHINE_CONFIG_START(cave_state::metmqstr) MCFG_VIDEO_START_OVERRIDE(cave_state,cave_3_layers) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_16_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) @@ -2592,7 +2592,8 @@ MACHINE_CONFIG_START(cave_state::pacslot) MCFG_VIDEO_START_OVERRIDE(cave_state,cave_1_layer) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("oki1", OKIM6295, 28_MHz_XTAL / 28, okim6295_device::PIN7_HIGH) // clock frequency & pin 7 not verified MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 1.0) @@ -2667,7 +2668,8 @@ MACHINE_CONFIG_START(cave_state::ppsatan) MCFG_VIDEO_START_OVERRIDE(cave_state,cave_3_layers) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("oki1", OKIM6295, 1.056_MHz_XTAL, okim6295_device::PIN7_HIGH) // clock frequency & pin 7 not verified MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 2.0) @@ -2713,7 +2715,7 @@ MACHINE_CONFIG_START(cave_state::pwrinst2) MCFG_VIDEO_START_OVERRIDE(cave_state,cave_4_layers) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_16_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) @@ -2790,7 +2792,7 @@ MACHINE_CONFIG_START(cave_state::sailormn) MCFG_VIDEO_START_OVERRIDE(cave_state,sailormn_3_layers) /* Layer 2 has 1 banked ROM */ /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_16_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) @@ -2850,7 +2852,8 @@ MACHINE_CONFIG_START(cave_state::tekkencw) MCFG_VIDEO_START_OVERRIDE(cave_state,cave_1_layer) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("oki1", OKIM6295, 28_MHz_XTAL / 28, okim6295_device::PIN7_HIGH) // clock frequency & pin 7 not verified MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 1.0) @@ -2905,7 +2908,8 @@ MACHINE_CONFIG_START(cave_state::tjumpman) MCFG_VIDEO_START_OVERRIDE(cave_state,cave_1_layer) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("oki1", OKIM6295, 28_MHz_XTAL / 28, okim6295_device::PIN7_HIGH) // clock frequency & pin 7 not verified MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 1.0) @@ -2946,7 +2950,7 @@ MACHINE_CONFIG_START(cave_state::uopoko) MCFG_VIDEO_START_OVERRIDE(cave_state,cave_1_layer) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymz", YMZ280B, 16.9344_MHz_XTAL) MCFG_YMZ280B_IRQ_HANDLER(WRITELINE(*this, cave_state, sound_irq_gen)) diff --git a/src/mame/drivers/cb2001.cpp b/src/mame/drivers/cb2001.cpp index 8f629c1a767..486645db9b2 100644 --- a/src/mame/drivers/cb2001.cpp +++ b/src/mame/drivers/cb2001.cpp @@ -850,7 +850,7 @@ MACHINE_CONFIG_START(cb2001_state::cb2001) MCFG_PALETTE_INIT_OWNER(cb2001_state, cb2001) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, 1500000) // wrong MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW4")) MCFG_AY8910_PORT_B_READ_CB(IOPORT("DSW5")) diff --git a/src/mame/drivers/cbasebal.cpp b/src/mame/drivers/cbasebal.cpp index 4d6ad9e187a..2f60a1cf56e 100644 --- a/src/mame/drivers/cbasebal.cpp +++ b/src/mame/drivers/cbasebal.cpp @@ -288,7 +288,7 @@ MACHINE_CONFIG_START(cbasebal_state::cbasebal) MCFG_PALETTE_FORMAT(xxxxBBBBRRRRGGGG) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, 1056000, okim6295_device::PIN7_HIGH) // clock frequency & pin 7 not verified MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/cbm2.cpp b/src/mame/drivers/cbm2.cpp index 4d74dfbf873..e82e125805a 100644 --- a/src/mame/drivers/cbm2.cpp +++ b/src/mame/drivers/cbm2.cpp @@ -2333,7 +2333,7 @@ MACHINE_CONFIG_START(p500_state::p500_ntsc) MCFG_SCREEN_UPDATE_DEVICE(MOS6567_TAG, mos6567_device, screen_update) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD(MOS6581_TAG, MOS6581, XTAL(14'318'181)/14) MCFG_MOS6581_POTX_CALLBACK(READ8(*this, p500_state, sid_potx_r)) MCFG_MOS6581_POTY_CALLBACK(READ8(*this, p500_state, sid_poty_r)) @@ -2449,7 +2449,7 @@ MACHINE_CONFIG_START(p500_state::p500_pal) MCFG_SCREEN_UPDATE_DEVICE(MOS6569_TAG, mos6569_device, screen_update) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD(MOS6581_TAG, MOS6581, XTAL(17'734'472)/18) MCFG_MOS6581_POTX_CALLBACK(READ8(*this, p500_state, sid_potx_r)) MCFG_MOS6581_POTY_CALLBACK(READ8(*this, p500_state, sid_poty_r)) @@ -2565,7 +2565,7 @@ MACHINE_CONFIG_START(cbm2_state::cbm2lp_ntsc) MCFG_MC6845_UPDATE_ROW_CB(cbm2_state, crtc_update_row) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD(MOS6581_TAG, MOS6581, XTAL(18'000'000)/9) MCFG_MOS6581_POTX_CALLBACK(READ8(*this, cbm2_state, sid_potx_r)) MCFG_MOS6581_POTY_CALLBACK(READ8(*this, cbm2_state, sid_poty_r)) diff --git a/src/mame/drivers/cbuster.cpp b/src/mame/drivers/cbuster.cpp index 6887c5d0a12..76aa9b7a58d 100644 --- a/src/mame/drivers/cbuster.cpp +++ b/src/mame/drivers/cbuster.cpp @@ -365,7 +365,7 @@ MACHINE_CONFIG_START(cbuster_state::twocrude) MCFG_DECO_SPRITE_GFXDECODE("gfxdecode") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", 0)) diff --git a/src/mame/drivers/cc40.cpp b/src/mame/drivers/cc40.cpp index e98fb550a00..5c101c88dfb 100644 --- a/src/mame/drivers/cc40.cpp +++ b/src/mame/drivers/cc40.cpp @@ -607,7 +607,7 @@ MACHINE_CONFIG_START(cc40_state::cc40) MCFG_HD44780_PIXEL_UPDATE_CB(cc40_state, cc40_pixel_update) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) diff --git a/src/mame/drivers/ccastles.cpp b/src/mame/drivers/ccastles.cpp index 5d0319acddd..310c02fb05d 100644 --- a/src/mame/drivers/ccastles.cpp +++ b/src/mame/drivers/ccastles.cpp @@ -476,7 +476,7 @@ MACHINE_CONFIG_START(ccastles_state::ccastles) MCFG_SCREEN_PALETTE("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("pokey1", POKEY, MASTER_CLOCK/8) /* NOTE: 1k + 0.2k is not 100% exact, but should not make an audible difference */ diff --git a/src/mame/drivers/cchance.cpp b/src/mame/drivers/cchance.cpp index 40f2dbbec6b..78ec3d0e2eb 100644 --- a/src/mame/drivers/cchance.cpp +++ b/src/mame/drivers/cchance.cpp @@ -236,7 +236,7 @@ MACHINE_CONFIG_START(cchance_state::cchance) MCFG_PALETTE_ADD("palette", 512) MCFG_PALETTE_INIT_OWNER(tnzs_base_state, prompalette) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", YM2149, 1500000/2) MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW1")) diff --git a/src/mame/drivers/cchasm.cpp b/src/mame/drivers/cchasm.cpp index 2ddd85aaec4..ea0984eb5cd 100644 --- a/src/mame/drivers/cchasm.cpp +++ b/src/mame/drivers/cchasm.cpp @@ -174,7 +174,7 @@ MACHINE_CONFIG_START(cchasm_state::cchasm) MCFG_SCREEN_UPDATE_DEVICE("vector", vector_device, screen_update) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_8_ADD("soundlatch2") diff --git a/src/mame/drivers/cclimber.cpp b/src/mame/drivers/cclimber.cpp index fb287abce42..921d4509d7b 100644 --- a/src/mame/drivers/cclimber.cpp +++ b/src/mame/drivers/cclimber.cpp @@ -1145,7 +1145,7 @@ MACHINE_CONFIG_START(cclimber_state::cclimber) MCFG_ADDRESSABLE_LATCH_Q4_OUT_CB(WRITELINE("cclimber_audio", cclimber_audio_device, sample_trigger_w)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_CCLIMBER_AUDIO_ADD("cclimber_audio") MACHINE_CONFIG_END @@ -1213,7 +1213,7 @@ MACHINE_CONFIG_START(cclimber_state::yamato) MCFG_SCREEN_UPDATE_DRIVER(cclimber_state, screen_update_yamato) /* audio hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("ay1", AY8910, 1536000) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) @@ -1285,7 +1285,7 @@ MACHINE_CONFIG_START(cclimber_state::swimmer) MCFG_VIDEO_START_OVERRIDE(cclimber_state,swimmer) /* audio hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/cd2650.cpp b/src/mame/drivers/cd2650.cpp index d00175697c9..97efb70a8f7 100644 --- a/src/mame/drivers/cd2650.cpp +++ b/src/mame/drivers/cd2650.cpp @@ -315,7 +315,7 @@ MACHINE_CONFIG_START(cd2650_state::cd2650) MCFG_QUICKLOAD_ADD("quickload", cd2650_state, cd2650, "pgm", 1) /* Sound */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MCFG_DEVICE_ADD("beeper", BEEP, 950) // guess diff --git a/src/mame/drivers/cdi.cpp b/src/mame/drivers/cdi.cpp index d679ac39444..d39369584ce 100644 --- a/src/mame/drivers/cdi.cpp +++ b/src/mame/drivers/cdi.cpp @@ -805,7 +805,8 @@ MACHINE_CONFIG_START(cdi_state::cdimono1_base) MCFG_CDISLAVE_ADD("slave_hle") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD( "dac1", DMADAC ) MCFG_SOUND_ROUTE( ALL_OUTPUTS, "lspeaker", 1.0 ) @@ -860,7 +861,8 @@ MACHINE_CONFIG_START(cdi_state::cdimono2) MCFG_SOFTWARE_LIST_FILTER("cd_list","!DVC") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD( "dac1", DMADAC ) MCFG_SOUND_ROUTE( ALL_OUTPUTS, "lspeaker", 1.0 ) @@ -914,7 +916,8 @@ MACHINE_CONFIG_START(cdi_state::cdi910) MCFG_SOFTWARE_LIST_FILTER("cd_list","!DVC") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD( "dac1", DMADAC ) MCFG_SOUND_ROUTE( ALL_OUTPUTS, "lspeaker", 1.0 ) diff --git a/src/mame/drivers/centiped.cpp b/src/mame/drivers/centiped.cpp index 027d1f3f235..c7087ad49ea 100644 --- a/src/mame/drivers/centiped.cpp +++ b/src/mame/drivers/centiped.cpp @@ -1757,7 +1757,7 @@ MACHINE_CONFIG_START(centiped_state::centiped) MCFG_ADDRESSABLE_LATCH_Q7_OUT_CB(WRITELINE(*this, centiped_state, flip_screen_w)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("pokey", POKEY, 12096000/8) MCFG_POKEY_OUTPUT_OPAMP_LOW_PASS(RES_K(3.3), CAP_U(0.01), 5.0) @@ -1784,7 +1784,7 @@ MACHINE_CONFIG_START(centiped_state::caterplr) MCFG_ADDRESSABLE_LATCH_Q7_OUT_CB(WRITELINE(*this, centiped_state, flip_screen_w)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, 12096000/8) @@ -1803,7 +1803,7 @@ MACHINE_CONFIG_START(centiped_state::centipdb) MCFG_ADDRESSABLE_LATCH_Q7_OUT_CB(WRITELINE(*this, centiped_state, flip_screen_w)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, 12096000/8) MCFG_AY8910_PORT_A_READ_CB(READ8(*this, centiped_state, caterplr_unknown_r)) @@ -1823,7 +1823,7 @@ MACHINE_CONFIG_START(centiped_state::magworm) MCFG_ADDRESSABLE_LATCH_Q7_OUT_CB(WRITELINE(*this, centiped_state, flip_screen_w)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8912, 12096000/8) // AY-3-8912 at 2/3H MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 2.0) @@ -1853,7 +1853,7 @@ MACHINE_CONFIG_START(centiped_state::milliped) MCFG_SCREEN_UPDATE_DRIVER(centiped_state, screen_update_milliped) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("pokey", POKEY, 12096000/8) MCFG_POKEY_ALLPOT_R_CB(IOPORT("DSW1")) @@ -1900,7 +1900,7 @@ MACHINE_CONFIG_START(centiped_state::warlords) MCFG_SCREEN_UPDATE_DRIVER(centiped_state, screen_update_warlords) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("pokey", POKEY, 12096000/8) MCFG_POKEY_POT0_R_CB(IOPORT("PADDLE0")) @@ -1958,7 +1958,7 @@ MACHINE_CONFIG_START(centiped_state::bullsdrt) MCFG_VIDEO_START_OVERRIDE(centiped_state,bullsdrt) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("snsnd", SN76496, 12096000/8) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/cesclass.cpp b/src/mame/drivers/cesclass.cpp index d2c40ef527a..3a3ff1cb928 100644 --- a/src/mame/drivers/cesclass.cpp +++ b/src/mame/drivers/cesclass.cpp @@ -271,7 +271,7 @@ MACHINE_CONFIG_START(cesclassic_state::cesclassic) MCFG_PALETTE_ADD("palette", 4) MCFG_PALETTE_INIT_OWNER(cesclassic_state, cesclassic) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, 24000000/16, okim6295_device::PIN7_LOW) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.5) MACHINE_CONFIG_END diff --git a/src/mame/drivers/cgc7900.cpp b/src/mame/drivers/cgc7900.cpp index 745b6cc443e..a3ca1176f86 100644 --- a/src/mame/drivers/cgc7900.cpp +++ b/src/mame/drivers/cgc7900.cpp @@ -501,7 +501,7 @@ MACHINE_CONFIG_START(cgc7900_state::cgc7900) cgc7900_video(config); /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD(AY8910_TAG, AY8910, XTAL(28'480'000)/16) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mame/drivers/cgenie.cpp b/src/mame/drivers/cgenie.cpp index 6de6d3d2aed..77787dce2a1 100644 --- a/src/mame/drivers/cgenie.cpp +++ b/src/mame/drivers/cgenie.cpp @@ -456,7 +456,7 @@ MACHINE_CONFIG_START(cgenie_state::cgenie) MCFG_MC6845_UPDATE_ROW_CB(cgenie_state, crtc_update_row) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay8910", AY8910, XTAL(17'734'470) / 8) MCFG_AY8910_PORT_A_READ_CB(READ8("par", cg_parallel_slot_device, pa_r)) MCFG_AY8910_PORT_A_WRITE_CB(WRITE8("par", cg_parallel_slot_device, pa_w)) diff --git a/src/mame/drivers/chaknpop.cpp b/src/mame/drivers/chaknpop.cpp index 9d205c9e5ca..95377162201 100644 --- a/src/mame/drivers/chaknpop.cpp +++ b/src/mame/drivers/chaknpop.cpp @@ -386,7 +386,7 @@ MACHINE_CONFIG_START(chaknpop_state::chaknpop) MCFG_PALETTE_INIT_OWNER(chaknpop_state, chaknpop) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay1", AY8910, XTAL(18'000'000) / 12) // Verified on PCB MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSWA")) diff --git a/src/mame/drivers/cham24.cpp b/src/mame/drivers/cham24.cpp index f6f8d84a71e..a6ba732f4f2 100644 --- a/src/mame/drivers/cham24.cpp +++ b/src/mame/drivers/cham24.cpp @@ -305,7 +305,7 @@ MACHINE_CONFIG_START(cham24_state::cham24) MCFG_PPU2C0X_INT_CALLBACK(INPUTLINE("maincpu", INPUT_LINE_NMI)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MACHINE_CONFIG_END ROM_START( cham24 ) diff --git a/src/mame/drivers/champbas.cpp b/src/mame/drivers/champbas.cpp index 89c4ac164bd..11f7b93a410 100644 --- a/src/mame/drivers/champbas.cpp +++ b/src/mame/drivers/champbas.cpp @@ -558,7 +558,7 @@ MACHINE_CONFIG_START(champbas_state::talbot) MCFG_VIDEO_START_OVERRIDE(champbas_state,champbas) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -605,7 +605,7 @@ MACHINE_CONFIG_START(champbas_state::champbas) MCFG_VIDEO_START_OVERRIDE(champbas_state,champbas) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -716,7 +716,7 @@ MACHINE_CONFIG_START(champbas_state::exctsccr) MCFG_VIDEO_START_OVERRIDE(champbas_state,exctsccr) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -782,7 +782,7 @@ MACHINE_CONFIG_START(champbas_state::exctsccrb) MCFG_VIDEO_START_OVERRIDE(champbas_state,exctsccr) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/champbwl.cpp b/src/mame/drivers/champbwl.cpp index 4101218b4f7..0990c1bbb35 100644 --- a/src/mame/drivers/champbwl.cpp +++ b/src/mame/drivers/champbwl.cpp @@ -518,7 +518,8 @@ MACHINE_CONFIG_START(champbwl_state::champbwl) MCFG_PALETTE_INIT_OWNER(champbwl_state,champbwl) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("x1snd", X1_010, 16000000) MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) @@ -582,7 +583,7 @@ MACHINE_CONFIG_START(champbwl_state::doraemon) MCFG_PALETTE_INIT_OWNER(champbwl_state,champbwl) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("x1snd", X1_010, XTAL(14'318'181)) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) MACHINE_CONFIG_END diff --git a/src/mame/drivers/chanbara.cpp b/src/mame/drivers/chanbara.cpp index f6116bf13d6..9dd3cb662f6 100644 --- a/src/mame/drivers/chanbara.cpp +++ b/src/mame/drivers/chanbara.cpp @@ -410,7 +410,7 @@ MACHINE_CONFIG_START(chanbara_state::chanbara) MCFG_PALETTE_ADD("palette", 256) MCFG_PALETTE_INIT_OWNER(chanbara_state, chanbara) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2203, 12000000/8) MCFG_YM2203_IRQ_HANDLER(INPUTLINE("maincpu", 0)) diff --git a/src/mame/drivers/chance32.cpp b/src/mame/drivers/chance32.cpp index 2b2b6210356..399fdc8ee27 100644 --- a/src/mame/drivers/chance32.cpp +++ b/src/mame/drivers/chance32.cpp @@ -476,7 +476,7 @@ MACHINE_CONFIG_START(chance32_state::chance32) MCFG_PALETTE_FORMAT(xGGGGGRRRRRBBBBB) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); /* clock at 1050 kHz match the 8000 Hz samples stored inside the ROM */ MCFG_DEVICE_ADD("oki", OKIM6295, 1.056_MHz_XTAL, okim6295_device::PIN7_HIGH) // clock frequency & pin 7 not verified diff --git a/src/mame/drivers/changela.cpp b/src/mame/drivers/changela.cpp index 7f3779ac1da..8d3b97ee876 100644 --- a/src/mame/drivers/changela.cpp +++ b/src/mame/drivers/changela.cpp @@ -447,7 +447,7 @@ MACHINE_CONFIG_START(changela_state::changela) MCFG_PALETTE_ADD("palette", 0x40) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay1", AY8910, 1250000) MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSWA")) diff --git a/src/mame/drivers/channelf.cpp b/src/mame/drivers/channelf.cpp index da81723aa6d..e2facaccd34 100644 --- a/src/mame/drivers/channelf.cpp +++ b/src/mame/drivers/channelf.cpp @@ -230,7 +230,7 @@ MACHINE_CONFIG_START(channelf_state::channelf) MCFG_PALETTE_INIT_OWNER(channelf_state, channelf) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("custom", CHANNELF_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) @@ -257,7 +257,7 @@ MACHINE_CONFIG_START(channelf_state::sabavdpl) MCFG_PALETTE_INIT_OWNER(channelf_state, channelf) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("custom", CHANNELF_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) @@ -285,7 +285,7 @@ MACHINE_CONFIG_START(channelf_state::channlf2) MCFG_PALETTE_INIT_OWNER(channelf_state, channelf) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("custom", CHANNELF_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) @@ -313,7 +313,7 @@ MACHINE_CONFIG_START(channelf_state::sabavpl2) MCFG_PALETTE_INIT_OWNER(channelf_state, channelf) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("custom", CHANNELF_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/cheekyms.cpp b/src/mame/drivers/cheekyms.cpp index b2781a84fe8..fa48f1b2cc9 100644 --- a/src/mame/drivers/cheekyms.cpp +++ b/src/mame/drivers/cheekyms.cpp @@ -146,7 +146,7 @@ MACHINE_CONFIG_START(cheekyms_state::cheekyms) /* audio hardware */ MCFG_DEVICE_ADD("soundboard", CHEEKY_MOUSE_AUDIO, 0) #if 0 - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac0", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) MCFG_DEVICE_ADD("dac1", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) diff --git a/src/mame/drivers/chessmst.cpp b/src/mame/drivers/chessmst.cpp index a66b8d17148..95edfc047ca 100644 --- a/src/mame/drivers/chessmst.cpp +++ b/src/mame/drivers/chessmst.cpp @@ -398,7 +398,7 @@ MACHINE_CONFIG_START(chessmst_state::chessmst) MCFG_DEFAULT_LAYOUT(layout_chessmst) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) MACHINE_CONFIG_END @@ -423,7 +423,7 @@ MACHINE_CONFIG_START(chessmst_state::chessmsta) MCFG_DEFAULT_LAYOUT(layout_chessmst) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) MACHINE_CONFIG_END @@ -452,7 +452,7 @@ MACHINE_CONFIG_START(chessmst_state::chessmstdm) MCFG_CLOCK_SIGNAL_HANDLER(WRITELINE(*this, chessmst_state, timer_555_w)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, 1000) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/chexx.cpp b/src/mame/drivers/chexx.cpp index 1fa1d026746..be4262b097e 100644 --- a/src/mame/drivers/chexx.cpp +++ b/src/mame/drivers/chexx.cpp @@ -348,7 +348,7 @@ MACHINE_CONFIG_START(chexx_state::chexx83) MCFG_DEFAULT_LAYOUT(layout_chexx) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DIGITALKER_ADD("digitalker", MAIN_CLOCK) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.16) MACHINE_CONFIG_END diff --git a/src/mame/drivers/chinagat.cpp b/src/mame/drivers/chinagat.cpp index 4d1c5ff9a52..09de62c4273 100644 --- a/src/mame/drivers/chinagat.cpp +++ b/src/mame/drivers/chinagat.cpp @@ -588,7 +588,7 @@ MACHINE_CONFIG_START(chinagat_state::chinagat) MCFG_VIDEO_START_OVERRIDE(chinagat_state,chinagat) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("soundcpu", INPUT_LINE_NMI)) @@ -642,7 +642,7 @@ MACHINE_CONFIG_START(chinagat_state::saiyugoub1) MCFG_VIDEO_START_OVERRIDE(chinagat_state,chinagat) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("soundcpu", INPUT_LINE_NMI)) @@ -689,7 +689,7 @@ MACHINE_CONFIG_START(chinagat_state::saiyugoub2) MCFG_VIDEO_START_OVERRIDE(chinagat_state,chinagat) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("soundcpu", INPUT_LINE_NMI)) diff --git a/src/mame/drivers/chinsan.cpp b/src/mame/drivers/chinsan.cpp index 7f7b438cbcd..80e5a6621b2 100644 --- a/src/mame/drivers/chinsan.cpp +++ b/src/mame/drivers/chinsan.cpp @@ -532,7 +532,7 @@ MACHINE_CONFIG_START(chinsan_state::chinsan) MCFG_PALETTE_ADD_RRRRGGGGBBBB_PROMS("palette", "proms", 256) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2203, XTAL(10'000'000)/8) MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW1")) diff --git a/src/mame/drivers/chqflag.cpp b/src/mame/drivers/chqflag.cpp index eb327faa94b..e38111ac508 100644 --- a/src/mame/drivers/chqflag.cpp +++ b/src/mame/drivers/chqflag.cpp @@ -371,7 +371,8 @@ MACHINE_CONFIG_START(chqflag_state::chqflag) MCFG_K051733_ADD("k051733") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_8_ADD("soundlatch2") diff --git a/src/mame/drivers/chsuper.cpp b/src/mame/drivers/chsuper.cpp index c504a818d7d..db047a5dfe5 100644 --- a/src/mame/drivers/chsuper.cpp +++ b/src/mame/drivers/chsuper.cpp @@ -383,7 +383,7 @@ MACHINE_CONFIG_START(chsuper_state::chsuper) MCFG_RAMDAC_ADD("ramdac", ramdac_map, "palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) // unknown DAC MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) diff --git a/src/mame/drivers/circus.cpp b/src/mame/drivers/circus.cpp index 20b3fa01686..46a627fb700 100644 --- a/src/mame/drivers/circus.cpp +++ b/src/mame/drivers/circus.cpp @@ -305,7 +305,7 @@ MACHINE_CONFIG_START(circus_state::circus) MCFG_PALETTE_ADD_MONOCHROME("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("samples", SAMPLES) MCFG_SAMPLES_CHANNELS(3) @@ -339,7 +339,7 @@ MACHINE_CONFIG_START(circus_state::robotbwl) MCFG_PALETTE_ADD_MONOCHROME("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("samples", SAMPLES) MCFG_SAMPLES_CHANNELS(5) @@ -380,7 +380,7 @@ MACHINE_CONFIG_START(circus_state::crash) MCFG_PALETTE_ADD_MONOCHROME("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("samples", SAMPLES) MCFG_SAMPLES_CHANNELS(1) @@ -413,7 +413,7 @@ MACHINE_CONFIG_START(circus_state::ripcord) MCFG_PALETTE_ADD_MONOCHROME("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("samples", SAMPLES) MCFG_SAMPLES_CHANNELS(4) diff --git a/src/mame/drivers/circusc.cpp b/src/mame/drivers/circusc.cpp index 9970cb079bf..783b3f10cee 100644 --- a/src/mame/drivers/circusc.cpp +++ b/src/mame/drivers/circusc.cpp @@ -381,7 +381,7 @@ MACHINE_CONFIG_START(circusc_state::circusc) MCFG_PALETTE_INIT_OWNER(circusc_state, circusc) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/cischeat.cpp b/src/mame/drivers/cischeat.cpp index bf90456469e..7e75e1c7ce4 100644 --- a/src/mame/drivers/cischeat.cpp +++ b/src/mame/drivers/cischeat.cpp @@ -1971,7 +1971,8 @@ MACHINE_CONFIG_START(cischeat_state::bigrun) MCFG_MEGASYS1_TILEMAP_ADD("scroll2", "palette", 0x3600/2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_16_ADD("soundlatch") MCFG_GENERIC_LATCH_16_ADD("soundlatch2") @@ -2140,7 +2141,8 @@ MACHINE_CONFIG_START(cischeat_state::scudhamm) MCFG_MEGASYS1_TILEMAP_ADD("scroll2", "palette", 0x4e00/2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("oki1", OKIM6295, 2112000, okim6295_device::PIN7_HIGH) // clock frequency & pin 7 not verified MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.5) @@ -2237,7 +2239,8 @@ MACHINE_CONFIG_START(cischeat_state::captflag) MCFG_DEFAULT_LAYOUT(layout_captflag) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("oki1", OKIM6295, 2112000, okim6295_device::PIN7_HIGH) // clock frequency & pin 7 not verified MCFG_DEVICE_ADDRESS_MAP(0, captflag_oki1_map) diff --git a/src/mame/drivers/citycon.cpp b/src/mame/drivers/citycon.cpp index 2b6dc58858d..fba100cc00c 100644 --- a/src/mame/drivers/citycon.cpp +++ b/src/mame/drivers/citycon.cpp @@ -212,7 +212,7 @@ MACHINE_CONFIG_START(citycon_state::citycon) MCFG_PALETTE_FORMAT(RRRRGGGGBBBBxxxx) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_8_ADD("soundlatch2") diff --git a/src/mame/drivers/ckz80.cpp b/src/mame/drivers/ckz80.cpp index 4848af9acf3..e810fe625f2 100644 --- a/src/mame/drivers/ckz80.cpp +++ b/src/mame/drivers/ckz80.cpp @@ -450,7 +450,7 @@ MACHINE_CONFIG_START(ckz80_state::master) MCFG_DEFAULT_LAYOUT(layout_ck_master) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_2BIT_BINARY_WEIGHTED_ONES_COMPLEMENT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT) diff --git a/src/mame/drivers/clcd.cpp b/src/mame/drivers/clcd.cpp index 2a3a0df5e3b..706b43acaab 100644 --- a/src/mame/drivers/clcd.cpp +++ b/src/mame/drivers/clcd.cpp @@ -819,7 +819,7 @@ MACHINE_CONFIG_START(clcd_state::clcd) MCFG_PALETTE_INIT_OWNER(clcd_state, clcd) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mame/drivers/cliffhgr.cpp b/src/mame/drivers/cliffhgr.cpp index 176a8bb5486..31013c87866 100644 --- a/src/mame/drivers/cliffhgr.cpp +++ b/src/mame/drivers/cliffhgr.cpp @@ -701,7 +701,8 @@ MACHINE_CONFIG_START(cliffhgr_state::cliffhgr) MCFG_LASERDISC_SCREEN_ADD_NTSC("screen", "laserdisc") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_MODIFY("laserdisc") MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) diff --git a/src/mame/drivers/cloak.cpp b/src/mame/drivers/cloak.cpp index 6aa2a9e4956..3660e23546e 100644 --- a/src/mame/drivers/cloak.cpp +++ b/src/mame/drivers/cloak.cpp @@ -352,7 +352,7 @@ MACHINE_CONFIG_START(cloak_state::cloak) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); /* more low pass filters ==> DISCRETE processing */ MCFG_DEVICE_ADD("pokey1", POKEY, XTAL(10'000'000)/8) /* Accurate to recording */ diff --git a/src/mame/drivers/cloud9.cpp b/src/mame/drivers/cloud9.cpp index f3314cffd0d..5230c825f2c 100644 --- a/src/mame/drivers/cloud9.cpp +++ b/src/mame/drivers/cloud9.cpp @@ -436,7 +436,7 @@ MACHINE_CONFIG_START(cloud9_state::cloud9) MCFG_DEVICE_ADD("videolatch", LS259, 0) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("pokey1", POKEY, MASTER_CLOCK/8) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/clowndwn.cpp b/src/mame/drivers/clowndwn.cpp index 9c0f72150de..0a6e0569ba7 100644 --- a/src/mame/drivers/clowndwn.cpp +++ b/src/mame/drivers/clowndwn.cpp @@ -69,7 +69,7 @@ MACHINE_CONFIG_START(clowndwn_state::clowndwn) MCFG_DEVICE_ADD("pia4", PIA6821, 0) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MACHINE_CONFIG_END diff --git a/src/mame/drivers/clpoker.cpp b/src/mame/drivers/clpoker.cpp index 15a8627f8f9..b386d138b7b 100644 --- a/src/mame/drivers/clpoker.cpp +++ b/src/mame/drivers/clpoker.cpp @@ -288,7 +288,7 @@ MACHINE_CONFIG_START(clpoker_state::clpoker) MCFG_GFXDECODE_ADD("gfxdecode", "palette", clpoker) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, XTAL(12'000'000) / 8) // AY38910A/P, divider not verified MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW1")) MCFG_AY8910_PORT_B_READ_CB(IOPORT("DSW2")) diff --git a/src/mame/drivers/clshroad.cpp b/src/mame/drivers/clshroad.cpp index 2ab64bbef04..00e658273f9 100644 --- a/src/mame/drivers/clshroad.cpp +++ b/src/mame/drivers/clshroad.cpp @@ -306,7 +306,7 @@ MACHINE_CONFIG_START(clshroad_state::firebatl) MCFG_VIDEO_START_OVERRIDE(clshroad_state,firebatl) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("custom", WIPING_CUSTOM, 96000) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -346,7 +346,7 @@ MACHINE_CONFIG_START(clshroad_state::clshroad) MCFG_VIDEO_START_OVERRIDE(clshroad_state,clshroad) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("custom", WIPING_CUSTOM, 96000) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/cmi.cpp b/src/mame/drivers/cmi.cpp index 0f1ced447cb..fd4aa9fb8e3 100644 --- a/src/mame/drivers/cmi.cpp +++ b/src/mame/drivers/cmi.cpp @@ -2325,7 +2325,7 @@ MACHINE_CONFIG_START(cmi_state::cmi2x) MCFG_PIA_READPA_HANDLER(READ8(*this, cmi_state, cmi10_u21_a_r)) MCFG_PIA_CB2_HANDLER(WRITELINE(*this, cmi_state, cmi10_u21_cb2_w)) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); // Channel cards MCFG_DEVICE_ADD("cmi01a_0", CMI01A_CHANNEL_CARD, 0) diff --git a/src/mame/drivers/cmmb.cpp b/src/mame/drivers/cmmb.cpp index 60e47bbf2a4..63d1ccda631 100644 --- a/src/mame/drivers/cmmb.cpp +++ b/src/mame/drivers/cmmb.cpp @@ -428,7 +428,7 @@ MACHINE_CONFIG_START(cmmb_state::cmmb) MCFG_PALETTE_FORMAT(RRRGGGBB_inverted) /* sound hardware */ -// MCFG_SPEAKER_STANDARD_MONO("mono") +// SPEAKER(config, "mono").front_center(); // MCFG_DEVICE_ADD("aysnd", AY8910, 8000000/4) // MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30) MACHINE_CONFIG_END diff --git a/src/mame/drivers/cninja.cpp b/src/mame/drivers/cninja.cpp index 380773ba46b..e80152e93a1 100644 --- a/src/mame/drivers/cninja.cpp +++ b/src/mame/drivers/cninja.cpp @@ -893,7 +893,7 @@ MACHINE_CONFIG_START(cninja_state::cninja) MCFG_DECO146_SET_USE_MAGIC_ADDRESS_XOR /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ym1", YM2203, XTAL(32'220'000) / 8) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.60) @@ -983,7 +983,7 @@ MACHINE_CONFIG_START(cninja_state::stoneage) MCFG_DECO146_SET_USE_MAGIC_ADDRESS_XOR /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2151, XTAL(32'220'000) / 9) MCFG_YM2151_IRQ_HANDLER(INPUTLINE("audiocpu", INPUT_LINE_IRQ0)) @@ -1069,7 +1069,7 @@ MACHINE_CONFIG_START(cninja_state::cninjabl) MCFG_DECO16IC_GFXDECODE("gfxdecode") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) @@ -1152,7 +1152,7 @@ MACHINE_CONFIG_START(cninja_state::edrandy) MCFG_DECO146_SOUNDLATCH_IRQ_CB(INPUTLINE("audiocpu", 0)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ym1", YM2203, XTAL(32'220'000) / 8) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.60) @@ -1245,7 +1245,8 @@ MACHINE_CONFIG_START(cninja_state::robocop2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ym1", YM2203, XTAL(32'220'000) / 8) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.60) @@ -1340,7 +1341,8 @@ MACHINE_CONFIG_START(cninja_state::mutantf) MCFG_DECO146_SOUNDLATCH_IRQ_CB(INPUTLINE("audiocpu", 0)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2151, XTAL(32'220'000) / 9) MCFG_YM2151_IRQ_HANDLER(INPUTLINE("audiocpu", 1)) // IRQ2 diff --git a/src/mame/drivers/cntsteer.cpp b/src/mame/drivers/cntsteer.cpp index 7f8be3c5e4d..62b6cb0843f 100644 --- a/src/mame/drivers/cntsteer.cpp +++ b/src/mame/drivers/cntsteer.cpp @@ -956,7 +956,7 @@ MACHINE_CONFIG_START(cntsteer_state::cntsteer) MCFG_VIDEO_START_OVERRIDE(cntsteer_state,cntsteer) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -1008,7 +1008,7 @@ MACHINE_CONFIG_START(cntsteer_state::zerotrgt) MCFG_VIDEO_START_OVERRIDE(cntsteer_state,zerotrgt) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/cobra.cpp b/src/mame/drivers/cobra.cpp index fc7159ccb6f..26644d6ccdf 100644 --- a/src/mame/drivers/cobra.cpp +++ b/src/mame/drivers/cobra.cpp @@ -3314,7 +3314,8 @@ MACHINE_CONFIG_START(cobra_state::cobra) MCFG_SCREEN_UPDATE_DRIVER(cobra_state, screen_update_cobra) MCFG_PALETTE_ADD("palette", 65536) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("rfsnd", RF5C400, XTAL(16'934'400)) MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) diff --git a/src/mame/drivers/coco12.cpp b/src/mame/drivers/coco12.cpp index 5b08ad09267..b92724dc897 100644 --- a/src/mame/drivers/coco12.cpp +++ b/src/mame/drivers/coco12.cpp @@ -382,7 +382,7 @@ void t4426_cart(device_slot_interface &device) //------------------------------------------------- MACHINE_CONFIG_START(coco_state::coco_sound) - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); // 6-bit D/A: R10-15 = 10K, 20K, 40.2K, 80.6K, 162K, 324K (according to parts list); output also controls joysticks MCFG_DEVICE_ADD("dac", DAC_6BIT_BINARY_WEIGHTED, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.125) diff --git a/src/mame/drivers/cocoloco.cpp b/src/mame/drivers/cocoloco.cpp index 6ab128cf548..71ca092bda9 100644 --- a/src/mame/drivers/cocoloco.cpp +++ b/src/mame/drivers/cocoloco.cpp @@ -538,7 +538,7 @@ MACHINE_CONFIG_START(cocoloco_state::cocoloco) MCFG_PALETTE_INIT_OWNER(cocoloco_state, cocoloco) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay8910", AY8910, SND_CLOCK) /* confirmed */ MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW1")) MCFG_AY8910_PORT_B_READ_CB(IOPORT("DSW2")) diff --git a/src/mame/drivers/coinmstr.cpp b/src/mame/drivers/coinmstr.cpp index b5be078e1c0..00ef46bb959 100644 --- a/src/mame/drivers/coinmstr.cpp +++ b/src/mame/drivers/coinmstr.cpp @@ -1288,7 +1288,7 @@ MACHINE_CONFIG_START(coinmstr_state::coinmstr) MCFG_MC6845_CHAR_WIDTH(8) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, SND_CLOCK) MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW1")) diff --git a/src/mame/drivers/coinmvga.cpp b/src/mame/drivers/coinmvga.cpp index 82f38ad57bc..f7c69b41e90 100644 --- a/src/mame/drivers/coinmvga.cpp +++ b/src/mame/drivers/coinmvga.cpp @@ -664,7 +664,8 @@ MACHINE_CONFIG_START(coinmvga_state::coinmvga) MCFG_RAMDAC_ADD("ramdac2", ramdac2_map, "palette2") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymz", YMZ280B, SND_CLOCK) MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) diff --git a/src/mame/drivers/coleco.cpp b/src/mame/drivers/coleco.cpp index be4dbdda98b..9c1146beaa9 100644 --- a/src/mame/drivers/coleco.cpp +++ b/src/mame/drivers/coleco.cpp @@ -389,7 +389,7 @@ MACHINE_CONFIG_START(coleco_state::coleco) MCFG_SCREEN_UPDATE_DEVICE( "tms9928a", tms9928a_device, screen_update ) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("sn76489a", SN76489A, XTAL(7'159'090)/2) // 3.579545 MHz MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) // TODO: enable when Z80 has better WAIT pin emulation, this currently breaks pitfall2 for example diff --git a/src/mame/drivers/combatsc.cpp b/src/mame/drivers/combatsc.cpp index 00bef90de57..b38312d67c5 100644 --- a/src/mame/drivers/combatsc.cpp +++ b/src/mame/drivers/combatsc.cpp @@ -736,7 +736,7 @@ MACHINE_CONFIG_START(combatsc_state::combatsc) MCFG_K007121_PALETTE("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -781,7 +781,7 @@ MACHINE_CONFIG_START(combatsc_state::combatscb) MCFG_PALETTE_INIT_OWNER(combatsc_state,combatscb) MCFG_VIDEO_START_OVERRIDE(combatsc_state,combatscb) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) diff --git a/src/mame/drivers/commando.cpp b/src/mame/drivers/commando.cpp index 53e31cf5637..e5653ed9f9b 100644 --- a/src/mame/drivers/commando.cpp +++ b/src/mame/drivers/commando.cpp @@ -281,7 +281,7 @@ MACHINE_CONFIG_START(commando_state::commando) MCFG_DEVICE_ADD("spriteram", BUFFERED_SPRITERAM8) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/compgolf.cpp b/src/mame/drivers/compgolf.cpp index 7bfb2b42d0e..50ffb93bf21 100644 --- a/src/mame/drivers/compgolf.cpp +++ b/src/mame/drivers/compgolf.cpp @@ -243,7 +243,7 @@ MACHINE_CONFIG_START(compgolf_state::compgolf) MCFG_GFXDECODE_ADD("gfxdecode", "palette", compgolf) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2203, 1500000) MCFG_YM2203_IRQ_HANDLER(INPUTLINE("maincpu", 0)) diff --git a/src/mame/drivers/concept.cpp b/src/mame/drivers/concept.cpp index c1b89ac233b..f49841ff1f7 100644 --- a/src/mame/drivers/concept.cpp +++ b/src/mame/drivers/concept.cpp @@ -230,7 +230,7 @@ MACHINE_CONFIG_START(concept_state::concept) MCFG_PALETTE_ADD_MONOCHROME("palette") /* sound */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD(SPEAKER_TAG, SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) diff --git a/src/mame/drivers/contra.cpp b/src/mame/drivers/contra.cpp index 9fe3295a2dd..9df7a2fae65 100644 --- a/src/mame/drivers/contra.cpp +++ b/src/mame/drivers/contra.cpp @@ -242,7 +242,8 @@ MACHINE_CONFIG_START(contra_state::contra) MCFG_K007121_PALETTE("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/coolpool.cpp b/src/mame/drivers/coolpool.cpp index 0ebaca2746b..da0714c5d8b 100644 --- a/src/mame/drivers/coolpool.cpp +++ b/src/mame/drivers/coolpool.cpp @@ -746,7 +746,7 @@ MACHINE_CONFIG_START(coolpool_state::amerdart) MCFG_SCREEN_UPDATE_DEVICE("maincpu", tms34010_device, tms340x0_rgb32) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_12BIT_R2R_TWOS_COMPLEMENT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 1.0) // unknown DAC MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT) @@ -793,7 +793,7 @@ MACHINE_CONFIG_START(coolpool_state::coolpool) MCFG_SCREEN_UPDATE_DEVICE("maincpu", tms34010_device, tms340x0_rgb32) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_12BIT_R2R_TWOS_COMPLEMENT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 1.0) // unknown DAC MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT) diff --git a/src/mame/drivers/coolridr.cpp b/src/mame/drivers/coolridr.cpp index b6cdb736f35..716b38c8aa9 100644 --- a/src/mame/drivers/coolridr.cpp +++ b/src/mame/drivers/coolridr.cpp @@ -3309,7 +3309,8 @@ MACHINE_CONFIG_START(coolridr_state::coolridr) MCFG_DEFAULT_LAYOUT(layout_dualhsxs) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("scsp1", SCSP) MCFG_SCSP_IRQ_CB(WRITE8(*this, coolridr_state, scsp_irq)) MCFG_SCSP_MAIN_IRQ_CB(WRITELINE(*this, coolridr_state, scsp1_to_sh1_irq)) diff --git a/src/mame/drivers/cop01.cpp b/src/mame/drivers/cop01.cpp index b91d5306aef..0ef5388c035 100644 --- a/src/mame/drivers/cop01.cpp +++ b/src/mame/drivers/cop01.cpp @@ -474,7 +474,7 @@ MACHINE_CONFIG_START(cop01_state::cop01) MCFG_PALETTE_INIT_OWNER(cop01_state, cop01) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -518,7 +518,7 @@ MACHINE_CONFIG_START(mightguy_state::mightguy) MCFG_PALETTE_INIT_OWNER(cop01_state, cop01) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/cops.cpp b/src/mame/drivers/cops.cpp index 6ad614944d7..fcf3c908b9d 100644 --- a/src/mame/drivers/cops.cpp +++ b/src/mame/drivers/cops.cpp @@ -945,7 +945,7 @@ MACHINE_CONFIG_START(cops_state::cops) /* acia (really a 65C52)*/ /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); /* TODO: Verify clock */ MCFG_DEVICE_ADD("snsnd", SN76489, MAIN_CLOCK/2) @@ -975,7 +975,7 @@ MACHINE_CONFIG_START(cops_state::revlatns) /* acia (really a 65C52)*/ /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); /* TODO: Verify clock */ MCFG_DEVICE_ADD("snsnd", SN76489, MAIN_CLOCK/2) diff --git a/src/mame/drivers/corona.cpp b/src/mame/drivers/corona.cpp index c1ad249ecc6..e0dd3ac6f83 100644 --- a/src/mame/drivers/corona.cpp +++ b/src/mame/drivers/corona.cpp @@ -1406,7 +1406,7 @@ MACHINE_CONFIG_START(corona_state::winner81) MCFG_PALETTE_ADD("palette", 0x100) MCFG_PALETTE_INIT_OWNER(corona_state, corona) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -1440,7 +1440,7 @@ MACHINE_CONFIG_START(corona_state::winner82) MCFG_PALETTE_ADD("palette", 0x100) MCFG_PALETTE_INIT_OWNER(corona_state, corona) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -1475,7 +1475,7 @@ MACHINE_CONFIG_START(corona_state::re800) MCFG_PALETTE_ADD("palette", 0x100) MCFG_PALETTE_INIT_OWNER(corona_state, corona) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -1509,7 +1509,7 @@ MACHINE_CONFIG_START(corona_state::rcirulet) MCFG_PALETTE_ADD("palette", 0x100) MCFG_PALETTE_INIT_OWNER(corona_state, corona) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -1544,7 +1544,7 @@ MACHINE_CONFIG_START(corona_state::luckyrlt) MCFG_PALETTE_ADD("palette", 0x100) MCFG_PALETTE_INIT_OWNER(corona_state, corona) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/cortex.cpp b/src/mame/drivers/cortex.cpp index f630e9eff91..499c4cdf071 100644 --- a/src/mame/drivers/cortex.cpp +++ b/src/mame/drivers/cortex.cpp @@ -210,7 +210,7 @@ MACHINE_CONFIG_START(cortex_state::cortex) //MCFG_DEVICE_ADD("uart2", TMS9902, XTAL(12'000'000) / 4) /* Sound */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, 950) // guess MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.05) MACHINE_CONFIG_END diff --git a/src/mame/drivers/cosmic.cpp b/src/mame/drivers/cosmic.cpp index a3c52504b15..ff1492c975d 100644 --- a/src/mame/drivers/cosmic.cpp +++ b/src/mame/drivers/cosmic.cpp @@ -1051,7 +1051,7 @@ MACHINE_CONFIG_START(cosmic_state::panic) MCFG_SCREEN_UPDATE_DRIVER(cosmic_state, screen_update_panic) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("samples", SAMPLES) MCFG_SAMPLES_CHANNELS(9) @@ -1081,7 +1081,7 @@ MACHINE_CONFIG_START(cosmic_state::cosmica) MCFG_SCREEN_UPDATE_DRIVER(cosmic_state, screen_update_cosmica) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("samples", SAMPLES) MCFG_SAMPLES_CHANNELS(13) @@ -1113,7 +1113,7 @@ MACHINE_CONFIG_START(cosmic_state::cosmicg) MCFG_PALETTE_INIT_OWNER(cosmic_state,cosmicg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("samples", SAMPLES) MCFG_SAMPLES_CHANNELS(9) @@ -1144,7 +1144,7 @@ MACHINE_CONFIG_START(cosmic_state::magspot) MCFG_SCREEN_UPDATE_DRIVER(cosmic_state, screen_update_magspot) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) @@ -1180,7 +1180,7 @@ MACHINE_CONFIG_START(cosmic_state::nomnlnd) MCFG_SCREEN_UPDATE_DRIVER(cosmic_state, screen_update_nomnlnd) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) diff --git a/src/mame/drivers/cosmicos.cpp b/src/mame/drivers/cosmicos.cpp index 3dfb82e1aba..87830a76156 100644 --- a/src/mame/drivers/cosmicos.cpp +++ b/src/mame/drivers/cosmicos.cpp @@ -531,7 +531,7 @@ MACHINE_CONFIG_START(cosmicos_state::cosmicos) MCFG_SCREEN_UPDATE_DEVICE(CDP1864_TAG, cdp1864_device, screen_update) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mame/drivers/cps1.cpp b/src/mame/drivers/cps1.cpp index 96fd6dd992d..fd1de265db9 100644 --- a/src/mame/drivers/cps1.cpp +++ b/src/mame/drivers/cps1.cpp @@ -3379,7 +3379,7 @@ MACHINE_CONFIG_START(cps_state::cps1_10MHz) MCFG_VIDEO_START_OVERRIDE(cps_state, cps1) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_8_ADD("soundlatch2") @@ -3449,7 +3449,8 @@ MACHINE_CONFIG_START(cps_state::qsound) /* sound hardware */ MCFG_DEVICE_REMOVE("mono") - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_REMOVE("soundlatch") MCFG_DEVICE_REMOVE("soundlatch2") diff --git a/src/mame/drivers/cps2.cpp b/src/mame/drivers/cps2.cpp index 84168030914..1b90a479361 100644 --- a/src/mame/drivers/cps2.cpp +++ b/src/mame/drivers/cps2.cpp @@ -1334,7 +1334,8 @@ MACHINE_CONFIG_START(cps_state::cps2) MCFG_VIDEO_START_OVERRIDE(cps_state, cps2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("qsound", QSOUND) MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) diff --git a/src/mame/drivers/cps3.cpp b/src/mame/drivers/cps3.cpp index 471f641e47e..2f862842ed4 100644 --- a/src/mame/drivers/cps3.cpp +++ b/src/mame/drivers/cps3.cpp @@ -2557,7 +2557,8 @@ MACHINE_CONFIG_START(cps3_state::cps3) MCFG_GFXDECODE_ADD("gfxdecode", "palette", empty) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("cps3sound", CPS3, MASTER_CLOCK / 3) MCFG_SOUND_ROUTE(1, "lspeaker", 1.0) diff --git a/src/mame/drivers/craft.cpp b/src/mame/drivers/craft.cpp index 330922f5ab7..3c312f5bb52 100644 --- a/src/mame/drivers/craft.cpp +++ b/src/mame/drivers/craft.cpp @@ -263,7 +263,7 @@ MACHINE_CONFIG_START(craft_state::craft) MCFG_PALETTE_ADD("palette", 0x1000) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("avr8") + SPEAKER(config, "avr8").front_center(); MCFG_DEVICE_ADD("dac", DAC_6BIT_R2R, 0) MCFG_SOUND_ROUTE(0, "avr8", 0.25) // pd1/pd2/pd4/pd5/pd6/pd7 + 2k(x7) + 1k(x5) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT) diff --git a/src/mame/drivers/crgolf.cpp b/src/mame/drivers/crgolf.cpp index 6d647984ceb..f53156f17a3 100644 --- a/src/mame/drivers/crgolf.cpp +++ b/src/mame/drivers/crgolf.cpp @@ -511,7 +511,7 @@ MACHINE_CONFIG_START(crgolf_state::crgolf) MCFG_SCREEN_PALETTE("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, MASTER_CLOCK/3/2/2) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) MACHINE_CONFIG_END diff --git a/src/mame/drivers/crimfght.cpp b/src/mame/drivers/crimfght.cpp index 85644f85288..597f15538e6 100644 --- a/src/mame/drivers/crimfght.cpp +++ b/src/mame/drivers/crimfght.cpp @@ -343,7 +343,8 @@ MACHINE_CONFIG_START(crimfght_state::crimfght) MCFG_K051960_IRQ_HANDLER(INPUTLINE("maincpu", KONAMI_IRQ_LINE)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/crospang.cpp b/src/mame/drivers/crospang.cpp index cc2c844c2f3..5143bf618d5 100644 --- a/src/mame/drivers/crospang.cpp +++ b/src/mame/drivers/crospang.cpp @@ -375,7 +375,7 @@ MACHINE_CONFIG_START(crospang_state::crospang) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/crshrace.cpp b/src/mame/drivers/crshrace.cpp index a591e5274a6..c202a1dcc76 100644 --- a/src/mame/drivers/crshrace.cpp +++ b/src/mame/drivers/crshrace.cpp @@ -441,7 +441,8 @@ MACHINE_CONFIG_START(crshrace_state::crshrace) MCFG_K053936_OFFSETS(-48, -21) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) diff --git a/src/mame/drivers/crvision.cpp b/src/mame/drivers/crvision.cpp index 2c196bd5e15..9896d32d214 100644 --- a/src/mame/drivers/crvision.cpp +++ b/src/mame/drivers/crvision.cpp @@ -763,7 +763,7 @@ MACHINE_CONFIG_START(crvision_state::creativision) MCFG_OUTPUT_LATCH_BIT4_HANDLER(WRITELINE(CENTRONICS_TAG, centronics_device, write_strobe)) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD(SN76489_TAG, SN76489A, XTAL(2'000'000)) MCFG_SN76496_READY_HANDLER(WRITELINE(PIA6821_TAG, pia6821_device, cb1_w)) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) @@ -846,7 +846,7 @@ MACHINE_CONFIG_START(laser2001_state::lasr2001) MCFG_SCREEN_UPDATE_DEVICE( TMS9929_TAG, tms9929a_device, screen_update ) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD(SN76489_TAG, SN76489A, XTAL(17'734'470)/9) MCFG_SN76496_READY_HANDLER(WRITELINE(*this, laser2001_state, write_psg_ready)) diff --git a/src/mame/drivers/crystal.cpp b/src/mame/drivers/crystal.cpp index 2aa0e1a617a..dac2c76f3ba 100644 --- a/src/mame/drivers/crystal.cpp +++ b/src/mame/drivers/crystal.cpp @@ -1510,7 +1510,8 @@ MACHINE_CONFIG_START(crystal_state::crystal) MCFG_DS1302_ADD("rtc", XTAL(32'768)) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_SOUND_VRENDER0_ADD("vrender", 0) MCFG_VR0_REGBASE(0x04800000) diff --git a/src/mame/drivers/ct486.cpp b/src/mame/drivers/ct486.cpp index 9f891f78c05..09f765077a8 100644 --- a/src/mame/drivers/ct486.cpp +++ b/src/mame/drivers/ct486.cpp @@ -176,7 +176,7 @@ MACHINE_CONFIG_START(ct486_state::ct486) MCFG_DEVICE_ADD("isa5", ISA16_SLOT, 0, "isabus", pc_isa16_cards, nullptr, false) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/cubeqst.cpp b/src/mame/drivers/cubeqst.cpp index 4fb6719375b..2f88e5972da 100644 --- a/src/mame/drivers/cubeqst.cpp +++ b/src/mame/drivers/cubeqst.cpp @@ -553,7 +553,8 @@ MACHINE_CONFIG_START(cubeqst_state::cubeqst) MCFG_LASERDISC_SCREEN_ADD_NTSC("screen", "laserdisc") MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, cubeqst_state, vblank_irq)) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_MODIFY("laserdisc") MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) diff --git a/src/mame/drivers/cubo.cpp b/src/mame/drivers/cubo.cpp index 436730b9009..c21d53a9319 100644 --- a/src/mame/drivers/cubo.cpp +++ b/src/mame/drivers/cubo.cpp @@ -1064,7 +1064,8 @@ MACHINE_CONFIG_START(cubo_state::cubo) MCFG_VIDEO_START_OVERRIDE(amiga_state, amiga_aga) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("amiga", PAULA_8364, amiga_state::CLK_C1_PAL) MCFG_SOUND_ROUTE(0, "lspeaker", 0.25) diff --git a/src/mame/drivers/cultures.cpp b/src/mame/drivers/cultures.cpp index 89f1888006c..c95354b61ee 100644 --- a/src/mame/drivers/cultures.cpp +++ b/src/mame/drivers/cultures.cpp @@ -433,7 +433,7 @@ MACHINE_CONFIG_START(cultures_state::cultures) MCFG_PALETTE_FORMAT(xRGBRRRRGGGGBBBB_bit0) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, MCLK/8, okim6295_device::PIN7_HIGH) // clock frequency & pin 7 not verified MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30) diff --git a/src/mame/drivers/cupidon.cpp b/src/mame/drivers/cupidon.cpp index f245c0e8217..94978fa2435 100644 --- a/src/mame/drivers/cupidon.cpp +++ b/src/mame/drivers/cupidon.cpp @@ -116,7 +116,8 @@ MACHINE_CONFIG_START(cupidon_state::cupidon) MCFG_PALETTE_ADD("palette", 0x10000) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); /* unknown sound, probably DAC driven using 68340 DMA */ MACHINE_CONFIG_END diff --git a/src/mame/drivers/cv1k.cpp b/src/mame/drivers/cv1k.cpp index 5f3c286cce6..5213bae5be9 100644 --- a/src/mame/drivers/cv1k.cpp +++ b/src/mame/drivers/cv1k.cpp @@ -487,7 +487,7 @@ MACHINE_CONFIG_START(cv1k_state::cv1k) MCFG_PALETTE_ADD("palette", 0x10000) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymz770", YMZ770, 16.384_MHz_XTAL) MCFG_SOUND_ROUTE(1, "mono", 1.0) // only Right output used, Left is not connected diff --git a/src/mame/drivers/cvs.cpp b/src/mame/drivers/cvs.cpp index 1e2fffd43e1..6b523fe3f5e 100644 --- a/src/mame/drivers/cvs.cpp +++ b/src/mame/drivers/cvs.cpp @@ -1015,7 +1015,7 @@ MACHINE_CONFIG_START(cvs_state::cvs) MCFG_S2636_OFFSETS(CVS_S2636_Y_OFFSET, CVS_S2636_X_OFFSET) /* audio hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/cxgz80.cpp b/src/mame/drivers/cxgz80.cpp index 9c587a1f3a7..087f70fd002 100644 --- a/src/mame/drivers/cxgz80.cpp +++ b/src/mame/drivers/cxgz80.cpp @@ -410,7 +410,7 @@ MACHINE_CONFIG_START(cxgz80_state::ch2001) MCFG_DEFAULT_LAYOUT(layout_cxg_ch2001) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) diff --git a/src/mame/drivers/cyberbal.cpp b/src/mame/drivers/cyberbal.cpp index b50133946ad..50d27e3a7ae 100644 --- a/src/mame/drivers/cyberbal.cpp +++ b/src/mame/drivers/cyberbal.cpp @@ -453,7 +453,8 @@ MACHINE_CONFIG_START(cyberbal_state::cyberbal) /* sound hardware */ MCFG_ATARI_SOUND_COMM_ADD("soundcomm", "audiocpu", INPUTLINE("maincpu", M68K_IRQ_1)) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2151, ATARI_CLOCK_14MHz/4) MCFG_YM2151_IRQ_HANDLER(WRITELINE("soundcomm", atari_sound_comm_device, ym2151_irq_gen)) @@ -509,7 +510,7 @@ MACHINE_CONFIG_START(cyberbal2p_state::cyberbal2p) MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, cyberbal2p_state, video_int_write_line)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_ATARI_JSA_II_ADD("jsa", INPUTLINE("maincpu", M68K_IRQ_3)) MCFG_ATARI_JSA_TEST_PORT("IN2", 15) diff --git a/src/mame/drivers/cybertnk.cpp b/src/mame/drivers/cybertnk.cpp index 2be8fef78b9..c88f8499430 100644 --- a/src/mame/drivers/cybertnk.cpp +++ b/src/mame/drivers/cybertnk.cpp @@ -876,7 +876,8 @@ MACHINE_CONFIG_START(cybertnk_state::cybertnk) MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/cybiko.cpp b/src/mame/drivers/cybiko.cpp index 0695dbc0d96..7248d810b84 100644 --- a/src/mame/drivers/cybiko.cpp +++ b/src/mame/drivers/cybiko.cpp @@ -411,7 +411,7 @@ MACHINE_CONFIG_START(cybiko_state::cybikov1) MCFG_HD66421_ADD("hd66421") MCFG_DEFAULT_LAYOUT(layout_lcd) // sound - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) // machine diff --git a/src/mame/drivers/cybstorm.cpp b/src/mame/drivers/cybstorm.cpp index 16eceeb4669..a84805a2620 100644 --- a/src/mame/drivers/cybstorm.cpp +++ b/src/mame/drivers/cybstorm.cpp @@ -264,7 +264,8 @@ MACHINE_CONFIG_START(cybstorm_state::cybstorm) round2(config); /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_ATARI_JSA_IIIS_ADD("jsa", INPUTLINE("maincpu", M68K_IRQ_6)) MCFG_ATARI_JSA_TEST_PORT("9F0010", 22) diff --git a/src/mame/drivers/cyclemb.cpp b/src/mame/drivers/cyclemb.cpp index 6512517741f..0c5496d1c70 100644 --- a/src/mame/drivers/cyclemb.cpp +++ b/src/mame/drivers/cyclemb.cpp @@ -991,7 +991,7 @@ MACHINE_CONFIG_START(cyclemb_state::cyclemb) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_8_ADD("soundlatch2") diff --git a/src/mame/drivers/d6800.cpp b/src/mame/drivers/d6800.cpp index 0168d152092..b511e13f820 100644 --- a/src/mame/drivers/d6800.cpp +++ b/src/mame/drivers/d6800.cpp @@ -401,7 +401,7 @@ MACHINE_CONFIG_START(d6800_state::d6800) MCFG_PALETTE_ADD_MONOCHROME("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) MCFG_DEVICE_ADD("beeper", BEEP, 1200) diff --git a/src/mame/drivers/d9final.cpp b/src/mame/drivers/d9final.cpp index 594947f73c1..2981201412b 100644 --- a/src/mame/drivers/d9final.cpp +++ b/src/mame/drivers/d9final.cpp @@ -320,7 +320,7 @@ MACHINE_CONFIG_START(d9final_state::d9final) MCFG_PALETTE_ADD_INIT_BLACK("palette", 0x400) MCFG_PALETTE_FORMAT(xxxxBBBBRRRRGGGG) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2413, XTAL(3'579'545)) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.5) diff --git a/src/mame/drivers/dacholer.cpp b/src/mame/drivers/dacholer.cpp index 07fdec907cb..56bb857648a 100644 --- a/src/mame/drivers/dacholer.cpp +++ b/src/mame/drivers/dacholer.cpp @@ -686,7 +686,7 @@ MACHINE_CONFIG_START(dacholer_state::dacholer) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) diff --git a/src/mame/drivers/dai.cpp b/src/mame/drivers/dai.cpp index bf19dc5d4f6..13efcd72d9b 100644 --- a/src/mame/drivers/dai.cpp +++ b/src/mame/drivers/dai.cpp @@ -220,10 +220,11 @@ MACHINE_CONFIG_START(dai_state::dai) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("custom", DAI_SOUND) MCFG_SOUND_ROUTE(0, "lspeaker", 0.50) MCFG_SOUND_ROUTE(1, "rspeaker", 0.50) diff --git a/src/mame/drivers/dai3wksi.cpp b/src/mame/drivers/dai3wksi.cpp index f00b836ccbd..ba1c4bb18fb 100644 --- a/src/mame/drivers/dai3wksi.cpp +++ b/src/mame/drivers/dai3wksi.cpp @@ -420,7 +420,7 @@ MACHINE_CONFIG_START(dai3wksi_state::dai3wksi) MCFG_PALETTE_ADD_3BIT_BRG("palette") - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); #if (USE_SAMPLES) MCFG_DEVICE_ADD("samples", SAMPLES) diff --git a/src/mame/drivers/dambustr.cpp b/src/mame/drivers/dambustr.cpp index d780f21717d..783bdae6fc2 100644 --- a/src/mame/drivers/dambustr.cpp +++ b/src/mame/drivers/dambustr.cpp @@ -286,7 +286,7 @@ MACHINE_CONFIG_START(dambustr_state::dambustr) MCFG_VIDEO_START_OVERRIDE(dambustr_state,dambustr) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); galaxian_audio(config); MACHINE_CONFIG_END diff --git a/src/mame/drivers/darius.cpp b/src/mame/drivers/darius.cpp index ae9722918eb..79c0a32bd49 100644 --- a/src/mame/drivers/darius.cpp +++ b/src/mame/drivers/darius.cpp @@ -764,7 +764,8 @@ MACHINE_CONFIG_START(darius_state::darius) MCFG_PC080SN_GFXDECODE("gfxdecode") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ym1", YM2203, XTAL(8'000'000)/2) /* 4 MHz */ MCFG_YM2203_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) /* assumes Z80 sandwiched between 68Ks */ diff --git a/src/mame/drivers/darkmist.cpp b/src/mame/drivers/darkmist.cpp index 15bb5c240b4..dbd42bb70bb 100644 --- a/src/mame/drivers/darkmist.cpp +++ b/src/mame/drivers/darkmist.cpp @@ -264,7 +264,7 @@ MACHINE_CONFIG_START(darkmist_state::darkmist) MCFG_PALETTE_INIT_OWNER(darkmist_state, darkmist) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2151, 14318180/4) /* 3.579545 MHz */ MCFG_YM2151_IRQ_HANDLER(WRITELINE("t5182", t5182_device, ym2151_irq_handler)) diff --git a/src/mame/drivers/darkseal.cpp b/src/mame/drivers/darkseal.cpp index 53549fee56f..8d3843a8a6a 100644 --- a/src/mame/drivers/darkseal.cpp +++ b/src/mame/drivers/darkseal.cpp @@ -265,7 +265,7 @@ MACHINE_CONFIG_START(darkseal_state::darkseal) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", 0)) diff --git a/src/mame/drivers/daruma.cpp b/src/mame/drivers/daruma.cpp index 3c418873545..cc2aa3f547a 100644 --- a/src/mame/drivers/daruma.cpp +++ b/src/mame/drivers/daruma.cpp @@ -124,7 +124,7 @@ MACHINE_CONFIG_START(daruma_state::daruma) // TODO: ports /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(0, "mono", 1.00) diff --git a/src/mame/drivers/dassault.cpp b/src/mame/drivers/dassault.cpp index 3d6d77adfb1..a42dd7227ae 100644 --- a/src/mame/drivers/dassault.cpp +++ b/src/mame/drivers/dassault.cpp @@ -603,7 +603,8 @@ MACHINE_CONFIG_START(dassault_state::dassault) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", 0)) // IRQ1 diff --git a/src/mame/drivers/dblcrown.cpp b/src/mame/drivers/dblcrown.cpp index 9d7764ca46c..3c18c3f4aa8 100644 --- a/src/mame/drivers/dblcrown.cpp +++ b/src/mame/drivers/dblcrown.cpp @@ -632,7 +632,7 @@ MACHINE_CONFIG_START(dblcrown_state::dblcrown) MCFG_I8255_OUT_PORTC_CB(WRITE8(*this, dblcrown_state, mux_w)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymz", YMZ284, SND_CLOCK) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75) MACHINE_CONFIG_END diff --git a/src/mame/drivers/dblewing.cpp b/src/mame/drivers/dblewing.cpp index 178a181b937..6626cc8673e 100644 --- a/src/mame/drivers/dblewing.cpp +++ b/src/mame/drivers/dblewing.cpp @@ -411,7 +411,7 @@ MACHINE_CONFIG_START(dblewing_state::dblewing) MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE("soundirq", input_merger_device, in_w<0>)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2151, XTAL(32'220'000)/9) MCFG_YM2151_IRQ_HANDLER(WRITELINE("soundirq", input_merger_device, in_w<1>)) diff --git a/src/mame/drivers/dbz.cpp b/src/mame/drivers/dbz.cpp index 1bd1a368693..030073990e7 100644 --- a/src/mame/drivers/dbz.cpp +++ b/src/mame/drivers/dbz.cpp @@ -378,7 +378,8 @@ MACHINE_CONFIG_START(dbz_state::dbz) MCFG_K053252_INT1_ACK_CB(WRITELINE(*this, dbz_state, dbz_irq2_ack_w)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/dccons.cpp b/src/mame/drivers/dccons.cpp index 0ce3f4f98e0..7d547dadbec 100644 --- a/src/mame/drivers/dccons.cpp +++ b/src/mame/drivers/dccons.cpp @@ -618,7 +618,8 @@ MACHINE_CONFIG_START(dc_cons_state::dc) MCFG_PALETTE_ADD("palette", 0x1000) MCFG_POWERVR2_ADD("powervr2", WRITE8(*this, dc_state, pvr_irq)) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("aica", AICA, 0) MCFG_AICA_MASTER MCFG_AICA_IRQ_CB(WRITELINE(*this, dc_state, aica_irq)) diff --git a/src/mame/drivers/dcheese.cpp b/src/mame/drivers/dcheese.cpp index 647a8f3b448..82308d4ded3 100644 --- a/src/mame/drivers/dcheese.cpp +++ b/src/mame/drivers/dcheese.cpp @@ -402,7 +402,8 @@ MACHINE_CONFIG_START(dcheese_state::dcheese) MCFG_PALETTE_INIT_OWNER(dcheese_state, dcheese) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", 0)) diff --git a/src/mame/drivers/dcon.cpp b/src/mame/drivers/dcon.cpp index 47672b06c23..80092f1e2c3 100644 --- a/src/mame/drivers/dcon.cpp +++ b/src/mame/drivers/dcon.cpp @@ -303,7 +303,7 @@ MACHINE_CONFIG_START(dcon_state::dcon) MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM3812, 4000000) MCFG_YM3812_IRQ_HANDLER(WRITELINE("seibu_sound", seibu_sound_device, fm_irqhandler)) @@ -347,7 +347,7 @@ MACHINE_CONFIG_START(dcon_state::sdgndmps) /* PCB number is PB91008 */ MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2151, XTAL(14'318'181)/4) MCFG_YM2151_IRQ_HANDLER(WRITELINE("seibu_sound", seibu_sound_device, fm_irqhandler)) diff --git a/src/mame/drivers/dday.cpp b/src/mame/drivers/dday.cpp index 0083518b992..1fc2640b3db 100644 --- a/src/mame/drivers/dday.cpp +++ b/src/mame/drivers/dday.cpp @@ -277,7 +277,7 @@ MACHINE_CONFIG_START(dday_state::dday) MCFG_PALETTE_INIT_OWNER(dday_state, dday) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay1", AY8910, 1000000) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mame/drivers/ddayjlc.cpp b/src/mame/drivers/ddayjlc.cpp index 54cd08bd8fd..fb85dc4caa1 100644 --- a/src/mame/drivers/ddayjlc.cpp +++ b/src/mame/drivers/ddayjlc.cpp @@ -621,7 +621,7 @@ MACHINE_CONFIG_START(ddayjlc_state::ddayjlc) MCFG_PALETTE_ADD("palette", 0x200+4) MCFG_PALETTE_INIT_OWNER(ddayjlc_state, ddayjlc) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/ddealer.cpp b/src/mame/drivers/ddealer.cpp index f67b1d165c5..3fb9d12feb4 100644 --- a/src/mame/drivers/ddealer.cpp +++ b/src/mame/drivers/ddealer.cpp @@ -644,7 +644,7 @@ MACHINE_CONFIG_START(ddealer_state::ddealer) MCFG_TIMER_DRIVER_ADD_PERIODIC("coinsim", ddealer_state, mcu_sim, attotime::from_hz(10000)) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2203, XTAL(6'000'000) / 8) /* 7.5KHz */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.40) MACHINE_CONFIG_END diff --git a/src/mame/drivers/ddenlovr.cpp b/src/mame/drivers/ddenlovr.cpp index dee59fa8576..b0a1c016c7e 100644 --- a/src/mame/drivers/ddenlovr.cpp +++ b/src/mame/drivers/ddenlovr.cpp @@ -4391,7 +4391,7 @@ MACHINE_CONFIG_START(ddenlovr_state::htengoku) MCFG_VIDEO_START_OVERRIDE(ddenlovr_state,htengoku) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, 20000000 / 16) MCFG_AY8910_PORT_A_READ_CB(READ8(*this, ddenlovr_state, htengoku_dsw_r)) @@ -9734,7 +9734,7 @@ MACHINE_CONFIG_START(ddenlovr_state::ddenlovr) MCFG_VIDEO_START_OVERRIDE(ddenlovr_state,ddenlovr) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ym2413", YM2413, XTAL(28'636'363) / 8) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80) @@ -9862,7 +9862,7 @@ MACHINE_CONFIG_START(ddenlovr_state::quizchq) MCFG_VIDEO_START_OVERRIDE(ddenlovr_state,ddenlovr) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ym2413", YM2413, XTAL(28'636'363)/8) // 3.579545Mhz, verified MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.50) @@ -9951,7 +9951,7 @@ MACHINE_CONFIG_START(ddenlovr_state::mmpanic) MCFG_VIDEO_START_OVERRIDE(ddenlovr_state,mmpanic) // extra layers /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("soundcpu", INPUT_LINE_NMI)) @@ -10037,7 +10037,7 @@ MACHINE_CONFIG_START(ddenlovr_state::hanakanz) MCFG_VIDEO_START_OVERRIDE(ddenlovr_state,hanakanz) // blitter commands in the roms are shuffled around /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ym2413", YM2413, 3579545) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80) @@ -10084,7 +10084,7 @@ MACHINE_CONFIG_START(ddenlovr_state::kotbinyo) MCFG_VIDEO_START_OVERRIDE(ddenlovr_state,hanakanz) // blitter commands in the roms are shuffled around /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ym2413", YM2413, XTAL(28'375'160) / 8) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80) @@ -10211,7 +10211,7 @@ MACHINE_CONFIG_START(ddenlovr_state::mjschuka) MCFG_VIDEO_START_OVERRIDE(ddenlovr_state,mjflove) // blitter commands in the roms are shuffled around /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ym2413", YM2413, XTAL(28'636'363) / 8) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80) @@ -10504,7 +10504,7 @@ MACHINE_CONFIG_START(ddenlovr_state::jongtei) MCFG_VIDEO_START_OVERRIDE(ddenlovr_state,hanakanz) // blitter commands in the roms are shuffled around /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ym2413", YM2413, XTAL(28'636'363) / 8) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80) @@ -10561,7 +10561,7 @@ MACHINE_CONFIG_START(ddenlovr_state::sryudens) MCFG_VIDEO_START_OVERRIDE(ddenlovr_state,mjflove) // blitter commands in the roms are shuffled around /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ym2413", YM2413, XTAL(28'636'363) / 8) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80) @@ -10612,7 +10612,7 @@ MACHINE_CONFIG_START(ddenlovr_state::janshinp) MCFG_VIDEO_START_OVERRIDE(ddenlovr_state,ddenlovr) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ym2413", YM2413, XTAL(28'636'363) / 8) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80) @@ -10684,7 +10684,7 @@ MACHINE_CONFIG_START(ddenlovr_state::seljan2) MCFG_VIDEO_START_OVERRIDE(ddenlovr_state,mjflove) // blitter commands in the roms are shuffled around /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ym2413", YM2413, XTAL(28'636'363) / 8) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80) @@ -10734,7 +10734,7 @@ MACHINE_CONFIG_START(ddenlovr_state::daimyojn) MCFG_VIDEO_START_OVERRIDE(ddenlovr_state,hanakanz) // blitter commands in the roms are shuffled around /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ym2413", YM2413, XTAL(28'636'363) / 8) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80) diff --git a/src/mame/drivers/ddragon.cpp b/src/mame/drivers/ddragon.cpp index b14fdb6fe6d..5d60950e522 100644 --- a/src/mame/drivers/ddragon.cpp +++ b/src/mame/drivers/ddragon.cpp @@ -975,7 +975,7 @@ MACHINE_CONFIG_START(ddragon_state::ddragon) MCFG_VIDEO_START_OVERRIDE(ddragon_state,ddragon) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("soundcpu", M6809_IRQ_LINE)) @@ -1047,7 +1047,7 @@ MACHINE_CONFIG_START(ddragon_state::ddragon6809) MCFG_VIDEO_START_OVERRIDE(ddragon_state,ddragon) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("soundcpu", M6809_IRQ_LINE)) @@ -1100,7 +1100,7 @@ MACHINE_CONFIG_START(ddragon_state::ddragon2) MCFG_VIDEO_START_OVERRIDE(ddragon_state,ddragon) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("soundcpu", INPUT_LINE_NMI)) diff --git a/src/mame/drivers/ddragon3.cpp b/src/mame/drivers/ddragon3.cpp index 9b5eec8b75a..59468d0eac3 100644 --- a/src/mame/drivers/ddragon3.cpp +++ b/src/mame/drivers/ddragon3.cpp @@ -844,7 +844,8 @@ MACHINE_CONFIG_START(ddragon3_state::ddragon3) MCFG_DEVICE_ADD("spriteram", BUFFERED_SPRITERAM16) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) @@ -921,7 +922,7 @@ MACHINE_CONFIG_START(wwfwfest_state::wwfwfest) MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) diff --git a/src/mame/drivers/ddribble.cpp b/src/mame/drivers/ddribble.cpp index 7234583e817..a3814691eb5 100644 --- a/src/mame/drivers/ddribble.cpp +++ b/src/mame/drivers/ddribble.cpp @@ -292,7 +292,7 @@ MACHINE_CONFIG_START(ddribble_state::ddribble) MCFG_PALETTE_INIT_OWNER(ddribble_state, ddribble) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2203, XTAL(3'579'545)) /* verified on pcb */ MCFG_AY8910_PORT_B_READ_CB(READ8(*this, ddribble_state, ddribble_vlm5030_busy_r)) diff --git a/src/mame/drivers/de_2.cpp b/src/mame/drivers/de_2.cpp index b0dfd88dbeb..d012fba4d29 100644 --- a/src/mame/drivers/de_2.cpp +++ b/src/mame/drivers/de_2.cpp @@ -534,7 +534,7 @@ MACHINE_CONFIG_START(de_2_state::de_bg_audio) MCFG_DEVICE_ADD("audiocpu", MC6809E, XTAL(8'000'000) / 4) // MC68B09E MCFG_DEVICE_PROGRAM_MAP(de_2_audio_map) - MCFG_SPEAKER_STANDARD_MONO("bg") + SPEAKER(config, "bg").front_center(); MCFG_DEVICE_ADD("ym2151", YM2151, XTAL(3'579'545)) MCFG_YM2151_IRQ_HANDLER(WRITELINE(*this, de_2_state, ym2151_irq_w)) diff --git a/src/mame/drivers/deadang.cpp b/src/mame/drivers/deadang.cpp index 8900730ce7c..a629229d0cf 100644 --- a/src/mame/drivers/deadang.cpp +++ b/src/mame/drivers/deadang.cpp @@ -380,7 +380,7 @@ MACHINE_CONFIG_START(deadang_state::deadang) MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("seibu_sound", SEIBU_SOUND, 0) MCFG_SEIBU_SOUND_CPU("audiocpu") diff --git a/src/mame/drivers/dec0.cpp b/src/mame/drivers/dec0.cpp index 439f8105dab..66a39efebc7 100644 --- a/src/mame/drivers/dec0.cpp +++ b/src/mame/drivers/dec0.cpp @@ -1657,7 +1657,7 @@ MACHINE_CONFIG_START(dec0_state::dec0) MCFG_PALETTE_FORMAT(XBGR) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ym1", YM2203, XTAL(12'000'000) / 8) MCFG_SOUND_ROUTE(0, "mono", 0.90) @@ -1686,7 +1686,7 @@ MACHINE_CONFIG_START(dec0_state::dec1) MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ym1", YM2203, XTAL(12'000'000)/8) /* verified on pcb */ MCFG_SOUND_ROUTE(0, "mono", 0.90) @@ -1771,7 +1771,7 @@ MACHINE_CONFIG_START(dec0_automat_state::automat) MCFG_GFXDECODE_ADD("gfxdecode", "palette", automat) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", 0)) @@ -1846,7 +1846,7 @@ MACHINE_CONFIG_START(dec0_automat_state::secretab) MCFG_GFXDECODE_ADD("gfxdecode", "palette", secretab) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", 0)) diff --git a/src/mame/drivers/dec8.cpp b/src/mame/drivers/dec8.cpp index 378769e65be..98fb441b4a5 100644 --- a/src/mame/drivers/dec8.cpp +++ b/src/mame/drivers/dec8.cpp @@ -1985,7 +1985,7 @@ MACHINE_CONFIG_START(dec8_state::lastmisn) MCFG_VIDEO_START_OVERRIDE(dec8_state,lastmisn) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -2050,7 +2050,7 @@ MACHINE_CONFIG_START(dec8_state::shackled) MCFG_VIDEO_START_OVERRIDE(dec8_state,shackled) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -2111,7 +2111,7 @@ MACHINE_CONFIG_START(dec8_state::gondo) MCFG_VIDEO_START_OVERRIDE(dec8_state,gondo) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -2172,7 +2172,7 @@ MACHINE_CONFIG_START(dec8_state::garyoret) MCFG_VIDEO_START_OVERRIDE(dec8_state,garyoret) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -2232,7 +2232,7 @@ MACHINE_CONFIG_START(dec8_state::ghostb) MCFG_VIDEO_START_OVERRIDE(dec8_state,ghostb) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -2292,7 +2292,7 @@ MACHINE_CONFIG_START(dec8_state::csilver) MCFG_VIDEO_START_OVERRIDE(dec8_state,lastmisn) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -2356,7 +2356,7 @@ MACHINE_CONFIG_START(dec8_state::oscar) MCFG_VIDEO_START_OVERRIDE(dec8_state,oscar) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", m6502_device::NMI_LINE)) @@ -2410,7 +2410,7 @@ MACHINE_CONFIG_START(dec8_state::srdarwin) MCFG_VIDEO_START_OVERRIDE(dec8_state,srdarwin) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -2467,7 +2467,7 @@ MACHINE_CONFIG_START(dec8_state::cobracom) MCFG_VIDEO_START_OVERRIDE(dec8_state,cobracom) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/deco156.cpp b/src/mame/drivers/deco156.cpp index 87e46f0b968..4b0212cdd81 100644 --- a/src/mame/drivers/deco156.cpp +++ b/src/mame/drivers/deco156.cpp @@ -369,7 +369,8 @@ MACHINE_CONFIG_START(deco156_state::hvysmsh) MCFG_DECO_SPRITE_GFXDECODE("gfxdecode") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("oki1", OKIM6295, 28000000/28, okim6295_device::PIN7_HIGH) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 1.0) @@ -422,7 +423,8 @@ MACHINE_CONFIG_START(deco156_state::wcvol95) MCFG_DECO_SPRITE_GFXDECODE("gfxdecode") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymz", YMZ280B, 28000000 / 2) MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) diff --git a/src/mame/drivers/deco32.cpp b/src/mame/drivers/deco32.cpp index e52f5f47dcb..6b2759e990f 100644 --- a/src/mame/drivers/deco32.cpp +++ b/src/mame/drivers/deco32.cpp @@ -1945,7 +1945,8 @@ MACHINE_CONFIG_START(captaven_state::captaven) MCFG_VIDEO_START_OVERRIDE(captaven_state, captaven) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2151, XTAL(32'220'000)/9) /* verified on pcb */ MCFG_YM2151_IRQ_HANDLER(INPUTLINE("audiocpu", 1)) @@ -2026,7 +2027,8 @@ MACHINE_CONFIG_START(fghthist_state::fghthist) MCFG_VIDEO_START_OVERRIDE(fghthist_state, fghthist) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", 0)) @@ -2158,7 +2160,8 @@ MACHINE_CONFIG_START(dragngun_state::dragngun) MCFG_DECO146_SET_INTERFACE_SCRAMBLE_REVERSE /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2151, 32220000/9) MCFG_YM2151_IRQ_HANDLER(INPUTLINE("audiocpu", 1)) @@ -2174,7 +2177,7 @@ MACHINE_CONFIG_START(dragngun_state::dragngun) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.35) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 0.35) - MCFG_SPEAKER_STANDARD_MONO("gun_speaker") + SPEAKER(config, "gun_speaker").front_center(); MCFG_DEVICE_ADD("oki3", OKIM6295, 32220000/32, okim6295_device::PIN7_HIGH) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "gun_speaker", 1.0) @@ -2290,7 +2293,8 @@ MACHINE_CONFIG_START(dragngun_state::lockload) MCFG_DECO146_SET_INTERFACE_SCRAMBLE_REVERSE /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2151, 32220000/9) MCFG_YM2151_IRQ_HANDLER(WRITELINE("sound_irq_merger", input_merger_any_high_device, in_w<1>)) @@ -2457,7 +2461,8 @@ MACHINE_CONFIG_START(nslasher_state::nslasher) MCFG_DECO146_SET_INTERFACE_SCRAMBLE_INTERLEAVE /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2151, 32220000/9) MCFG_YM2151_IRQ_HANDLER(WRITELINE("sound_irq_merger", input_merger_any_high_device, in_w<1>)) diff --git a/src/mame/drivers/deco_ld.cpp b/src/mame/drivers/deco_ld.cpp index 2a11657f3f0..4c7df89f2e3 100644 --- a/src/mame/drivers/deco_ld.cpp +++ b/src/mame/drivers/deco_ld.cpp @@ -490,7 +490,8 @@ MACHINE_CONFIG_START(deco_ld_state::rblaster) /* sound hardware */ /* TODO: mixing */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_8_ADD("soundlatch2") diff --git a/src/mame/drivers/deco_mlc.cpp b/src/mame/drivers/deco_mlc.cpp index 16647c2c66c..a719b8bc959 100644 --- a/src/mame/drivers/deco_mlc.cpp +++ b/src/mame/drivers/deco_mlc.cpp @@ -537,7 +537,8 @@ MACHINE_CONFIG_START(deco_mlc_state::avengrgs) MCFG_VIDEO_START_OVERRIDE(deco_mlc_state,mlc) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymz", YMZ280B, 42000000 / 3) MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) @@ -575,7 +576,8 @@ MACHINE_CONFIG_START(deco_mlc_state::mlc) MCFG_DECO146_SET_USE_MAGIC_ADDRESS_XOR /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymz", YMZ280B, 42000000 / 3) MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) diff --git a/src/mame/drivers/decocass.cpp b/src/mame/drivers/decocass.cpp index 8f727ce1ba9..c77bf5f94ba 100644 --- a/src/mame/drivers/decocass.cpp +++ b/src/mame/drivers/decocass.cpp @@ -986,7 +986,7 @@ MACHINE_CONFIG_START(decocass_state::decocass) MCFG_PALETTE_INIT_OWNER(decocass_state, decocass) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_8_ADD("soundlatch2") diff --git a/src/mame/drivers/dectalk.cpp b/src/mame/drivers/dectalk.cpp index a0dd4d88229..007f4276575 100644 --- a/src/mame/drivers/dectalk.cpp +++ b/src/mame/drivers/dectalk.cpp @@ -901,7 +901,7 @@ MACHINE_CONFIG_START(dectalk_state::dectalk) /* video hardware */ /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", AD7541, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.9) // ad7541.e107 (E88 10KHz OSC, handled by timer) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT) diff --git a/src/mame/drivers/decwritr.cpp b/src/mame/drivers/decwritr.cpp index 7926b051f1a..155512ca933 100644 --- a/src/mame/drivers/decwritr.cpp +++ b/src/mame/drivers/decwritr.cpp @@ -430,7 +430,7 @@ MACHINE_CONFIG_START(decwriter_state::la120) //MCFG_DEFAULT_LAYOUT( layout_la120 ) /* audio hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, 786) // TODO: LA120 speaker is controlled by asic; VT100 has: 7.945us per serial clock = ~125865.324hz, / 160 clocks per char = ~ 786 hz MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/deniam.cpp b/src/mame/drivers/deniam.cpp index c7d3a107391..dd98e83ac6a 100644 --- a/src/mame/drivers/deniam.cpp +++ b/src/mame/drivers/deniam.cpp @@ -277,7 +277,7 @@ MACHINE_CONFIG_START(deniam_state::deniam16b) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) @@ -313,7 +313,7 @@ MACHINE_CONFIG_START(deniam_state::deniam16c) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM3812, XTAL(25'000'000)/6) /* "SM64" ym3812 clone; 4.166470 measured, = 4.166666Mhz verified) */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.60) diff --git a/src/mame/drivers/deshoros.cpp b/src/mame/drivers/deshoros.cpp index 81cc442b48d..e8402e23157 100644 --- a/src/mame/drivers/deshoros.cpp +++ b/src/mame/drivers/deshoros.cpp @@ -284,7 +284,7 @@ MACHINE_CONFIG_START(destiny_state::destiny) MCFG_PALETTE_ADD_MONOCHROME("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, 800) // TODO: determine exact frequency thru schematics MCFG_SOUND_ROUTE(ALL_OUTPUTS,"mono",0.50) MACHINE_CONFIG_END diff --git a/src/mame/drivers/dfruit.cpp b/src/mame/drivers/dfruit.cpp index 707b425d5ca..3773672b69f 100644 --- a/src/mame/drivers/dfruit.cpp +++ b/src/mame/drivers/dfruit.cpp @@ -402,7 +402,7 @@ MACHINE_CONFIG_START(dfruit_state::dfruit) MCFG_I8255_IN_PORTC_CB(IOPORT("IN2")) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("opn", YM2203, MASTER_CLOCK/4) MCFG_AY8910_PORT_A_READ_CB(IOPORT("IN4")) MCFG_AY8910_PORT_B_READ_CB(IOPORT("IN5")) diff --git a/src/mame/drivers/dietgo.cpp b/src/mame/drivers/dietgo.cpp index 9713bcf17c0..c2cee3e9bd6 100644 --- a/src/mame/drivers/dietgo.cpp +++ b/src/mame/drivers/dietgo.cpp @@ -266,7 +266,7 @@ MACHINE_CONFIG_START(dietgo_state::dietgo) MCFG_DECO146_SET_USE_MAGIC_ADDRESS_XOR /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2151, XTAL(32'220'000)/9) /* verified on pcb */ MCFG_YM2151_IRQ_HANDLER(INPUTLINE("audiocpu", 1)) /* IRQ 2 */ diff --git a/src/mame/drivers/digel804.cpp b/src/mame/drivers/digel804.cpp index 0c3a884d6c4..419ec4456b7 100644 --- a/src/mame/drivers/digel804.cpp +++ b/src/mame/drivers/digel804.cpp @@ -669,7 +669,7 @@ MACHINE_CONFIG_START(digel804_state::digel804) MCFG_RAM_EXTRA_OPTIONS("32K,64K,128K") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END diff --git a/src/mame/drivers/dim68k.cpp b/src/mame/drivers/dim68k.cpp index 1cba4ad9a47..d5b5f99f9d6 100644 --- a/src/mame/drivers/dim68k.cpp +++ b/src/mame/drivers/dim68k.cpp @@ -323,7 +323,7 @@ MACHINE_CONFIG_START(dim68k_state::dim68k) MCFG_GFXDECODE_ADD("gfxdecode", "palette", dim68k) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/discoboy.cpp b/src/mame/drivers/discoboy.cpp index b94164cd0b6..716d2504349 100644 --- a/src/mame/drivers/discoboy.cpp +++ b/src/mame/drivers/discoboy.cpp @@ -484,7 +484,8 @@ MACHINE_CONFIG_START(discoboy_state::discoboy) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", 0)) diff --git a/src/mame/drivers/divebomb.cpp b/src/mame/drivers/divebomb.cpp index e8910799695..83f2561175f 100644 --- a/src/mame/drivers/divebomb.cpp +++ b/src/mame/drivers/divebomb.cpp @@ -454,7 +454,7 @@ MACHINE_CONFIG_START(divebomb_state::divebomb) MCFG_PALETTE_INIT_OWNER(divebomb_state, divebomb) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); // All frequencies unverified MCFG_DEVICE_ADD("sn0", SN76489, XTAL1/8) diff --git a/src/mame/drivers/diverboy.cpp b/src/mame/drivers/diverboy.cpp index a0b27cca3cf..2c20e26d15e 100644 --- a/src/mame/drivers/diverboy.cpp +++ b/src/mame/drivers/diverboy.cpp @@ -294,7 +294,7 @@ MACHINE_CONFIG_START(diverboy_state::diverboy) MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/djboy.cpp b/src/mame/drivers/djboy.cpp index 72e66e9e253..cd6f9a3b5e1 100644 --- a/src/mame/drivers/djboy.cpp +++ b/src/mame/drivers/djboy.cpp @@ -529,7 +529,8 @@ MACHINE_CONFIG_START(djboy_state::djboy) MCFG_DEVICE_ADD("pandora", KANEKO_PANDORA, 0) MCFG_KANEKO_PANDORA_GFXDECODE("gfxdecode") - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("soundcpu", INPUT_LINE_NMI)) diff --git a/src/mame/drivers/djmain.cpp b/src/mame/drivers/djmain.cpp index 299418157b3..9bc071c6643 100644 --- a/src/mame/drivers/djmain.cpp +++ b/src/mame/drivers/djmain.cpp @@ -1409,7 +1409,8 @@ MACHINE_CONFIG_START(djmain_state::djmainj) MCFG_K055555_ADD("k055555") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("k054539_1", K054539, XTAL(18'432'000)) MCFG_DEVICE_ADDRESS_MAP(0, k054539_map) diff --git a/src/mame/drivers/dlair.cpp b/src/mame/drivers/dlair.cpp index 76b2d0d4cf9..b1de8512856 100644 --- a/src/mame/drivers/dlair.cpp +++ b/src/mame/drivers/dlair.cpp @@ -737,7 +737,8 @@ MACHINE_CONFIG_START(dlair_state::dlair_base) MCFG_DEVICE_PERIODIC_INT_DRIVER(dlair_state, irq0_line_hold, (double)MASTER_CLOCK_US/8/16/16/16/16) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("aysnd", AY8910, MASTER_CLOCK_US/8) MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW1")) @@ -796,7 +797,8 @@ MACHINE_CONFIG_START(dlair_state::dleuro) MCFG_PALETTE_INIT_OWNER(dlair_state,dleuro) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.33) diff --git a/src/mame/drivers/dlair2.cpp b/src/mame/drivers/dlair2.cpp index 2aa6b82d312..e8c42e44f21 100644 --- a/src/mame/drivers/dlair2.cpp +++ b/src/mame/drivers/dlair2.cpp @@ -203,7 +203,7 @@ MACHINE_CONFIG_START(dlair2_state::dlair2) MCFG_PALETTE_INIT_OWNER(dlair2_state, dlair2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MACHINE_CONFIG_END diff --git a/src/mame/drivers/dmndrby.cpp b/src/mame/drivers/dmndrby.cpp index 651a6f5ed72..f22f1da7f3d 100644 --- a/src/mame/drivers/dmndrby.cpp +++ b/src/mame/drivers/dmndrby.cpp @@ -555,7 +555,7 @@ MACHINE_CONFIG_START(dmndrby_state::dderby) MCFG_PALETTE_INDIRECT_ENTRIES(0x20) MCFG_PALETTE_INIT_OWNER(dmndrby_state, dmndrby) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/dmv.cpp b/src/mame/drivers/dmv.cpp index 6ff7402f00b..23ef822c3d7 100644 --- a/src/mame/drivers/dmv.cpp +++ b/src/mame/drivers/dmv.cpp @@ -826,7 +826,7 @@ MACHINE_CONFIG_START(dmv_state::dmv) MCFG_PIT8253_OUT2_HANDLER(WRITELINE(*this, dmv_state, timint_w)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO( "mono" ) + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/docastle.cpp b/src/mame/drivers/docastle.cpp index a8a90e1f12d..210106ac355 100644 --- a/src/mame/drivers/docastle.cpp +++ b/src/mame/drivers/docastle.cpp @@ -650,7 +650,7 @@ MACHINE_CONFIG_START(docastle_state::docastle) MCFG_PALETTE_INIT_OWNER(docastle_state, docastle) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("sn1", SN76489A, XTAL(4'000'000)) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mame/drivers/dogfgt.cpp b/src/mame/drivers/dogfgt.cpp index 3257533d934..29257ecc1c9 100644 --- a/src/mame/drivers/dogfgt.cpp +++ b/src/mame/drivers/dogfgt.cpp @@ -266,7 +266,7 @@ MACHINE_CONFIG_START(dogfgt_state::dogfgt) MCFG_PALETTE_INIT_OWNER(dogfgt_state, dogfgt) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay1", AY8910, 1500000) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30) diff --git a/src/mame/drivers/dolphunk.cpp b/src/mame/drivers/dolphunk.cpp index 62084e1f86e..50a57570a5e 100644 --- a/src/mame/drivers/dolphunk.cpp +++ b/src/mame/drivers/dolphunk.cpp @@ -243,7 +243,7 @@ MACHINE_CONFIG_START(dauphin_state::dauphin) MCFG_DEFAULT_LAYOUT(layout_dolphunk) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) diff --git a/src/mame/drivers/dominob.cpp b/src/mame/drivers/dominob.cpp index f92d2f4e7a2..94d5dcfecd5 100644 --- a/src/mame/drivers/dominob.cpp +++ b/src/mame/drivers/dominob.cpp @@ -317,7 +317,7 @@ MACHINE_CONFIG_START(dominob_state::dominob) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, XTAL(12'000'000)/4) MCFG_AY8910_PORT_B_READ_CB(IOPORT("DSW")) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30) diff --git a/src/mame/drivers/dooyong.cpp b/src/mame/drivers/dooyong.cpp index c6319fbe624..2b5c708154f 100644 --- a/src/mame/drivers/dooyong.cpp +++ b/src/mame/drivers/dooyong.cpp @@ -1431,7 +1431,7 @@ MACHINE_CONFIG_START(dooyong_z80_ym2203_state::sound_2203) MCFG_INPUT_MERGER_ANY_HIGH("soundirq") MCFG_INPUT_MERGER_OUTPUT_HANDLER(INPUTLINE("audiocpu", 0)) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -1447,7 +1447,7 @@ MACHINE_CONFIG_START(dooyong_z80_ym2203_state::sound_2203) MACHINE_CONFIG_END MACHINE_CONFIG_START(dooyong_z80_state::sound_2151) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -1461,7 +1461,7 @@ MACHINE_CONFIG_START(dooyong_z80_state::sound_2151) MACHINE_CONFIG_END MACHINE_CONFIG_START(dooyong_state::sound_2151_4mhz) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -1512,7 +1512,7 @@ MACHINE_CONFIG_START(dooyong_z80_ym2203_state::lastday) MCFG_INPUT_MERGER_ANY_HIGH("soundirq") MCFG_INPUT_MERGER_OUTPUT_HANDLER(INPUTLINE("audiocpu", 0)) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/dragrace.cpp b/src/mame/drivers/dragrace.cpp index 3956980e000..e61ee8c86f4 100644 --- a/src/mame/drivers/dragrace.cpp +++ b/src/mame/drivers/dragrace.cpp @@ -296,7 +296,8 @@ MACHINE_CONFIG_START(dragrace_state::dragrace) MCFG_PALETTE_INIT_OWNER(dragrace_state, dragrace) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("discrete", DISCRETE, dragrace_discrete) MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) diff --git a/src/mame/drivers/dreambal.cpp b/src/mame/drivers/dreambal.cpp index 782778eec10..b4fdfa0f50c 100644 --- a/src/mame/drivers/dreambal.cpp +++ b/src/mame/drivers/dreambal.cpp @@ -351,7 +351,7 @@ MACHINE_CONFIG_START(dreambal_state::dreambal) MCFG_DECO16IC_GFXDECODE("gfxdecode") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, 9830400/8, okim6295_device::PIN7_HIGH) diff --git a/src/mame/drivers/dreamwld.cpp b/src/mame/drivers/dreamwld.cpp index 2315095adb1..5654a28ebad 100644 --- a/src/mame/drivers/dreamwld.cpp +++ b/src/mame/drivers/dreamwld.cpp @@ -768,7 +768,8 @@ MACHINE_CONFIG_START(dreamwld_state::baryon) MCFG_GFXDECODE_ADD("gfxdecode", "palette", dreamwld) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("oki1", OKIM6295, XTAL(32'000'000)/32, okim6295_device::PIN7_LOW) /* 1MHz verified */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.50) diff --git a/src/mame/drivers/drgnmst.cpp b/src/mame/drivers/drgnmst.cpp index c0e4c1dea95..3cd5af8c544 100644 --- a/src/mame/drivers/drgnmst.cpp +++ b/src/mame/drivers/drgnmst.cpp @@ -401,7 +401,8 @@ MACHINE_CONFIG_START(drgnmst_state::drgnmst) MCFG_PALETTE_ADD("palette", 0x2000) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("oki1", OKIM6295, 32000000/32, okim6295_device::PIN7_HIGH) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.50) diff --git a/src/mame/drivers/drmicro.cpp b/src/mame/drivers/drmicro.cpp index 924083c2ebc..8e82e985393 100644 --- a/src/mame/drivers/drmicro.cpp +++ b/src/mame/drivers/drmicro.cpp @@ -266,7 +266,7 @@ MACHINE_CONFIG_START(drmicro_state::drmicro) MCFG_PALETTE_INIT_OWNER(drmicro_state, drmicro) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("sn1", SN76496, MCLK/4) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/drtomy.cpp b/src/mame/drivers/drtomy.cpp index e28000dc54f..26ca92bf9c7 100644 --- a/src/mame/drivers/drtomy.cpp +++ b/src/mame/drivers/drtomy.cpp @@ -325,7 +325,7 @@ MACHINE_CONFIG_START(drtomy_state::drtomy) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, 26000000/16, okim6295_device::PIN7_LOW) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.8) diff --git a/src/mame/drivers/drw80pkr.cpp b/src/mame/drivers/drw80pkr.cpp index ef817f269bf..13047031a88 100644 --- a/src/mame/drivers/drw80pkr.cpp +++ b/src/mame/drivers/drw80pkr.cpp @@ -477,7 +477,7 @@ MACHINE_CONFIG_START(drw80pkr_state::drw80pkr) MCFG_NVRAM_ADD_0FILL("nvram") // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8912, 20000000/12) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75) diff --git a/src/mame/drivers/dunhuang.cpp b/src/mame/drivers/dunhuang.cpp index 97dbd4e4a16..4a814ff5091 100644 --- a/src/mame/drivers/dunhuang.cpp +++ b/src/mame/drivers/dunhuang.cpp @@ -829,7 +829,7 @@ MACHINE_CONFIG_START(dunhuang_state::dunhuang) MCFG_RAMDAC_ADD("ramdac", ramdac_map, "palette") // HMC HM86171 VGA 256 colour RAMDAC /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2413, 3579545) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80) diff --git a/src/mame/drivers/dwarfd.cpp b/src/mame/drivers/dwarfd.cpp index f689bca9902..65ad1ad109d 100644 --- a/src/mame/drivers/dwarfd.cpp +++ b/src/mame/drivers/dwarfd.cpp @@ -755,7 +755,7 @@ MACHINE_CONFIG_START(dwarfd_state::dwarfd) MCFG_PALETTE_ADD("palette", 32) MCFG_PALETTE_INIT_OWNER(dwarfd_state, dwarfd) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, 1500000) MCFG_AY8910_PORT_A_READ_CB(IOPORT("IN2")) MCFG_AY8910_PORT_B_READ_CB(IOPORT("IN1")) diff --git a/src/mame/drivers/dynadice.cpp b/src/mame/drivers/dynadice.cpp index aaf6b38589b..6d9dbc0028a 100644 --- a/src/mame/drivers/dynadice.cpp +++ b/src/mame/drivers/dynadice.cpp @@ -273,7 +273,7 @@ MACHINE_CONFIG_START(dynadice_state::dynadice) MCFG_GFXDECODE_ADD("gfxdecode", "palette", dynadice) MCFG_PALETTE_ADD_3BIT_BRG("palette") - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/dynax.cpp b/src/mame/drivers/dynax.cpp index fe97f22288a..e7c3bc6356e 100644 --- a/src/mame/drivers/dynax.cpp +++ b/src/mame/drivers/dynax.cpp @@ -4234,7 +4234,7 @@ MACHINE_CONFIG_START(dynax_state::cdracula) MCFG_VIDEO_START_OVERRIDE(dynax_state,hanamai) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, XTAL(4'000'000) / 4, okim6295_device::PIN7_HIGH) /* 1MHz measured */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80) @@ -4287,7 +4287,7 @@ MACHINE_CONFIG_START(dynax_state::hanamai) MCFG_VIDEO_START_OVERRIDE(dynax_state,hanamai) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8912, 22000000 / 8) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.20) @@ -4360,7 +4360,7 @@ MACHINE_CONFIG_START(dynax_state::hnoridur) MCFG_VIDEO_START_OVERRIDE(dynax_state,hnoridur) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8912, XTAL(22'000'000) / 16) MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW0")) @@ -4429,7 +4429,7 @@ MACHINE_CONFIG_START(dynax_state::hjingi) MCFG_VIDEO_START_OVERRIDE(dynax_state,hnoridur) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8912, XTAL(22'000'000) / 16) MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW0")) @@ -4488,7 +4488,7 @@ MACHINE_CONFIG_START(dynax_state::sprtmtch) MCFG_VIDEO_START_OVERRIDE(dynax_state,sprtmtch) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ym2203", YM2203, 22000000 / 8) MCFG_YM2203_IRQ_HANDLER(WRITELINE("mainirq", rst_pos_buffer_device, rst1_w)) @@ -4549,7 +4549,7 @@ MACHINE_CONFIG_START(dynax_state::mjfriday) MCFG_VIDEO_START_OVERRIDE(dynax_state,mjdialq2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ym2413", YM2413, 24000000/6) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -4719,7 +4719,7 @@ MACHINE_CONFIG_START(dynax_state::jantouki) MCFG_VIDEO_START_OVERRIDE(dynax_state,jantouki) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8912, 22000000 / 8) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.20) @@ -4891,7 +4891,7 @@ MACHINE_CONFIG_START(dynax_state::tenkai) MCFG_VIDEO_START_OVERRIDE(dynax_state,tenkai) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, 22000000 / 16) MCFG_AY8910_PORT_A_READ_CB(READ8(*this, dynax_state, tenkai_dsw_r)) @@ -4966,7 +4966,7 @@ MACHINE_CONFIG_START(dynax_state::gekisha) MCFG_VIDEO_START_OVERRIDE(dynax_state,mjdialq2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, XTAL(24'000'000) / 16) // ? MCFG_AY8910_PORT_A_READ_CB(READ8(*this, dynax_state, tenkai_dsw_r)) diff --git a/src/mame/drivers/dynduke.cpp b/src/mame/drivers/dynduke.cpp index 4d96f27fda1..61941fd6f07 100644 --- a/src/mame/drivers/dynduke.cpp +++ b/src/mame/drivers/dynduke.cpp @@ -350,7 +350,7 @@ MACHINE_CONFIG_START(dynduke_state::dynduke) MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM3812, 14318180/4) MCFG_YM3812_IRQ_HANDLER(WRITELINE("seibu_sound", seibu_sound_device, fm_irqhandler)) diff --git a/src/mame/drivers/ecoinf3.cpp b/src/mame/drivers/ecoinf3.cpp index 2b900d60e9c..f1b14a5ef8d 100644 --- a/src/mame/drivers/ecoinf3.cpp +++ b/src/mame/drivers/ecoinf3.cpp @@ -670,7 +670,7 @@ MACHINE_CONFIG_START(ecoinf3_state::ecoinf3_pyramid) MCFG_DEFAULT_LAYOUT(layout_ecoinf3) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("sn1", SN76489, 4000000) // no idea what the sound chip is, this sounds terrible diff --git a/src/mame/drivers/egghunt.cpp b/src/mame/drivers/egghunt.cpp index 70c8b514b94..cc301c6ac03 100644 --- a/src/mame/drivers/egghunt.cpp +++ b/src/mame/drivers/egghunt.cpp @@ -451,7 +451,7 @@ MACHINE_CONFIG_START(egghunt_state::egghunt) MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/einstein.cpp b/src/mame/drivers/einstein.cpp index 0d6d33d0035..2013166efbf 100644 --- a/src/mame/drivers/einstein.cpp +++ b/src/mame/drivers/einstein.cpp @@ -621,7 +621,7 @@ MACHINE_CONFIG_START(einstein_state::einstein) MCFG_SCREEN_UPDATE_DEVICE("vdp", tms9129_device, screen_update) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD(IC_I030, AY8910, XTAL_X002 / 4) MCFG_AY8910_PORT_B_READ_CB(READ8(*this, einstein_state, keyboard_data_read)) MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(*this, einstein_state, keyboard_line_write)) diff --git a/src/mame/drivers/electron.cpp b/src/mame/drivers/electron.cpp index dc3161d2cf4..016b9ea505b 100644 --- a/src/mame/drivers/electron.cpp +++ b/src/mame/drivers/electron.cpp @@ -226,7 +226,7 @@ MACHINE_CONFIG_START(electron_state::electron) MCFG_PALETTE_ADD( "palette", 16 ) MCFG_PALETTE_INIT_OWNER(electron_state, electron) - MCFG_SPEAKER_STANDARD_MONO( "mono" ) + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD( "beeper", BEEP, 300 ) MCFG_SOUND_ROUTE( ALL_OUTPUTS, "mono", 1.00 ) diff --git a/src/mame/drivers/elektronmono.cpp b/src/mame/drivers/elektronmono.cpp index 63b3ea3f0a2..391a3c52476 100644 --- a/src/mame/drivers/elektronmono.cpp +++ b/src/mame/drivers/elektronmono.cpp @@ -159,7 +159,8 @@ MACHINE_CONFIG_START(elekmono_state::elektron) MCFG_DEVICE_ADD("maincpu", MCF5206E, XTAL(25'447'000)) MCFG_DEVICE_PROGRAM_MAP(elektron_map) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MACHINE_CONFIG_END static INPUT_PORTS_START( elektron ) diff --git a/src/mame/drivers/elwro800.cpp b/src/mame/drivers/elwro800.cpp index c47aecfb8b7..299dab5e777 100644 --- a/src/mame/drivers/elwro800.cpp +++ b/src/mame/drivers/elwro800.cpp @@ -613,7 +613,7 @@ MACHINE_CONFIG_START(elwro800_state::elwro800) MCFG_DEVICE_ADD("i8251", I8251, 0) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) diff --git a/src/mame/drivers/enigma2.cpp b/src/mame/drivers/enigma2.cpp index cdf03429304..08fc5078051 100644 --- a/src/mame/drivers/enigma2.cpp +++ b/src/mame/drivers/enigma2.cpp @@ -618,7 +618,7 @@ MACHINE_CONFIG_START(enigma2_state::enigma2) MCFG_PALETTE_ADD_3BIT_BGR("palette") /* audio hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, AY8910_CLOCK) MCFG_AY8910_PORT_A_READ_CB(READ8(*this, enigma2_state, sound_latch_r)) @@ -645,7 +645,7 @@ MACHINE_CONFIG_START(enigma2_state::enigma2a) MCFG_SCREEN_UPDATE_DRIVER(enigma2_state, screen_update_enigma2a) /* audio hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, AY8910_CLOCK) MCFG_AY8910_PORT_A_READ_CB(READ8(*this, enigma2_state, sound_latch_r)) diff --git a/src/mame/drivers/enmirage.cpp b/src/mame/drivers/enmirage.cpp index 9328a095a0b..386a1be7fa6 100644 --- a/src/mame/drivers/enmirage.cpp +++ b/src/mame/drivers/enmirage.cpp @@ -220,7 +220,8 @@ MACHINE_CONFIG_START(enmirage_state::mirage) MCFG_DEFAULT_LAYOUT( layout_mirage ) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_ES5503_ADD("es5503", 7000000) MCFG_ES5503_OUTPUT_CHANNELS(2) MCFG_ES5503_IRQ_FUNC(WRITELINE(*this, enmirage_state, mirage_doc_irq)) diff --git a/src/mame/drivers/eolith.cpp b/src/mame/drivers/eolith.cpp index 0a070f2c5f7..0976d640b8e 100644 --- a/src/mame/drivers/eolith.cpp +++ b/src/mame/drivers/eolith.cpp @@ -569,7 +569,8 @@ MACHINE_CONFIG_START(eolith_state::eolith45) MCFG_VIDEO_START_OVERRIDE(eolith_state,eolith) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("soundcpu", MCS51_INT0_LINE)) diff --git a/src/mame/drivers/eolith16.cpp b/src/mame/drivers/eolith16.cpp index 33a9307e8a0..1157db01e3f 100644 --- a/src/mame/drivers/eolith16.cpp +++ b/src/mame/drivers/eolith16.cpp @@ -178,7 +178,8 @@ MACHINE_CONFIG_START(eolith16_state::eolith16) MCFG_PALETTE_INIT_OWNER(eolith16_state,eolith16) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("oki", OKIM6295, XTAL(1'000'000), okim6295_device::PIN7_HIGH) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 1.0) diff --git a/src/mame/drivers/epos.cpp b/src/mame/drivers/epos.cpp index dedbf4a6ba8..332693b7d06 100644 --- a/src/mame/drivers/epos.cpp +++ b/src/mame/drivers/epos.cpp @@ -479,7 +479,7 @@ MACHINE_CONFIG_START(epos_state::epos) /* EPOS TRISTAR 8000 PCB */ MCFG_PALETTE_INIT_OWNER(epos_state, epos) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8912, XTAL(11'000'000)/16) /* 0.6875 MHz, confirmed from schematics */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) MACHINE_CONFIG_END @@ -516,7 +516,7 @@ MACHINE_CONFIG_START(epos_state::dealer) /* EPOS TRISTAR 9000 PCB */ MCFG_SCREEN_UPDATE_DRIVER(epos_state, screen_update) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, XTAL(22'118'400)/32) /* 0.6912 MHz (measured) */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) MCFG_AY8910_PORT_A_READ_CB(READ8(*this, epos_state, ay_porta_mpx_r)) diff --git a/src/mame/drivers/eprom.cpp b/src/mame/drivers/eprom.cpp index 2ab1e9eb56b..e9d1cd62346 100644 --- a/src/mame/drivers/eprom.cpp +++ b/src/mame/drivers/eprom.cpp @@ -423,7 +423,7 @@ MACHINE_CONFIG_START(eprom_state::eprom) MCFG_VIDEO_START_OVERRIDE(eprom_state,eprom) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_ATARI_JSA_I_ADD("jsa", INPUTLINE("maincpu", M68K_IRQ_6)) MCFG_ATARI_JSA_TEST_PORT("260010", 1) @@ -466,7 +466,7 @@ MACHINE_CONFIG_START(eprom_state::klaxp) MCFG_VIDEO_START_OVERRIDE(eprom_state,eprom) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_ATARI_JSA_II_ADD("jsa", INPUTLINE("maincpu", M68K_IRQ_6)) MCFG_ATARI_JSA_TEST_PORT("260010", 1) @@ -514,7 +514,7 @@ MACHINE_CONFIG_START(eprom_state::guts) MCFG_VIDEO_START_OVERRIDE(eprom_state,guts) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_ATARI_JSA_II_ADD("jsa", INPUTLINE("maincpu", M68K_IRQ_6)) MCFG_ATARI_JSA_TEST_PORT("260010", 1) diff --git a/src/mame/drivers/equites.cpp b/src/mame/drivers/equites.cpp index c45d4a264a9..087321996c6 100644 --- a/src/mame/drivers/equites.cpp +++ b/src/mame/drivers/equites.cpp @@ -1054,7 +1054,7 @@ MACHINE_CONFIG_START(equites_state::common_sound) MCFG_I8155_OUT_TIMEROUT_CB(WRITELINE(*this, equites_state, equites_8155_timer_pulse)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/ertictac.cpp b/src/mame/drivers/ertictac.cpp index 05762fed05f..ae7e6027af9 100644 --- a/src/mame/drivers/ertictac.cpp +++ b/src/mame/drivers/ertictac.cpp @@ -237,7 +237,7 @@ MACHINE_CONFIG_START(ertictac_state::ertictac) MCFG_PALETTE_ADD("palette", 0x200) - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac0", DAC_16BIT_R2R_TWOS_COMPLEMENT, 0) MCFG_SOUND_ROUTE(0, "speaker", 0.05) // unknown DAC MCFG_DEVICE_ADD("dac1", DAC_16BIT_R2R_TWOS_COMPLEMENT, 0) MCFG_SOUND_ROUTE(0, "speaker", 0.05) // unknown DAC MCFG_DEVICE_ADD("dac2", DAC_16BIT_R2R_TWOS_COMPLEMENT, 0) MCFG_SOUND_ROUTE(0, "speaker", 0.05) // unknown DAC diff --git a/src/mame/drivers/esd16.cpp b/src/mame/drivers/esd16.cpp index 63e48a4498f..e1b2acdd7d6 100644 --- a/src/mame/drivers/esd16.cpp +++ b/src/mame/drivers/esd16.cpp @@ -665,7 +665,7 @@ MACHINE_CONFIG_START(esd16_state::esd16) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/esh.cpp b/src/mame/drivers/esh.cpp index 12fda67a8b8..0d21cf41162 100644 --- a/src/mame/drivers/esh.cpp +++ b/src/mame/drivers/esh.cpp @@ -378,12 +378,13 @@ MACHINE_CONFIG_START(esh_state::esh) MCFG_GFXDECODE_ADD("gfxdecode", "palette", esh) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_MODIFY("laserdisc") MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) MCFG_SOUND_ROUTE(1, "rspeaker", 1.0) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, 2000) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END diff --git a/src/mame/drivers/espial.cpp b/src/mame/drivers/espial.cpp index e4257e73ade..20c57c5d9dd 100644 --- a/src/mame/drivers/espial.cpp +++ b/src/mame/drivers/espial.cpp @@ -347,7 +347,7 @@ MACHINE_CONFIG_START(espial_state::espial) MCFG_PALETTE_INIT_OWNER(espial_state, espial) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_8_ADD("soundlatch2") diff --git a/src/mame/drivers/esq1.cpp b/src/mame/drivers/esq1.cpp index 743c65c506c..c60c5666a5f 100644 --- a/src/mame/drivers/esq1.cpp +++ b/src/mame/drivers/esq1.cpp @@ -604,7 +604,8 @@ MACHINE_CONFIG_START(esq1_state::esq1) MCFG_MIDI_PORT_ADD("mdout", midiout_slot, "midiout") - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("filters", ESQ1_FILTERS, 0) MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) diff --git a/src/mame/drivers/esq5505.cpp b/src/mame/drivers/esq5505.cpp index 0a0f9e18005..c08197eec4e 100644 --- a/src/mame/drivers/esq5505.cpp +++ b/src/mame/drivers/esq5505.cpp @@ -639,7 +639,8 @@ MACHINE_CONFIG_START(esq5505_state::vfx) MCFG_MIDI_PORT_ADD("mdout", midiout_slot, "midiout") - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("pump", ESQ_5505_5510_PUMP, XTAL(10'000'000) / (16 * 21)) MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) @@ -718,7 +719,8 @@ MACHINE_CONFIG_START(esq5505_state::vfx32) MCFG_MIDI_PORT_ADD("mdout", midiout_slot, "midiout") - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("pump", ESQ_5505_5510_PUMP, XTAL(30'476'100) / (2 * 16 * 32)) MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) diff --git a/src/mame/drivers/esqasr.cpp b/src/mame/drivers/esqasr.cpp index ed7c24bd44a..2908a22a259 100644 --- a/src/mame/drivers/esqasr.cpp +++ b/src/mame/drivers/esqasr.cpp @@ -122,7 +122,8 @@ MACHINE_CONFIG_START(esqasr_state::asr) MCFG_ESQ2X40_SQ1_ADD("sq1vfd") - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("pump", ESQ_5505_5510_PUMP, XTAL(16'000'000) / (16 * 32)) MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) @@ -155,7 +156,8 @@ MACHINE_CONFIG_START(esqasr_state::asrx) MCFG_ESQ2X40_SQ1_ADD("sq1vfd") - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("pump", ESQ_5505_5510_PUMP, XTAL(16'000'000) / (16 * 32)) // Actually ES5511 MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) diff --git a/src/mame/drivers/esqkt.cpp b/src/mame/drivers/esqkt.cpp index 95bdd5a5d27..7d0082d3893 100644 --- a/src/mame/drivers/esqkt.cpp +++ b/src/mame/drivers/esqkt.cpp @@ -237,7 +237,8 @@ MACHINE_CONFIG_START(esqkt_state::kt) MCFG_MIDI_PORT_ADD("mdout", midiout_slot, "midiout") - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("pump", ESQ_5505_5510_PUMP, XTAL(16'000'000) / (16 * 32)) MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) diff --git a/src/mame/drivers/esqmr.cpp b/src/mame/drivers/esqmr.cpp index d198ead428c..2516170957a 100644 --- a/src/mame/drivers/esqmr.cpp +++ b/src/mame/drivers/esqmr.cpp @@ -257,7 +257,8 @@ MACHINE_CONFIG_START(esqmr_state::mr) MCFG_ESQ2X40_SQ1_ADD("sq1vfd") - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ensoniq", ES5506, XTAL(16'000'000)) MCFG_ES5506_REGION0("waverom") /* Bank 0 */ MCFG_ES5506_REGION1("waverom2") /* Bank 1 */ diff --git a/src/mame/drivers/esripsys.cpp b/src/mame/drivers/esripsys.cpp index 3b9e52f8545..8d4a95a59cf 100644 --- a/src/mame/drivers/esripsys.cpp +++ b/src/mame/drivers/esripsys.cpp @@ -694,7 +694,7 @@ MACHINE_CONFIG_START(esripsys_state::esripsys) MCFG_SCREEN_VIDEO_ATTRIBUTES(VIDEO_ALWAYS_UPDATE) /* Sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", MC3410, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 1.0) // unknown DAC MCFG_DEVICE_ADD("dacvol", MC3408, 0) // unknown DAC diff --git a/src/mame/drivers/et3400.cpp b/src/mame/drivers/et3400.cpp index 1e08251f9e2..20c8036b25d 100644 --- a/src/mame/drivers/et3400.cpp +++ b/src/mame/drivers/et3400.cpp @@ -250,7 +250,7 @@ MACHINE_CONFIG_START(et3400_state::et3400) MCFG_CASSETTE_ADD("cassette") MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_ENABLED) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.05) MACHINE_CONFIG_END diff --git a/src/mame/drivers/eti660.cpp b/src/mame/drivers/eti660.cpp index fe17fa3a487..ef7ab310b92 100644 --- a/src/mame/drivers/eti660.cpp +++ b/src/mame/drivers/eti660.cpp @@ -321,7 +321,7 @@ MACHINE_CONFIG_START(eti660_state::eti660) MCFG_SCREEN_UPDATE_DEVICE(CDP1864_TAG, cdp1864_device, screen_update) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_CDP1864_ADD(CDP1864_TAG, SCREEN_TAG, XTAL(8'867'238)/5, GND, INPUTLINE(CDP1802_TAG, COSMAC_INPUT_LINE_INT), INPUTLINE(CDP1802_TAG, COSMAC_INPUT_LINE_DMAOUT), INPUTLINE(CDP1802_TAG, COSMAC_INPUT_LINE_EF1), NOOP, READLINE(*this, eti660_state, rdata_r), READLINE(*this, eti660_state, bdata_r), READLINE(*this, eti660_state, gdata_r)) MCFG_CDP1864_CHROMINANCE(RES_K(2.2), RES_K(1), RES_K(4.7), RES_K(4.7)) // R7, R5, R6, R4 MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mame/drivers/ettrivia.cpp b/src/mame/drivers/ettrivia.cpp index 50b350ccab8..c3af87f9a04 100644 --- a/src/mame/drivers/ettrivia.cpp +++ b/src/mame/drivers/ettrivia.cpp @@ -316,7 +316,7 @@ MACHINE_CONFIG_START(ettrivia_state::ettrivia) MCFG_PALETTE_INIT_OWNER(ettrivia_state, ettrivia) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay1", AY8912, 1500000) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mame/drivers/eva.cpp b/src/mame/drivers/eva.cpp index 72ac11d4420..8fe77d83ce1 100644 --- a/src/mame/drivers/eva.cpp +++ b/src/mame/drivers/eva.cpp @@ -181,7 +181,7 @@ MACHINE_CONFIG_START(eva_state::eva24) /* sound hardware */ MCFG_DEVICE_ADD("tms6100", TMS6100, 640_kHz_XTAL/4) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("tms5100", TMS5110A, 640_kHz_XTAL) tms5110_route(config); MACHINE_CONFIG_END @@ -197,7 +197,7 @@ MACHINE_CONFIG_START(eva_state::eva11) /* sound hardware */ MCFG_DEVICE_ADD("tms6100", TMS6100, 640_kHz_XTAL/4) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("tms5100", TMS5110A, 640_kHz_XTAL) tms5110_route(config); MACHINE_CONFIG_END diff --git a/src/mame/drivers/excali64.cpp b/src/mame/drivers/excali64.cpp index 869854b2ec8..ed80866ccb0 100644 --- a/src/mame/drivers/excali64.cpp +++ b/src/mame/drivers/excali64.cpp @@ -575,7 +575,7 @@ MACHINE_CONFIG_START(excali64_state::excali64) MCFG_I8255_OUT_PORTC_CB(WRITE8(*this, excali64_state, ppic_w)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") diff --git a/src/mame/drivers/exedexes.cpp b/src/mame/drivers/exedexes.cpp index 92a97bb8243..9d1c9adc7ab 100644 --- a/src/mame/drivers/exedexes.cpp +++ b/src/mame/drivers/exedexes.cpp @@ -250,7 +250,7 @@ MACHINE_CONFIG_START(exedexes_state::exedexes) MCFG_PALETTE_INIT_OWNER(exedexes_state, exedexes) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/exelv.cpp b/src/mame/drivers/exelv.cpp index b6dfa06c11d..b1a2c77ce43 100644 --- a/src/mame/drivers/exelv.cpp +++ b/src/mame/drivers/exelv.cpp @@ -522,7 +522,7 @@ MACHINE_CONFIG_START(exelv_state::exl100) // MCFG_DEVICE_ADD("vsm", SPEECHROM, 0) /* sound */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("tms5220c", TMS5220C, 640000) // MCFG_TMS52XX_SPEECHROM("vsm") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) @@ -578,7 +578,7 @@ MACHINE_CONFIG_START(exelv_state::exeltel) MCFG_DEVICE_ADD("vsm", SPEECHROM, 0) /* sound */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("tms5220c", TMS5220C, 640000) MCFG_TMS52XX_SPEECHROM("vsm") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) diff --git a/src/mame/drivers/exerion.cpp b/src/mame/drivers/exerion.cpp index 3a620259457..e7b7937daa6 100644 --- a/src/mame/drivers/exerion.cpp +++ b/src/mame/drivers/exerion.cpp @@ -393,7 +393,7 @@ MACHINE_CONFIG_START(exerion_state::exerion) MCFG_PALETTE_INIT_OWNER(exerion_state, exerion) /* audio hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/exidy440.cpp b/src/mame/drivers/exidy440.cpp index fe13d019b0d..136b7fe5f6a 100644 --- a/src/mame/drivers/exidy440.cpp +++ b/src/mame/drivers/exidy440.cpp @@ -1038,7 +1038,8 @@ MACHINE_CONFIG_START(exidy440_state::exidy440) MCFG_DEVICE_PROGRAM_MAP(exidy440_audio_map) MCFG_DEVICE_VBLANK_INT_DRIVER("screen", driver_device, irq0_line_assert) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("custom", EXIDY440, EXIDY440_MC3418_CLOCK) MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) diff --git a/src/mame/drivers/exp85.cpp b/src/mame/drivers/exp85.cpp index d7ba551c047..a0140054d68 100644 --- a/src/mame/drivers/exp85.cpp +++ b/src/mame/drivers/exp85.cpp @@ -189,7 +189,7 @@ MACHINE_CONFIG_START(exp85_state::exp85) MCFG_I8085A_SOD(WRITELINE(*this, exp85_state, sod_w)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mame/drivers/expro02.cpp b/src/mame/drivers/expro02.cpp index 9920572e602..73e274ef6af 100644 --- a/src/mame/drivers/expro02.cpp +++ b/src/mame/drivers/expro02.cpp @@ -950,7 +950,7 @@ MACHINE_CONFIG_START(expro02_state::expro02) MCFG_WATCHDOG_TIME_INIT(attotime::from_seconds(3)) /* a guess, and certainly wrong */ /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, 12000000/6, okim6295_device::PIN7_LOW) MCFG_DEVICE_ADDRESS_MAP(0, oki_map) diff --git a/src/mame/drivers/exprraid.cpp b/src/mame/drivers/exprraid.cpp index 87052cc70cd..248642a522f 100644 --- a/src/mame/drivers/exprraid.cpp +++ b/src/mame/drivers/exprraid.cpp @@ -517,7 +517,7 @@ MACHINE_CONFIG_START(exprraid_state::exprraid) MCFG_PALETTE_ADD_RRRRGGGGBBBB_PROMS("palette", "proms", 256) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("slave", INPUT_LINE_NMI)) diff --git a/src/mame/drivers/exterm.cpp b/src/mame/drivers/exterm.cpp index d9c217cb4b2..1753d36145c 100644 --- a/src/mame/drivers/exterm.cpp +++ b/src/mame/drivers/exterm.cpp @@ -438,7 +438,7 @@ MACHINE_CONFIG_START(exterm_state::exterm) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", AD7528, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.4) // ad7528j.e2 MCFG_DEVICE_ADD("dacvol", AD7528, 0) // ad7528j.e2 diff --git a/src/mame/drivers/exzisus.cpp b/src/mame/drivers/exzisus.cpp index 5775eab1508..14692adbc58 100644 --- a/src/mame/drivers/exzisus.cpp +++ b/src/mame/drivers/exzisus.cpp @@ -262,7 +262,7 @@ MACHINE_CONFIG_START(exzisus_state::exzisus) MCFG_PALETTE_ADD_RRRRGGGGBBBB_PROMS("palette", "proms", 1024) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2151, 4000000) MCFG_YM2151_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) diff --git a/src/mame/drivers/f-32.cpp b/src/mame/drivers/f-32.cpp index 75234c3e457..4bb4e9e7e4a 100644 --- a/src/mame/drivers/f-32.cpp +++ b/src/mame/drivers/f-32.cpp @@ -188,7 +188,8 @@ MACHINE_CONFIG_START(mosaicf2_state::mosaicf2) MCFG_PALETTE_ADD_RRRRRGGGGGBBBBB("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2151, XTAL(14'318'181)/4) /* 3.579545 MHz */ MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) @@ -266,7 +267,8 @@ MACHINE_CONFIG_START(mosaicf2_state::royalpk2) MCFG_PALETTE_ADD_RRRRRGGGGGBBBBB("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); // MCFG_DEVICE_ADD("ymsnd", YM2151, XTAL(14'318'181)/4) /* 3.579545 MHz */ // MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) diff --git a/src/mame/drivers/f1gp.cpp b/src/mame/drivers/f1gp.cpp index 4bcac869857..aeb69a7e5b7 100644 --- a/src/mame/drivers/f1gp.cpp +++ b/src/mame/drivers/f1gp.cpp @@ -452,7 +452,8 @@ MACHINE_CONFIG_START(f1gp_state::f1gp) MCFG_K053936_OFFSETS(-58, -2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) @@ -509,7 +510,8 @@ MACHINE_CONFIG_START(f1gp_state::f1gpb) MCFG_VIDEO_START_OVERRIDE(f1gp_state,f1gpb) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("oki", OKIM6295, 1000000, okim6295_device::PIN7_HIGH) // clock frequency & pin 7 not verified MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.50) diff --git a/src/mame/drivers/famibox.cpp b/src/mame/drivers/famibox.cpp index b2aa1d3bb66..76b5ff97386 100644 --- a/src/mame/drivers/famibox.cpp +++ b/src/mame/drivers/famibox.cpp @@ -540,7 +540,7 @@ MACHINE_CONFIG_START(famibox_state::famibox) MCFG_PPU2C0X_INT_CALLBACK(INPUTLINE("maincpu", INPUT_LINE_NMI)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MACHINE_CONFIG_END diff --git a/src/mame/drivers/fantland.cpp b/src/mame/drivers/fantland.cpp index e701e453efc..7819e423889 100644 --- a/src/mame/drivers/fantland.cpp +++ b/src/mame/drivers/fantland.cpp @@ -880,7 +880,7 @@ MACHINE_CONFIG_START(fantland_state::fantland) MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -928,7 +928,7 @@ MACHINE_CONFIG_START(fantland_state::galaxygn) MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -1008,7 +1008,7 @@ MACHINE_CONFIG_START(fantland_state::borntofi) MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -1063,7 +1063,7 @@ MACHINE_CONFIG_START(fantland_state::wheelrun) MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/fastfred.cpp b/src/mame/drivers/fastfred.cpp index e3c83f17e9d..5004c6de14a 100644 --- a/src/mame/drivers/fastfred.cpp +++ b/src/mame/drivers/fastfred.cpp @@ -671,7 +671,7 @@ MACHINE_CONFIG_START(fastfred_state::fastfred) MCFG_VIDEO_START_OVERRIDE(fastfred_state,fastfred) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/fastlane.cpp b/src/mame/drivers/fastlane.cpp index 19cb1907806..91f414bcd98 100644 --- a/src/mame/drivers/fastlane.cpp +++ b/src/mame/drivers/fastlane.cpp @@ -228,7 +228,7 @@ MACHINE_CONFIG_START(fastlane_state::fastlane) MCFG_K051733_ADD("k051733") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("k007232_1", K007232, XTAL(3'579'545)) MCFG_K007232_PORT_WRITE_HANDLER(WRITE8(*this, fastlane_state, volume_callback0)) diff --git a/src/mame/drivers/fb01.cpp b/src/mame/drivers/fb01.cpp index 770b64c2964..6b6e683e0dc 100644 --- a/src/mame/drivers/fb01.cpp +++ b/src/mame/drivers/fb01.cpp @@ -217,7 +217,8 @@ MACHINE_CONFIG_START(fb01_state::fb01) MCFG_MIDI_PORT_ADD("mdthru", midiout_slot, "midiout") - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ym2164", YM2151, XTAL(4'000'000)) MCFG_YM2151_IRQ_HANDLER(WRITELINE(*this, fb01_state, ym2164_irq_w)) MCFG_SOUND_ROUTE(0, "lspeaker", 1.00) diff --git a/src/mame/drivers/fc100.cpp b/src/mame/drivers/fc100.cpp index 375a011ca55..2175c285e35 100644 --- a/src/mame/drivers/fc100.cpp +++ b/src/mame/drivers/fc100.cpp @@ -529,7 +529,7 @@ MACHINE_CONFIG_START(fc100_state::fc100) MCFG_PALETTE_ADD_MONOCHROME("f4palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.05) MCFG_DEVICE_ADD("psg", AY8910, XTAL(7'159'090)/3/2) /* AY-3-8910 - clock not verified */ diff --git a/src/mame/drivers/fcombat.cpp b/src/mame/drivers/fcombat.cpp index 4fb94f0880e..21354f7d161 100644 --- a/src/mame/drivers/fcombat.cpp +++ b/src/mame/drivers/fcombat.cpp @@ -310,7 +310,7 @@ MACHINE_CONFIG_START(fcombat_state::fcombat) MCFG_PALETTE_INIT_OWNER(fcombat_state, fcombat) /* audio hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/fcrash.cpp b/src/mame/drivers/fcrash.cpp index 01ec1e86ce0..22692aa22cf 100644 --- a/src/mame/drivers/fcrash.cpp +++ b/src/mame/drivers/fcrash.cpp @@ -1645,7 +1645,7 @@ MACHINE_CONFIG_START(cps_state::fcrash) MCFG_VIDEO_START_OVERRIDE(cps_state,cps1) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -1710,7 +1710,7 @@ MACHINE_CONFIG_START(cps_state::kodb) MCFG_VIDEO_START_OVERRIDE(cps_state,cps1) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -1753,7 +1753,7 @@ MACHINE_CONFIG_START(cps_state::sf2mdt) MCFG_VIDEO_START_OVERRIDE(cps_state,cps1) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -1808,7 +1808,7 @@ MACHINE_CONFIG_START(cps_state::knightsb) MCFG_VIDEO_START_OVERRIDE(cps_state,cps1) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -2193,7 +2193,7 @@ MACHINE_CONFIG_START(cps_state::dinopic) MCFG_VIDEO_START_OVERRIDE(cps_state,cps1) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -2351,7 +2351,7 @@ MACHINE_CONFIG_START(cps_state::sgyxz) MCFG_EEPROM_SERIAL_93C46_8BIT_ADD("eeprom") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_8_ADD("soundlatch2") @@ -2478,7 +2478,7 @@ MACHINE_CONFIG_START(cps_state::punipic) MCFG_VIDEO_START_OVERRIDE(cps_state,cps1) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -2668,7 +2668,7 @@ MACHINE_CONFIG_START(cps_state::sf2m1) MCFG_VIDEO_START_OVERRIDE(cps_state,cps1) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_8_ADD("soundlatch2") MCFG_DEVICE_ADD("2151", YM2151, XTAL(3'579'545)) @@ -3057,7 +3057,7 @@ MACHINE_CONFIG_START(cps_state::slampic) MCFG_VIDEO_START_OVERRIDE(cps_state,cps1) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, 1000000, okim6295_device::PIN7_HIGH) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30) @@ -3158,7 +3158,7 @@ MACHINE_CONFIG_START(cps_state::varthb) MCFG_VIDEO_START_OVERRIDE(cps_state,cps1) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_8_ADD("soundlatch2") diff --git a/src/mame/drivers/feversoc.cpp b/src/mame/drivers/feversoc.cpp index 9b45ad86181..514278a0d56 100644 --- a/src/mame/drivers/feversoc.cpp +++ b/src/mame/drivers/feversoc.cpp @@ -306,7 +306,7 @@ MACHINE_CONFIG_START(feversoc_state::feversoc) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, MASTER_CLOCK/16, okim6295_device::PIN7_LOW) //pin 7 & frequency not verified (clock should be 28,6363 / n) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.6) diff --git a/src/mame/drivers/fidel6502.cpp b/src/mame/drivers/fidel6502.cpp index 921a5523e90..552508de7ee 100644 --- a/src/mame/drivers/fidel6502.cpp +++ b/src/mame/drivers/fidel6502.cpp @@ -1709,7 +1709,7 @@ MACHINE_CONFIG_START(fidel6502_state::rsc) MCFG_DEFAULT_LAYOUT(layout_fidel_rsc_v2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) @@ -1741,7 +1741,7 @@ MACHINE_CONFIG_START(fidel6502_state::csc) MCFG_DEFAULT_LAYOUT(layout_fidel_csc) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("speech", S14001A, 25000) // R/C circuit, around 25khz MCFG_S14001A_EXT_READ_HANDLER(READ8(*this, fidel6502_state, csc_speech_r)) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.75) @@ -1782,7 +1782,7 @@ MACHINE_CONFIG_START(fidel6502_state::eas) MCFG_DEFAULT_LAYOUT(layout_fidel_eas) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("speech", S14001A, 25000) // R/C circuit, around 25khz MCFG_S14001A_EXT_READ_HANDLER(READ8(*this, fidel6502_state, csc_speech_r)) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.75) @@ -1809,7 +1809,7 @@ MACHINE_CONFIG_START(fidel6502_state::pc) MCFG_DEFAULT_LAYOUT(layout_fidel_pc) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("speech", S14001A, 25000) // R/C circuit, around 25khz MCFG_S14001A_EXT_READ_HANDLER(READ8(*this, fidel6502_state, csc_speech_r)) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.75) @@ -1849,7 +1849,7 @@ MACHINE_CONFIG_START(fidel6502_state::sc9d) MCFG_DEFAULT_LAYOUT(layout_fidel_sc9) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) @@ -1907,7 +1907,7 @@ MACHINE_CONFIG_START(fidel6502_state::sc12) MCFG_DEFAULT_LAYOUT(layout_fidel_sc12) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) @@ -1950,7 +1950,7 @@ MACHINE_CONFIG_START(fidel6502_state::fexcel) MCFG_DEFAULT_LAYOUT(layout_fidel_ex) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) @@ -2042,7 +2042,7 @@ MACHINE_CONFIG_START(fidel6502_state::fdes2100d) MCFG_DEFAULT_LAYOUT(layout_fidel_desdis) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) @@ -2069,7 +2069,7 @@ MACHINE_CONFIG_START(fidel6502_state::fphantom) //MCFG_DEFAULT_LAYOUT(layout_fidel_phantom) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) @@ -2088,7 +2088,7 @@ MACHINE_CONFIG_START(fidel6502_state::chesster) MCFG_DEFAULT_LAYOUT(layout_fidel_chesster) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac8", DAC_8BIT_R2R, 0) // m74hc374b1.ic1 + 8l513_02.z2 MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) diff --git a/src/mame/drivers/fidel68k.cpp b/src/mame/drivers/fidel68k.cpp index 4d8620a1a84..77d2dbd7061 100644 --- a/src/mame/drivers/fidel68k.cpp +++ b/src/mame/drivers/fidel68k.cpp @@ -570,7 +570,7 @@ MACHINE_CONFIG_START(fidel68k_state::fex68k) MCFG_DEFAULT_LAYOUT(layout_fidel_ex_68k) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) @@ -606,7 +606,7 @@ MACHINE_CONFIG_START(fidel68k_state::fdes2265) MCFG_DEFAULT_LAYOUT(layout_fidel_desdis_68kr) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) @@ -641,7 +641,7 @@ MACHINE_CONFIG_START(fidel68k_state::eag) MCFG_RAM_EXTRA_OPTIONS("128K, 512K, 1M") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) diff --git a/src/mame/drivers/fidelmcs48.cpp b/src/mame/drivers/fidelmcs48.cpp index 58ea092483a..f1fc40116ba 100644 --- a/src/mame/drivers/fidelmcs48.cpp +++ b/src/mame/drivers/fidelmcs48.cpp @@ -162,7 +162,7 @@ MACHINE_CONFIG_START(fidelmcs48_state::sc6) MCFG_DEFAULT_LAYOUT(layout_fidel_sc6) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) diff --git a/src/mame/drivers/fidelz80.cpp b/src/mame/drivers/fidelz80.cpp index 52eb008bc66..d8545d5051d 100644 --- a/src/mame/drivers/fidelz80.cpp +++ b/src/mame/drivers/fidelz80.cpp @@ -1663,7 +1663,7 @@ MACHINE_CONFIG_START(fidelz80_state::bcc) MCFG_DEFAULT_LAYOUT(layout_fidel_bcc) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) @@ -1680,7 +1680,7 @@ MACHINE_CONFIG_START(fidelz80_state::scc) MCFG_DEFAULT_LAYOUT(layout_fidel_sc8) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) @@ -1706,7 +1706,7 @@ MACHINE_CONFIG_START(fidelz80_state::cc10) MCFG_DEFAULT_LAYOUT(layout_fidel_cc) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, 1360) // approximation, from 556 timer ic MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) MCFG_TIMER_DRIVER_ADD("beeper_off", fidelz80_state, beeper_off_callback) @@ -1734,7 +1734,7 @@ MACHINE_CONFIG_START(fidelz80_state::vcc) MCFG_MACHINE_START_OVERRIDE(fidelz80_state,vcc) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("speech", S14001A, 25000) // R/C circuit, around 25khz MCFG_S14001A_EXT_READ_HANDLER(READ8(*this, fidelz80_state, vcc_speech_r)) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.75) @@ -1762,7 +1762,7 @@ MACHINE_CONFIG_START(fidelz80_state::vsc) MCFG_DEFAULT_LAYOUT(layout_fidel_vsc) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("speech", S14001A, 25000) // R/C circuit, around 25khz MCFG_S14001A_EXT_READ_HANDLER(READ8(*this, fidelz80_state, vcc_speech_r)) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.75) @@ -1790,7 +1790,7 @@ MACHINE_CONFIG_START(fidelz80_state::vbrc) MCFG_DEFAULT_LAYOUT(layout_fidel_vbrc) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("speech", S14001A, 25000) // R/C circuit, around 25khz MCFG_S14001A_BSY_HANDLER(INPUTLINE("maincpu", Z80_INPUT_LINE_WAIT)) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.75) @@ -1809,7 +1809,7 @@ MACHINE_CONFIG_START(fidelz80_state::dsc) MCFG_DEFAULT_LAYOUT(layout_fidel_dsc) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) diff --git a/src/mame/drivers/finalizr.cpp b/src/mame/drivers/finalizr.cpp index 65c31957275..5f4ae999614 100644 --- a/src/mame/drivers/finalizr.cpp +++ b/src/mame/drivers/finalizr.cpp @@ -295,7 +295,7 @@ MACHINE_CONFIG_START(finalizr_state::finalizr) MCFG_PALETTE_INIT_OWNER(finalizr_state, finalizr) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/fireball.cpp b/src/mame/drivers/fireball.cpp index e77d883c088..c5582180a01 100644 --- a/src/mame/drivers/fireball.cpp +++ b/src/mame/drivers/fireball.cpp @@ -505,7 +505,7 @@ MACHINE_CONFIG_START(fireball_state::fireball) MCFG_EEPROM_SERIAL_X24C44_ADD("eeprom") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8912, AY_CLK) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/firebeat.cpp b/src/mame/drivers/firebeat.cpp index 4d8a207ae2f..704de94db7e 100644 --- a/src/mame/drivers/firebeat.cpp +++ b/src/mame/drivers/firebeat.cpp @@ -1211,7 +1211,8 @@ MACHINE_CONFIG_START(firebeat_state::firebeat) MCFG_VIDEO_START_OVERRIDE(firebeat_state,firebeat) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymz", YMZ280B, 16934400) MCFG_YMZ280B_IRQ_HANDLER(WRITELINE(*this, firebeat_state, sound_irq_callback)) @@ -1279,7 +1280,8 @@ MACHINE_CONFIG_START(firebeat_state::firebeat2) MCFG_VIDEO_START_OVERRIDE(firebeat_state,firebeat) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymz", YMZ280B, 16934400) MCFG_YMZ280B_IRQ_HANDLER(WRITELINE(*this, firebeat_state, sound_irq_callback)) diff --git a/src/mame/drivers/firefox.cpp b/src/mame/drivers/firefox.cpp index bbf68f27d73..597679820d0 100644 --- a/src/mame/drivers/firefox.cpp +++ b/src/mame/drivers/firefox.cpp @@ -709,7 +709,8 @@ MACHINE_CONFIG_START(firefox_state::firefox) MCFG_RIOT6532_IRQ_CB(INPUTLINE("audiocpu", M6502_IRQ_LINE)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) diff --git a/src/mame/drivers/firetrap.cpp b/src/mame/drivers/firetrap.cpp index 679abc3a60a..6c9c81f3a22 100644 --- a/src/mame/drivers/firetrap.cpp +++ b/src/mame/drivers/firetrap.cpp @@ -646,7 +646,7 @@ MACHINE_CONFIG_START(firetrap_state::firetrap) MCFG_PALETTE_INIT_OWNER(firetrap_state, firetrap) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) @@ -691,7 +691,7 @@ MACHINE_CONFIG_START(firetrap_state::firetrapbl) MCFG_PALETTE_INIT_OWNER(firetrap_state, firetrap) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) diff --git a/src/mame/drivers/firetrk.cpp b/src/mame/drivers/firetrk.cpp index 7899763774b..f233f7fb5c9 100644 --- a/src/mame/drivers/firetrk.cpp +++ b/src/mame/drivers/firetrk.cpp @@ -876,7 +876,7 @@ MACHINE_CONFIG_START(firetrk_state::firetrk) MCFG_GFXDECODE_ADD("gfxdecode", "palette", firetrk) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("discrete", DISCRETE, firetrk_discrete) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/fitfight.cpp b/src/mame/drivers/fitfight.cpp index 846b2e34296..a7561f36abb 100644 --- a/src/mame/drivers/fitfight.cpp +++ b/src/mame/drivers/fitfight.cpp @@ -755,7 +755,7 @@ MACHINE_CONFIG_START(fitfight_state::fitfight) MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, 1333333, okim6295_device::PIN7_LOW) // ~8080Hz ??? TODO: find out the real frequency MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -782,7 +782,7 @@ MACHINE_CONFIG_START(fitfight_state::bbprot) MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, 1333333, okim6295_device::PIN7_LOW) // ~8080Hz ??? TODO: find out the real frequency MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/flipjack.cpp b/src/mame/drivers/flipjack.cpp index cd3e6b2c745..47408594815 100644 --- a/src/mame/drivers/flipjack.cpp +++ b/src/mame/drivers/flipjack.cpp @@ -478,7 +478,7 @@ MACHINE_CONFIG_START(flipjack_state::flipjack) MCFG_PALETTE_INIT_OWNER(flipjack_state, flipjack) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay1", AY8910, MASTER_CLOCK/8) MCFG_AY8910_PORT_A_READ_CB(READ8(*this, flipjack_state, flipjack_soundlatch_r)) /* Port A read */ diff --git a/src/mame/drivers/flkatck.cpp b/src/mame/drivers/flkatck.cpp index 941189f82a0..7a79ddafd81 100644 --- a/src/mame/drivers/flkatck.cpp +++ b/src/mame/drivers/flkatck.cpp @@ -242,7 +242,8 @@ MACHINE_CONFIG_START(flkatck_state::flkatck) MCFG_K007121_PALETTE("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/flower.cpp b/src/mame/drivers/flower.cpp index e82849c5498..d1ae6ebdae9 100644 --- a/src/mame/drivers/flower.cpp +++ b/src/mame/drivers/flower.cpp @@ -516,7 +516,7 @@ MACHINE_CONFIG_START(flower_state::flower) MCFG_GENERIC_LATCH_8_ADD("soundlatch") - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("flower", FLOWER_CUSTOM, 96000) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/flstory.cpp b/src/mame/drivers/flstory.cpp index 3c133e38157..27c046ebe5e 100644 --- a/src/mame/drivers/flstory.cpp +++ b/src/mame/drivers/flstory.cpp @@ -769,7 +769,7 @@ MACHINE_CONFIG_START(flstory_state::flstory) MCFG_VIDEO_START_OVERRIDE(flstory_state,flstory) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(WRITELINE("soundnmi", input_merger_device, in_w<0>)) @@ -838,7 +838,7 @@ MACHINE_CONFIG_START(flstory_state::onna34ro) MCFG_VIDEO_START_OVERRIDE(flstory_state,flstory) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(WRITELINE("soundnmi", input_merger_device, in_w<0>)) @@ -918,7 +918,7 @@ MACHINE_CONFIG_START(flstory_state::victnine) MCFG_VIDEO_START_OVERRIDE(flstory_state,victnine) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(WRITELINE("soundnmi", input_merger_device, in_w<0>)) @@ -991,7 +991,7 @@ MACHINE_CONFIG_START(flstory_state::rumba) MCFG_VIDEO_START_OVERRIDE(flstory_state,rumba) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(WRITELINE("soundnmi", input_merger_device, in_w<0>)) diff --git a/src/mame/drivers/fm7.cpp b/src/mame/drivers/fm7.cpp index 9840aadbcb3..03c354424e5 100644 --- a/src/mame/drivers/fm7.cpp +++ b/src/mame/drivers/fm7.cpp @@ -2078,7 +2078,7 @@ MACHINE_CONFIG_START(fm7_state::fm7) MCFG_DEVICE_IRQ_ACKNOWLEDGE_DRIVER(fm7_state,fm7_sub_irq_ack) MCFG_QUANTUM_PERFECT_CPU("sub") - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("psg", AY8910, XTAL(4'915'200) / 4) MCFG_SOUND_ROUTE(ALL_OUTPUTS,"mono", 1.00) MCFG_DEVICE_ADD("beeper", BEEP, 1200) @@ -2133,7 +2133,7 @@ MACHINE_CONFIG_START(fm7_state::fm8) MCFG_DEVICE_IRQ_ACKNOWLEDGE_DRIVER(fm7_state,fm7_sub_irq_ack) MCFG_QUANTUM_PERFECT_CPU("sub") - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, 1200) MCFG_SOUND_ROUTE(ALL_OUTPUTS,"mono",0.50) MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") @@ -2181,7 +2181,7 @@ MACHINE_CONFIG_START(fm7_state::fm77av) MCFG_DEVICE_IRQ_ACKNOWLEDGE_DRIVER(fm7_state,fm7_sub_irq_ack) MCFG_QUANTUM_PERFECT_CPU("sub") - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ym", YM2203, XTAL(4'915'200) / 4) MCFG_YM2203_IRQ_HANDLER(WRITELINE(*this, fm7_state, fm77av_fmirq)) MCFG_AY8910_PORT_A_READ_CB(READ8(*this, fm7_state, fm77av_joy_1_r)) @@ -2261,7 +2261,7 @@ MACHINE_CONFIG_START(fm7_state::fm11) MCFG_DEVICE_PROGRAM_MAP(fm11_x86_mem) MCFG_DEVICE_IO_MAP(fm11_x86_io) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, 1200) MCFG_SOUND_ROUTE(ALL_OUTPUTS,"mono",0.50) MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") @@ -2326,7 +2326,7 @@ MACHINE_CONFIG_START(fm7_state::fm16beta) MCFG_DEVICE_PROGRAM_MAP(fm16_sub_mem) MCFG_QUANTUM_PERFECT_CPU("sub") - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, 1200) MCFG_SOUND_ROUTE(ALL_OUTPUTS,"mono",0.50) MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") diff --git a/src/mame/drivers/fmtowns.cpp b/src/mame/drivers/fmtowns.cpp index fab15cad828..ffc69d036a0 100644 --- a/src/mame/drivers/fmtowns.cpp +++ b/src/mame/drivers/fmtowns.cpp @@ -2791,7 +2791,8 @@ MACHINE_CONFIG_START(towns_state::towns_base) MCFG_PALETTE_ADD("palette16_1", 16) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("fm", YM3438, 16000000 / 2) // actual clock speed unknown MCFG_YM2612_IRQ_HANDLER(WRITELINE(*this, towns_state, towns_fm_irq)) MCFG_SOUND_ROUTE(0, "lspeaker", 1.00) diff --git a/src/mame/drivers/foodf.cpp b/src/mame/drivers/foodf.cpp index d244df7e966..e4a12f8a392 100644 --- a/src/mame/drivers/foodf.cpp +++ b/src/mame/drivers/foodf.cpp @@ -348,7 +348,7 @@ MACHINE_CONFIG_START(foodf_state::foodf) MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, foodf_state, video_int_write_line)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("pokey1", POKEY, MASTER_CLOCK/2/10) MCFG_POKEY_POT0_R_CB(READ8(*this, foodf_state, pot_r)) diff --git a/src/mame/drivers/forte2.cpp b/src/mame/drivers/forte2.cpp index de3718fd86e..65c85d610ad 100644 --- a/src/mame/drivers/forte2.cpp +++ b/src/mame/drivers/forte2.cpp @@ -141,7 +141,7 @@ MACHINE_CONFIG_START(forte2_state::pesadelo) MCFG_SCREEN_UPDATE_DEVICE("tms9928a", tms9928a_device, screen_update) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, XTAL(3'579'545)/2) MCFG_AY8910_PORT_A_READ_CB(READ8(*this, forte2_state, forte2_ay8910_read_input)) MCFG_AY8910_PORT_B_WRITE_CB(WRITE8(*this, forte2_state, forte2_ay8910_set_input_mask)) diff --git a/src/mame/drivers/fortecar.cpp b/src/mame/drivers/fortecar.cpp index d91c84a6e86..d36bd58c486 100644 --- a/src/mame/drivers/fortecar.cpp +++ b/src/mame/drivers/fortecar.cpp @@ -722,7 +722,7 @@ MACHINE_CONFIG_START(fortecar_state::fortecar) MCFG_MC6845_CHAR_WIDTH(8) MCFG_MC6845_OUT_VSYNC_CB(INPUTLINE("maincpu", INPUT_LINE_NMI)) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, AY_CLOCK) /* 1.5 MHz, measured */ MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(*this, fortecar_state, ayporta_w)) diff --git a/src/mame/drivers/fp1100.cpp b/src/mame/drivers/fp1100.cpp index 2b66f76767d..d4d1854c8fc 100644 --- a/src/mame/drivers/fp1100.cpp +++ b/src/mame/drivers/fp1100.cpp @@ -661,7 +661,7 @@ MACHINE_CONFIG_START(fp1100_state::fp1100) MCFG_GFXDECODE_ADD("gfxdecode", "palette", fp1100) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, 950) // guess MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) // inside the keyboard diff --git a/src/mame/drivers/fp200.cpp b/src/mame/drivers/fp200.cpp index 7004b6547a6..b00ed936933 100644 --- a/src/mame/drivers/fp200.cpp +++ b/src/mame/drivers/fp200.cpp @@ -608,7 +608,7 @@ MACHINE_CONFIG_START(fp200_state::fp200) MCFG_PALETTE_INIT_OWNER(fp200_state, fp200) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); // MCFG_DEVICE_ADD("aysnd", AY8910, MAIN_CLOCK/4) // MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30) MACHINE_CONFIG_END diff --git a/src/mame/drivers/freekick.cpp b/src/mame/drivers/freekick.cpp index 416e2284ec1..e7f92be740b 100644 --- a/src/mame/drivers/freekick.cpp +++ b/src/mame/drivers/freekick.cpp @@ -756,7 +756,7 @@ MACHINE_CONFIG_START(freekick_state::omega) MCFG_PALETTE_ADD_RRRRGGGGBBBB_PROMS("palette", "proms", 0x200) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("sn1", SN76489A, XTAL(18'432'000)/6) // unknown divisor MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) @@ -794,7 +794,7 @@ MACHINE_CONFIG_START(freekick_state::base) MCFG_PALETTE_ADD_RRRRGGGGBBBB_PROMS("palette", "proms", 0x200) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("sn1", SN76489A, XTAL(12'000'000)/4) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/fresh.cpp b/src/mame/drivers/fresh.cpp index c048d289a2f..fed8bf381aa 100644 --- a/src/mame/drivers/fresh.cpp +++ b/src/mame/drivers/fresh.cpp @@ -615,7 +615,7 @@ MACHINE_CONFIG_START(fresh_state::fresh) MCFG_GFXDECODE_ADD("gfxdecode", "palette", fresh) /* sound hw? */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2413, 4000000) // actual clock and type unknown MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/fromanc2.cpp b/src/mame/drivers/fromanc2.cpp index 08e79bbc1db..45abaa950b2 100644 --- a/src/mame/drivers/fromanc2.cpp +++ b/src/mame/drivers/fromanc2.cpp @@ -549,7 +549,7 @@ MACHINE_CONFIG_START(fromanc2_state::fromanc2) MCFG_VIDEO_START_OVERRIDE(fromanc2_state,fromanc2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_8_ADD("soundlatch2") @@ -609,7 +609,7 @@ MACHINE_CONFIG_START(fromanc2_state::fromancr) MCFG_VIDEO_START_OVERRIDE(fromanc2_state,fromancr) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_8_ADD("soundlatch2") @@ -670,7 +670,7 @@ MACHINE_CONFIG_START(fromanc2_state::fromanc4) MCFG_VIDEO_START_OVERRIDE(fromanc2_state,fromanc4) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_8_ADD("soundlatch2") diff --git a/src/mame/drivers/fromance.cpp b/src/mame/drivers/fromance.cpp index 573addc3263..ecd72cfcae6 100644 --- a/src/mame/drivers/fromance.cpp +++ b/src/mame/drivers/fromance.cpp @@ -934,7 +934,7 @@ MACHINE_CONFIG_START(fromance_state::nekkyoku) MCFG_VIDEO_START_OVERRIDE(fromance_state,nekkyoku) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, 12000000/6) // type not verified MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.15) @@ -980,7 +980,7 @@ MACHINE_CONFIG_START(fromance_state::idolmj) MCFG_VIDEO_START_OVERRIDE(fromance_state,fromance) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", YM2149, XTAL(12'000'000) / 6) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.15) @@ -1026,7 +1026,7 @@ MACHINE_CONFIG_START(fromance_state::fromance) MCFG_VIDEO_START_OVERRIDE(fromance_state,fromance) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2413, 3579545) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.90) diff --git a/src/mame/drivers/funkybee.cpp b/src/mame/drivers/funkybee.cpp index 81a98931029..93b21f4dcc5 100644 --- a/src/mame/drivers/funkybee.cpp +++ b/src/mame/drivers/funkybee.cpp @@ -315,7 +315,7 @@ MACHINE_CONFIG_START(funkybee_state::funkybee) MCFG_PALETTE_INIT_OWNER(funkybee_state, funkybee) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8912, 1500000) // AY-3-8912 verified for Sky Lancer MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW")) diff --git a/src/mame/drivers/funkyjet.cpp b/src/mame/drivers/funkyjet.cpp index 231125074da..0fa3ad48338 100644 --- a/src/mame/drivers/funkyjet.cpp +++ b/src/mame/drivers/funkyjet.cpp @@ -362,7 +362,8 @@ MACHINE_CONFIG_START(funkyjet_state::funkyjet) MCFG_DECO_SPRITE_GFXDECODE("gfxdecode") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2151, XTAL(32'220'000)/9) MCFG_YM2151_IRQ_HANDLER(INPUTLINE("audiocpu", 1)) // IRQ2 diff --git a/src/mame/drivers/funtech.cpp b/src/mame/drivers/funtech.cpp index 8595f7bf7c9..6f48df2762d 100644 --- a/src/mame/drivers/funtech.cpp +++ b/src/mame/drivers/funtech.cpp @@ -511,7 +511,7 @@ MACHINE_CONFIG_START(fun_tech_corp_state::funtech) MCFG_TICKET_DISPENSER_ADD("hopper", attotime::from_msec(50), TICKET_MOTOR_ACTIVE_HIGH, TICKET_STATUS_ACTIVE_HIGH) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, 1500000) /* M5255, ? MHz */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) diff --git a/src/mame/drivers/funworld.cpp b/src/mame/drivers/funworld.cpp index 3c923d5f50e..07357a0e001 100644 --- a/src/mame/drivers/funworld.cpp +++ b/src/mame/drivers/funworld.cpp @@ -3102,7 +3102,7 @@ MACHINE_CONFIG_START(funworld_state::fw1stpal) MCFG_MC6845_OUT_VSYNC_CB(INPUTLINE("maincpu", INPUT_LINE_NMI)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay8910", AY8910, SND_CLOCK) /* 2MHz */ MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(*this, funworld_state, funworld_lamp_a_w)) /* portA out */ diff --git a/src/mame/drivers/funybubl.cpp b/src/mame/drivers/funybubl.cpp index 3a7ab736451..c980411c903 100644 --- a/src/mame/drivers/funybubl.cpp +++ b/src/mame/drivers/funybubl.cpp @@ -246,7 +246,7 @@ MACHINE_CONFIG_START(funybubl_state::funybubl) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/fuukifg2.cpp b/src/mame/drivers/fuukifg2.cpp index d3765388122..73d483f0211 100644 --- a/src/mame/drivers/fuukifg2.cpp +++ b/src/mame/drivers/fuukifg2.cpp @@ -471,7 +471,7 @@ MACHINE_CONFIG_START(fuuki16_state::fuuki16) MCFG_FUUKI_VIDEO_GFXDECODE("gfxdecode") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/fuukifg3.cpp b/src/mame/drivers/fuukifg3.cpp index 1d258755841..93b44f0300a 100644 --- a/src/mame/drivers/fuukifg3.cpp +++ b/src/mame/drivers/fuukifg3.cpp @@ -557,7 +557,8 @@ MACHINE_CONFIG_START(fuuki32_state::fuuki32) MCFG_FUUKI_VIDEO_GFXDECODE("gfxdecode") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymf", YMF278B, YMF278B_STD_CLOCK) // 33.8688MHz MCFG_YMF278B_IRQ_HANDLER(INPUTLINE("soundcpu", 0)) diff --git a/src/mame/drivers/g627.cpp b/src/mame/drivers/g627.cpp index 172e4167a25..7a8b6c56ade 100644 --- a/src/mame/drivers/g627.cpp +++ b/src/mame/drivers/g627.cpp @@ -310,7 +310,7 @@ MACHINE_CONFIG_START(g627_state::g627) /* Sound */ genpin_audio(config); - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("astrocade", ASTROCADE, 14138000/8) // 0066-117XX audio chip MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/gaelco.cpp b/src/mame/drivers/gaelco.cpp index 00ded7e659d..4186cf645c1 100644 --- a/src/mame/drivers/gaelco.cpp +++ b/src/mame/drivers/gaelco.cpp @@ -658,7 +658,7 @@ MACHINE_CONFIG_START(gaelco_state::bigkarnk) MCFG_VIDEO_START_OVERRIDE(gaelco_state,bigkarnk) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", M6809_FIRQ_LINE)) @@ -693,7 +693,7 @@ MACHINE_CONFIG_START(gaelco_state::maniacsq) MCFG_VIDEO_START_OVERRIDE(gaelco_state,maniacsq) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, XTAL(1'000'000), okim6295_device::PIN7_HIGH) // pin 7 not verified MCFG_DEVICE_ADDRESS_MAP(0, oki_map) @@ -732,7 +732,7 @@ MACHINE_CONFIG_START(gaelco_state::squash) MCFG_VIDEO_START_OVERRIDE(gaelco_state,maniacsq) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, XTAL(1'000'000), okim6295_device::PIN7_HIGH) /* verified on pcb */ MCFG_DEVICE_ADDRESS_MAP(0, oki_map) @@ -771,7 +771,7 @@ MACHINE_CONFIG_START(gaelco_state::thoop) MCFG_VIDEO_START_OVERRIDE(gaelco_state,maniacsq) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, XTAL(1'000'000), okim6295_device::PIN7_HIGH) // pin 7 not verified MCFG_DEVICE_ADDRESS_MAP(0, oki_map) diff --git a/src/mame/drivers/gaelco2.cpp b/src/mame/drivers/gaelco2.cpp index 46039d87bfd..8fb10f36deb 100644 --- a/src/mame/drivers/gaelco2.cpp +++ b/src/mame/drivers/gaelco2.cpp @@ -201,7 +201,8 @@ MACHINE_CONFIG_START(gaelco2_state::maniacsq) MCFG_VIDEO_START_OVERRIDE(gaelco2_state,gaelco2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("gaelco", GAELCO_GAE1, 0) MCFG_GAELCO_SND_DATA("gfx1") @@ -631,7 +632,8 @@ MACHINE_CONFIG_START(gaelco2_state::play2000) MCFG_VIDEO_START_OVERRIDE(gaelco2_state,gaelco2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("gaelco", GAELCO_GAE1, 0) MCFG_GAELCO_SND_DATA("gfx1") @@ -735,7 +737,8 @@ MACHINE_CONFIG_START(bang_state::bang) MCFG_VIDEO_START_OVERRIDE(gaelco2_state,gaelco2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("gaelco", GAELCO_CG1V, 0) MCFG_GAELCO_SND_DATA("gfx1") @@ -972,7 +975,8 @@ MACHINE_CONFIG_START(gaelco2_state::alighunt) MCFG_VIDEO_START_OVERRIDE(gaelco2_state,gaelco2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("gaelco", GAELCO_GAE1, 0) MCFG_GAELCO_SND_DATA("gfx1") @@ -1286,7 +1290,8 @@ MACHINE_CONFIG_START(gaelco2_state::touchgo) /* sound hardware */ /* the chip is stereo, but the game sound is mono because the right channel output is for cabinet 1 and the left channel output is for cabinet 2 */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("gaelco", GAELCO_GAE1, 0) MCFG_GAELCO_SND_DATA("gfx1") @@ -1582,7 +1587,8 @@ MACHINE_CONFIG_START(gaelco2_state::snowboar) MCFG_VIDEO_START_OVERRIDE(gaelco2_state,gaelco2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("gaelco", GAELCO_CG1V, 0) MCFG_GAELCO_SND_DATA("gfx1") @@ -1624,7 +1630,8 @@ MACHINE_CONFIG_START(gaelco2_state::maniacsqs) MCFG_VIDEO_START_OVERRIDE(gaelco2_state,gaelco2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("gaelco", GAELCO_GAE1, 0) MCFG_GAELCO_SND_DATA("gfx1") @@ -1880,7 +1887,8 @@ MACHINE_CONFIG_START(wrally2_state::wrally2) /* sound hardware */ /* the chip is stereo, but the game sound is mono because the right channel output is for cabinet 1 and the left channel output is for cabinet 2 */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("gaelco", GAELCO_GAE1, 0) MCFG_GAELCO_SND_DATA("gfx1") diff --git a/src/mame/drivers/gaelco3d.cpp b/src/mame/drivers/gaelco3d.cpp index d6ee065b9c8..edeff7c6496 100644 --- a/src/mame/drivers/gaelco3d.cpp +++ b/src/mame/drivers/gaelco3d.cpp @@ -985,7 +985,7 @@ MACHINE_CONFIG_START(gaelco3d_state::gaelco3d) MCFG_PALETTE_ADD_RRRRRGGGGGBBBBB("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("dac1", DMADAC) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) /* speedup: front mono */ diff --git a/src/mame/drivers/gaiden.cpp b/src/mame/drivers/gaiden.cpp index c9173c38257..38d072afe6f 100644 --- a/src/mame/drivers/gaiden.cpp +++ b/src/mame/drivers/gaiden.cpp @@ -796,7 +796,7 @@ MACHINE_CONFIG_START(gaiden_state::shadoww) MCFG_VIDEO_START_OVERRIDE(gaiden_state,gaiden) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) @@ -863,7 +863,7 @@ MACHINE_CONFIG_START(gaiden_state::drgnbowl) MCFG_VIDEO_START_OVERRIDE(gaiden_state,drgnbowl) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", 0)) @@ -1021,7 +1021,7 @@ MACHINE_CONFIG_START(gaiden_state::mastninj) MCFG_VIDEO_START_OVERRIDE(gaiden_state,drgnbowl) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", 0)) diff --git a/src/mame/drivers/gal3.cpp b/src/mame/drivers/gal3.cpp index 8ba37806145..0a969315c40 100644 --- a/src/mame/drivers/gal3.cpp +++ b/src/mame/drivers/gal3.cpp @@ -652,7 +652,8 @@ MACHINE_CONFIG_START(gal3_state::gal3) MCFG_VIDEO_START_OVERRIDE(gal3_state,gal3) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_C140_ADD("c140_16g", 8000000/374) MCFG_C140_BANK_TYPE(SYSTEM21) //to be verified diff --git a/src/mame/drivers/galaga.cpp b/src/mame/drivers/galaga.cpp index 10b8db3f640..0e44001b12d 100644 --- a/src/mame/drivers/galaga.cpp +++ b/src/mame/drivers/galaga.cpp @@ -1649,7 +1649,7 @@ MACHINE_CONFIG_START(bosco_state::bosco) MCFG_VIDEO_START_OVERRIDE(bosco_state,bosco) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("namco", NAMCO, MASTER_CLOCK/6/32) MCFG_NAMCO_AUDIO_VOICES(3) @@ -1724,7 +1724,7 @@ MACHINE_CONFIG_START(galaga_state::galaga) MCFG_VIDEO_START_OVERRIDE(galaga_state,galaga) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("namco", NAMCO, MASTER_CLOCK/6/32) MCFG_NAMCO_AUDIO_VOICES(3) @@ -1829,7 +1829,7 @@ MACHINE_CONFIG_START(xevious_state::xevious) MCFG_VIDEO_START_OVERRIDE(xevious_state,xevious) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("namco", NAMCO, MASTER_CLOCK/6/32) MCFG_NAMCO_AUDIO_VOICES(3) @@ -1950,7 +1950,7 @@ MACHINE_CONFIG_START(digdug_state::digdug) MCFG_VIDEO_START_OVERRIDE(digdug_state,digdug) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("namco", NAMCO, MASTER_CLOCK/6/32) MCFG_NAMCO_AUDIO_VOICES(3) diff --git a/src/mame/drivers/galaxi.cpp b/src/mame/drivers/galaxi.cpp index 1d48641c520..846ba82ec01 100644 --- a/src/mame/drivers/galaxi.cpp +++ b/src/mame/drivers/galaxi.cpp @@ -485,7 +485,7 @@ MACHINE_CONFIG_START(galaxi_state::galaxi) MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, SND_CLOCK, okim6295_device::PIN7_LOW) // ? MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/galaxia.cpp b/src/mame/drivers/galaxia.cpp index 8e4dd6e249c..37477375d45 100644 --- a/src/mame/drivers/galaxia.cpp +++ b/src/mame/drivers/galaxia.cpp @@ -331,7 +331,7 @@ MACHINE_CONFIG_START(galaxia_state::galaxia) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MACHINE_CONFIG_END @@ -367,7 +367,7 @@ MACHINE_CONFIG_START(galaxia_state::astrowar) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MACHINE_CONFIG_END diff --git a/src/mame/drivers/galaxian.cpp b/src/mame/drivers/galaxian.cpp index 19cf93e30be..b57747b7d9b 100644 --- a/src/mame/drivers/galaxian.cpp +++ b/src/mame/drivers/galaxian.cpp @@ -5799,7 +5799,7 @@ MACHINE_CONFIG_START(galaxian_state::galaxian_base) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MACHINE_CONFIG_END diff --git a/src/mame/drivers/galaxold.cpp b/src/mame/drivers/galaxold.cpp index 2d00ca15e00..f20084a6228 100644 --- a/src/mame/drivers/galaxold.cpp +++ b/src/mame/drivers/galaxold.cpp @@ -2273,7 +2273,7 @@ MACHINE_CONFIG_START(galaxold_state::galaxold_base) MCFG_VIDEO_START_OVERRIDE(galaxold_state,galaxold) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MACHINE_CONFIG_END @@ -2508,7 +2508,7 @@ MACHINE_CONFIG_START(galaxold_state::drivfrcg) MCFG_VIDEO_START_OVERRIDE(galaxold_state,drivfrcg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); galaxian_audio(config); MACHINE_CONFIG_END @@ -2594,7 +2594,7 @@ MACHINE_CONFIG_START(galaxold_state::racknrol) MCFG_VIDEO_START_OVERRIDE(galaxold_state,racknrol) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("snsnd", SN76489A, PIXEL_CLOCK/2) // SN76489AN MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 1.0) MACHINE_CONFIG_END @@ -2622,7 +2622,7 @@ MACHINE_CONFIG_START(galaxold_state::hexpoola) MCFG_VIDEO_START_OVERRIDE(galaxold_state,racknrol) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("snsnd", SN76496, PIXEL_CLOCK/2) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 1.0) MACHINE_CONFIG_END diff --git a/src/mame/drivers/galaxy.cpp b/src/mame/drivers/galaxy.cpp index 3355935bf50..68cb071eeeb 100644 --- a/src/mame/drivers/galaxy.cpp +++ b/src/mame/drivers/galaxy.cpp @@ -200,7 +200,7 @@ MACHINE_CONFIG_START(galaxy_state::galaxy) /* snapshot */ MCFG_SNAPSHOT_ADD("snapshot", galaxy_state, galaxy, "gal", 0) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) @@ -243,7 +243,7 @@ MACHINE_CONFIG_START(galaxy_state::galaxyp) MCFG_SNAPSHOT_ADD("snapshot", galaxy_state, galaxy, "gal", 0) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay8910", AY8910, XTAL/4) MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mame/drivers/galeb.cpp b/src/mame/drivers/galeb.cpp index 22d89e8fdd5..1f44b44893a 100644 --- a/src/mame/drivers/galeb.cpp +++ b/src/mame/drivers/galeb.cpp @@ -184,7 +184,7 @@ MACHINE_CONFIG_START(galeb_state::galeb) /* audio hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.0625) // unknown DAC MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) diff --git a/src/mame/drivers/galgames.cpp b/src/mame/drivers/galgames.cpp index 79a386cc058..71d2b152296 100644 --- a/src/mame/drivers/galgames.cpp +++ b/src/mame/drivers/galgames.cpp @@ -1004,7 +1004,7 @@ MACHINE_CONFIG_START(galgames_state::galgames_base) MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, XTAL(24'000'000) / 16, okim6295_device::PIN7_HIGH) // clock frequency & pin 7 not verified (voices in galgame4 seem ok) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) MACHINE_CONFIG_END diff --git a/src/mame/drivers/galivan.cpp b/src/mame/drivers/galivan.cpp index 78da7f01ca2..7823d6e1cb4 100644 --- a/src/mame/drivers/galivan.cpp +++ b/src/mame/drivers/galivan.cpp @@ -465,7 +465,7 @@ MACHINE_CONFIG_START(galivan_state::galivan) MCFG_VIDEO_START_OVERRIDE(galivan_state,galivan) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -525,7 +525,7 @@ MACHINE_CONFIG_START(galivan_state::ninjemak) MCFG_VIDEO_START_OVERRIDE(galivan_state,ninjemak) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/galpani2.cpp b/src/mame/drivers/galpani2.cpp index 57a1a5fb058..c4997c99518 100644 --- a/src/mame/drivers/galpani2.cpp +++ b/src/mame/drivers/galpani2.cpp @@ -660,7 +660,8 @@ MACHINE_CONFIG_START(galpani2_state::galpani2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("oki1", OKIM6295, XTAL(20'000'000)/10, okim6295_device::PIN7_HIGH) /* Confirmed on galpani2i PCB */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 1.0) diff --git a/src/mame/drivers/galpani3.cpp b/src/mame/drivers/galpani3.cpp index 71f3d93fef4..ff20fe05aab 100644 --- a/src/mame/drivers/galpani3.cpp +++ b/src/mame/drivers/galpani3.cpp @@ -463,7 +463,7 @@ MACHINE_CONFIG_START(galpani3_state::galpani3) MCFG_DEVICE_ROM("rlebg") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymz", YMZ280B, XTAL(33'333'000) / 2) // Confirmed from PCB MCFG_SOUND_ROUTE(0, "mono", 1.0) diff --git a/src/mame/drivers/galpanic.cpp b/src/mame/drivers/galpanic.cpp index 99b0e7a9903..7612888909b 100644 --- a/src/mame/drivers/galpanic.cpp +++ b/src/mame/drivers/galpanic.cpp @@ -261,7 +261,7 @@ MACHINE_CONFIG_START(galpanic_state::galpanic) MCFG_KANEKO_PANDORA_GFXDECODE("gfxdecode") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, XTAL(12'000'000)/6, okim6295_device::PIN7_LOW) /* verified on pcb */ MCFG_DEVICE_ADDRESS_MAP(0, galpanic_oki_map) diff --git a/src/mame/drivers/galspnbl.cpp b/src/mame/drivers/galspnbl.cpp index 084aa9d57e1..84e4756a485 100644 --- a/src/mame/drivers/galspnbl.cpp +++ b/src/mame/drivers/galspnbl.cpp @@ -248,7 +248,7 @@ MACHINE_CONFIG_START(galspnbl_state::galspnbl) MCFG_TECMO_SPRITE_BOOTLEG(1) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/gamate.cpp b/src/mame/drivers/gamate.cpp index 1da9006fce3..f70b9193214 100644 --- a/src/mame/drivers/gamate.cpp +++ b/src/mame/drivers/gamate.cpp @@ -185,7 +185,8 @@ MACHINE_CONFIG_START(gamate_state::gamate) MCFG_GAMATE_VIDEO_ADD("video") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") // Stereo headphone output + SPEAKER(config, "lspeaker").front_left(); // Stereo headphone output + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ay8910", AY8910, 4433000 / 4) // AY compatible, no actual AY chip present MCFG_SOUND_ROUTE(0, "lspeaker", 0.5) MCFG_SOUND_ROUTE(1, "rspeaker", 0.5) diff --git a/src/mame/drivers/gambl186.cpp b/src/mame/drivers/gambl186.cpp index 6b5f7da4a88..f15499a3064 100644 --- a/src/mame/drivers/gambl186.cpp +++ b/src/mame/drivers/gambl186.cpp @@ -485,7 +485,7 @@ MACHINE_CONFIG_START(gambl186_state::gambl186) MCFG_VIDEO_SET_SCREEN("screen") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("7759", UPD7759) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75) diff --git a/src/mame/drivers/gamecom.cpp b/src/mame/drivers/gamecom.cpp index 95a928c8610..a72e1db322b 100644 --- a/src/mame/drivers/gamecom.cpp +++ b/src/mame/drivers/gamecom.cpp @@ -274,7 +274,7 @@ MACHINE_CONFIG_START(gamecom_state::gamecom) MCFG_PALETTE_INIT_OWNER(gamecom_state, gamecom) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO( "speaker" ) + SPEAKER(config, "speaker").front_center(); /* TODO: much more complex than this */ MCFG_DEVICE_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) // unknown DAC (Digital audio) MCFG_DEVICE_ADD("dac0", DAC_4BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.05) // unknown DAC (Frequency modulation) diff --git a/src/mame/drivers/gameplan.cpp b/src/mame/drivers/gameplan.cpp index 7640f1df6e9..badf2d4b564 100644 --- a/src/mame/drivers/gameplan.cpp +++ b/src/mame/drivers/gameplan.cpp @@ -979,7 +979,7 @@ MACHINE_CONFIG_START(gameplan_state::gameplan) gameplan_video(config); /* audio hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/gamepock.cpp b/src/mame/drivers/gamepock.cpp index 0c42fa216fe..9814399b5f9 100644 --- a/src/mame/drivers/gamepock.cpp +++ b/src/mame/drivers/gamepock.cpp @@ -63,7 +63,7 @@ MACHINE_CONFIG_START(gamepock_state::gamepock) MCFG_PALETTE_ADD_MONOCHROME("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/gamtor.cpp b/src/mame/drivers/gamtor.cpp index 1cebda068ed..22e03794628 100644 --- a/src/mame/drivers/gamtor.cpp +++ b/src/mame/drivers/gamtor.cpp @@ -99,7 +99,8 @@ MACHINE_CONFIG_START(gaminator_state::gaminator) MCFG_DEVICE_ADD("vga", GAMTOR_VGA, 0) MCFG_VIDEO_SET_SCREEN("screen") - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); /* unknown sound */ MACHINE_CONFIG_END diff --git a/src/mame/drivers/gaplus.cpp b/src/mame/drivers/gaplus.cpp index dc413debac7..94474002ae7 100644 --- a/src/mame/drivers/gaplus.cpp +++ b/src/mame/drivers/gaplus.cpp @@ -576,7 +576,7 @@ MACHINE_CONFIG_START(gaplus_state::gaplus) MCFG_PALETTE_INIT_OWNER(gaplus_state, gaplus) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("namco", NAMCO_15XX, XTAL(24'576'000)/1024) MCFG_NAMCO_AUDIO_VOICES(8) diff --git a/src/mame/drivers/gatron.cpp b/src/mame/drivers/gatron.cpp index 2b6bca3c766..c730dc04243 100644 --- a/src/mame/drivers/gatron.cpp +++ b/src/mame/drivers/gatron.cpp @@ -594,7 +594,7 @@ MACHINE_CONFIG_START(gatron_state::gat) MCFG_PALETTE_INIT_OWNER(gatron_state, gatron) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("snsnd", SN76489, MASTER_CLOCK/8 ) // Present in Bingo PCB. Clock need to be verified. MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 2.00) MACHINE_CONFIG_END diff --git a/src/mame/drivers/gauntlet.cpp b/src/mame/drivers/gauntlet.cpp index 4badebf2afa..a765a91d2b3 100644 --- a/src/mame/drivers/gauntlet.cpp +++ b/src/mame/drivers/gauntlet.cpp @@ -523,7 +523,8 @@ MACHINE_CONFIG_START(gauntlet_state::gauntlet_base) /* sound hardware */ MCFG_ATARI_SOUND_COMM_ADD("soundcomm", "audiocpu", INPUTLINE("maincpu", M68K_IRQ_6)) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2151, ATARI_CLOCK_14MHz/4) MCFG_SOUND_ROUTE(1, "lspeaker", 0.48) diff --git a/src/mame/drivers/gb.cpp b/src/mame/drivers/gb.cpp index da3a32f4d71..cd9782fb03a 100644 --- a/src/mame/drivers/gb.cpp +++ b/src/mame/drivers/gb.cpp @@ -637,7 +637,8 @@ MACHINE_CONFIG_START(gb_state::gameboy) MCFG_DMG_PPU_ADD("ppu", "maincpu") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("apu", DMG_APU, XTAL(4'194'304)) MCFG_SOUND_ROUTE(0, "lspeaker", 0.50) MCFG_SOUND_ROUTE(1, "rspeaker", 0.50) @@ -678,7 +679,8 @@ MACHINE_CONFIG_START(gb_state::supergb) MCFG_SGB_PPU_ADD("ppu", "maincpu") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("apu", DMG_APU, 4295454) MCFG_SOUND_ROUTE(0, "lspeaker", 0.50) MCFG_SOUND_ROUTE(1, "rspeaker", 0.50) @@ -757,7 +759,8 @@ MACHINE_CONFIG_START(gb_state::gbcolor) MCFG_CGB_PPU_ADD("ppu", "maincpu") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("apu", CGB04_APU, XTAL(4'194'304)) MCFG_SOUND_ROUTE(0, "lspeaker", 0.50) MCFG_SOUND_ROUTE(1, "rspeaker", 0.50) @@ -803,7 +806,8 @@ MACHINE_CONFIG_START(megaduck_state::megaduck) MCFG_DMG_PPU_ADD("ppu", "maincpu") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("apu", DMG_APU, XTAL(4'194'304)) MCFG_SOUND_ROUTE(0, "lspeaker", 0.50) MCFG_SOUND_ROUTE(1, "rspeaker", 0.50) diff --git a/src/mame/drivers/gba.cpp b/src/mame/drivers/gba.cpp index 9dc09ce975d..b6af9c71f9e 100644 --- a/src/mame/drivers/gba.cpp +++ b/src/mame/drivers/gba.cpp @@ -1442,7 +1442,8 @@ MACHINE_CONFIG_START(gba_state::gbadv) MCFG_GBA_LCD_DMA_HBLANK(WRITELINE(*this, gba_state, dma_hblank_callback)) MCFG_GBA_LCD_DMA_VBLANK(WRITELINE(*this, gba_state, dma_vblank_callback)) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("custom", CGB04_APU, XTAL(16'777'216)/4) MCFG_SOUND_ROUTE(0, "lspeaker", 0.5) MCFG_SOUND_ROUTE(1, "rspeaker", 0.5) diff --git a/src/mame/drivers/gberet.cpp b/src/mame/drivers/gberet.cpp index 243986cdbf7..1fff680eac0 100644 --- a/src/mame/drivers/gberet.cpp +++ b/src/mame/drivers/gberet.cpp @@ -435,7 +435,7 @@ MACHINE_CONFIG_START(gberet_state::gberet) MCFG_VIDEO_START_OVERRIDE(gberet_state,gberet) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("snsnd", SN76489A, XTAL(18'432'000)/12) /* type verified on real and bootleg pcb */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -476,7 +476,7 @@ MACHINE_CONFIG_START(gberet_state::gberetb) MCFG_VIDEO_START_OVERRIDE(gberet_state,gberet) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("snsnd", SN76489A, XTAL(20'000'000)/12) // divider guessed MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/gcpinbal.cpp b/src/mame/drivers/gcpinbal.cpp index 851b920f7b5..e8a9e568d71 100644 --- a/src/mame/drivers/gcpinbal.cpp +++ b/src/mame/drivers/gcpinbal.cpp @@ -389,7 +389,7 @@ MACHINE_CONFIG_START(gcpinbal_state::gcpinbal) MCFG_DEVICE_ADD("spritegen", EXCELLENT_SPRITE, 0) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, 1.056_MHz_XTAL, okim6295_device::PIN7_HIGH) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30) diff --git a/src/mame/drivers/gei.cpp b/src/mame/drivers/gei.cpp index f0b5fd85359..9a8794a2f74 100644 --- a/src/mame/drivers/gei.cpp +++ b/src/mame/drivers/gei.cpp @@ -1001,7 +1001,7 @@ MACHINE_CONFIG_START(gei_state::getrivia) MCFG_TICKET_DISPENSER_ADD("ticket", attotime::from_msec(100), TICKET_MOTOR_ACTIVE_HIGH, TICKET_STATUS_ACTIVE_HIGH) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.99) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) diff --git a/src/mame/drivers/geneve.cpp b/src/mame/drivers/geneve.cpp index 35984d71461..74e8993c307 100644 --- a/src/mame/drivers/geneve.cpp +++ b/src/mame/drivers/geneve.cpp @@ -736,7 +736,7 @@ MACHINE_CONFIG_START(geneve_state::geneve_60hz) MCFG_PERIBOX_READY_HANDLER( WRITELINE(*this, geneve_state, ext_ready) ) // Sound hardware - MCFG_SPEAKER_STANDARD_MONO("sound_out") + SPEAKER(config, "sound_out").front_center(); MCFG_DEVICE_ADD(TI_SOUNDCHIP_TAG, SN76496, 3579545) /* 3.579545 MHz */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "sound_out", 0.75) MCFG_SN76496_READY_HANDLER( WRITELINE(*this, geneve_state, ext_ready) ) diff --git a/src/mame/drivers/ggconnie.cpp b/src/mame/drivers/ggconnie.cpp index b3a167569f6..e05fc5c36a1 100644 --- a/src/mame/drivers/ggconnie.cpp +++ b/src/mame/drivers/ggconnie.cpp @@ -306,7 +306,8 @@ MACHINE_CONFIG_START(ggconnie_state::ggconnie) MCFG_DEVICE_ADD("rtc", MSM6242, XTAL(32'768)) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker","rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("c6280", C6280, PCE_MAIN_CLOCK/6) MCFG_C6280_CPU("maincpu") MCFG_SOUND_ROUTE(0, "lspeaker", 1.00) diff --git a/src/mame/drivers/ghosteo.cpp b/src/mame/drivers/ghosteo.cpp index 76ad5ca7dfa..b2ff2cd2d49 100644 --- a/src/mame/drivers/ghosteo.cpp +++ b/src/mame/drivers/ghosteo.cpp @@ -637,7 +637,8 @@ MACHINE_CONFIG_START(ghosteo_state::ghosteo) // MCFG_I2CMEM_ADD("i2cmem", 0xA0, 0, 0x100, nullptr) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(WRITELINE("qs1000", qs1000_device, set_irq)) diff --git a/src/mame/drivers/gijoe.cpp b/src/mame/drivers/gijoe.cpp index 6b8d6f8cfce..64111b50afa 100644 --- a/src/mame/drivers/gijoe.cpp +++ b/src/mame/drivers/gijoe.cpp @@ -330,7 +330,8 @@ MACHINE_CONFIG_START(gijoe_state::gijoe) MCFG_K053251_ADD("k053251") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_K054321_ADD("k054321", "lspeaker", "rspeaker") diff --git a/src/mame/drivers/ginganin.cpp b/src/mame/drivers/ginganin.cpp index 1532d541b22..64602017eef 100644 --- a/src/mame/drivers/ginganin.cpp +++ b/src/mame/drivers/ginganin.cpp @@ -274,7 +274,7 @@ MACHINE_CONFIG_START(ginganin_state::ginganin) MCFG_PALETTE_FORMAT(RRRRGGGGBBBBxxxx) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/gkigt.cpp b/src/mame/drivers/gkigt.cpp index d3008752953..e7a02850421 100644 --- a/src/mame/drivers/gkigt.cpp +++ b/src/mame/drivers/gkigt.cpp @@ -638,7 +638,7 @@ MACHINE_CONFIG_START(igt_gameking_state::igt_gameking) MCFG_RAMDAC_ADD("ramdac", ramdac_map, "palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymz", YMZ280B, XTAL(16'934'400)) // enhanced sound on optional Media-Lite sub board MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/gladiatr.cpp b/src/mame/drivers/gladiatr.cpp index ae554ec524f..25eb602427c 100644 --- a/src/mame/drivers/gladiatr.cpp +++ b/src/mame/drivers/gladiatr.cpp @@ -984,7 +984,7 @@ MACHINE_CONFIG_START(ppking_state::ppking) MCFG_VIDEO_START_OVERRIDE(ppking_state, ppking) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_8_ADD("soundlatch2") @@ -1076,7 +1076,7 @@ MACHINE_CONFIG_START(gladiatr_state::gladiatr) MCFG_VIDEO_START_OVERRIDE(gladiatr_state,gladiatr) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/glasgow.cpp b/src/mame/drivers/glasgow.cpp index 3d0cd7ec51a..09be0b8628e 100644 --- a/src/mame/drivers/glasgow.cpp +++ b/src/mame/drivers/glasgow.cpp @@ -321,7 +321,7 @@ MACHINE_CONFIG_START(glasgow_state::glasgow) /* video hardware */ MCFG_DEFAULT_LAYOUT(layout_glasgow) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, 44) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/glass.cpp b/src/mame/drivers/glass.cpp index 17858a9d8ba..e71e6b42507 100644 --- a/src/mame/drivers/glass.cpp +++ b/src/mame/drivers/glass.cpp @@ -259,7 +259,7 @@ MACHINE_CONFIG_START(glass_state::glass) MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, XTAL(1'000'000), okim6295_device::PIN7_HIGH) /* 1MHz Resonator & pin 7 high verified on PCB */ MCFG_DEVICE_ADDRESS_MAP(0, oki_map) diff --git a/src/mame/drivers/gluck2.cpp b/src/mame/drivers/gluck2.cpp index 64d44ff559d..911df98de28 100644 --- a/src/mame/drivers/gluck2.cpp +++ b/src/mame/drivers/gluck2.cpp @@ -510,7 +510,7 @@ MACHINE_CONFIG_START(gluck2_state::gluck2) MCFG_MC6845_OUT_VSYNC_CB(INPUTLINE("maincpu", INPUT_LINE_NMI)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay8910", AY8910, MASTER_CLOCK/8) /* guess */ MCFG_AY8910_PORT_A_READ_CB(IOPORT("SW3")) diff --git a/src/mame/drivers/gmaster.cpp b/src/mame/drivers/gmaster.cpp index 8f9c263fd3b..a9b6a416279 100644 --- a/src/mame/drivers/gmaster.cpp +++ b/src/mame/drivers/gmaster.cpp @@ -355,7 +355,7 @@ MACHINE_CONFIG_START(gmaster_state::gmaster) MCFG_PALETTE_INIT_OWNER(gmaster_state, gmaster) MCFG_DEFAULT_LAYOUT(layout_lcd) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(0, "mono", 0.50) diff --git a/src/mame/drivers/gng.cpp b/src/mame/drivers/gng.cpp index 636b95c1bac..96eb43a2b43 100644 --- a/src/mame/drivers/gng.cpp +++ b/src/mame/drivers/gng.cpp @@ -424,7 +424,7 @@ MACHINE_CONFIG_START(gng_state::gng) MCFG_PALETTE_FORMAT(RRRRGGGGBBBBxxxx) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/go2000.cpp b/src/mame/drivers/go2000.cpp index e03e3e8c57f..5426b649584 100644 --- a/src/mame/drivers/go2000.cpp +++ b/src/mame/drivers/go2000.cpp @@ -367,7 +367,7 @@ MACHINE_CONFIG_START(go2000_state::go2000) MCFG_GENERIC_LATCH_8_ADD("soundlatch") - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(0, "speaker", 0.25) // unknown DAC MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT) diff --git a/src/mame/drivers/goal92.cpp b/src/mame/drivers/goal92.cpp index 108b8b45868..70badf00002 100644 --- a/src/mame/drivers/goal92.cpp +++ b/src/mame/drivers/goal92.cpp @@ -323,7 +323,7 @@ MACHINE_CONFIG_START(goal92_state::goal92) MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/goindol.cpp b/src/mame/drivers/goindol.cpp index 3c253234978..e57edcb5a1c 100644 --- a/src/mame/drivers/goindol.cpp +++ b/src/mame/drivers/goindol.cpp @@ -260,7 +260,7 @@ MACHINE_CONFIG_START(goindol_state::goindol) MCFG_PALETTE_ADD_RRRRGGGGBBBB_PROMS("palette", "proms", 256) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/gokidetor.cpp b/src/mame/drivers/gokidetor.cpp index 8914063a5bb..9512bab2922 100644 --- a/src/mame/drivers/gokidetor.cpp +++ b/src/mame/drivers/gokidetor.cpp @@ -146,7 +146,7 @@ MACHINE_CONFIG_START(gokidetor_state::gokidetor) MCFG_PC060HA_MASTER_CPU("maincpu") MCFG_PC060HA_SLAVE_CPU("soundcpu") - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2203, 3000000) MCFG_YM2203_IRQ_HANDLER(INPUTLINE("soundcpu", 0)) diff --git a/src/mame/drivers/goldngam.cpp b/src/mame/drivers/goldngam.cpp index c2cc3314fd4..4f2d7bb368e 100644 --- a/src/mame/drivers/goldngam.cpp +++ b/src/mame/drivers/goldngam.cpp @@ -619,7 +619,7 @@ MACHINE_CONFIG_START(goldngam_state::swisspkr) MCFG_PALETTE_INIT_OWNER(goldngam_state, goldngam) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8912, MASTER_CLOCK/4) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) diff --git a/src/mame/drivers/goldnpkr.cpp b/src/mame/drivers/goldnpkr.cpp index 4e7ee01a96f..d8108983671 100644 --- a/src/mame/drivers/goldnpkr.cpp +++ b/src/mame/drivers/goldnpkr.cpp @@ -4333,7 +4333,7 @@ MACHINE_CONFIG_START(goldnpkr_state::goldnpkr) goldnpkr_base(config); /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("discrete", DISCRETE, goldnpkr_discrete) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) MACHINE_CONFIG_END @@ -4351,7 +4351,7 @@ MACHINE_CONFIG_START(goldnpkr_state::pottnpkr) MCFG_PIA_WRITEPA_HANDLER(WRITE8(*this, goldnpkr_state, mux_port_w)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("discrete", DISCRETE, pottnpkr_discrete) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) MACHINE_CONFIG_END @@ -4373,7 +4373,7 @@ MACHINE_CONFIG_START(goldnpkr_state::witchcrd) MCFG_PALETTE_INIT_OWNER(goldnpkr_state,witchcrd) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("discrete", DISCRETE, goldnpkr_discrete) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) MACHINE_CONFIG_END @@ -4397,7 +4397,7 @@ MACHINE_CONFIG_START(goldnpkr_state::wcfalcon) MCFG_PALETTE_INIT_OWNER(goldnpkr_state,witchcrd) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay8910", AY8910, MASTER_CLOCK/4) /* guess, seems ok */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) MACHINE_CONFIG_END @@ -4421,7 +4421,7 @@ MACHINE_CONFIG_START(goldnpkr_state::wildcard) // MCFG_VIDEO_START_OVERRIDE(goldnpkr_state,wildcard) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("discrete", DISCRETE, goldnpkr_discrete) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) MACHINE_CONFIG_END @@ -4445,7 +4445,7 @@ MACHINE_CONFIG_START(goldnpkr_state::wcrdxtnd) MCFG_VIDEO_START_OVERRIDE(goldnpkr_state, wcrdxtnd) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("discrete", DISCRETE, goldnpkr_discrete) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) MACHINE_CONFIG_END @@ -4475,7 +4475,7 @@ MACHINE_CONFIG_START(goldnpkr_state::wildcrdb) // MCFG_VIDEO_START_OVERRIDE(goldnpkr_state,wildcard) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay8910", AY8910, MASTER_CLOCK/4) /* guess, seems ok */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) MACHINE_CONFIG_END @@ -4497,7 +4497,7 @@ MACHINE_CONFIG_START(goldnpkr_state::genie) MCFG_PALETTE_INIT_OWNER(goldnpkr_state, witchcrd) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("discrete", DISCRETE, goldnpkr_discrete) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) MACHINE_CONFIG_END @@ -4519,7 +4519,7 @@ MACHINE_CONFIG_START(goldnpkr_state::geniea) MCFG_PALETTE_INIT_OWNER(goldnpkr_state, witchcrd) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("discrete", DISCRETE, goldnpkr_discrete) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) MACHINE_CONFIG_END @@ -4536,7 +4536,7 @@ MACHINE_CONFIG_START(goldnpkr_state::mondial) MCFG_MACHINE_RESET_OVERRIDE(goldnpkr_state, mondial) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("discrete", DISCRETE, goldnpkr_discrete) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) MACHINE_CONFIG_END @@ -4561,7 +4561,7 @@ MACHINE_CONFIG_START(goldnpkr_state::bchancep) MCFG_PIA_WRITEPB_HANDLER(WRITE8(*this, goldnpkr_state, pia1_b_w)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("discrete", DISCRETE, pottnpkr_discrete) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) MACHINE_CONFIG_END @@ -4736,7 +4736,7 @@ MACHINE_CONFIG_START(blitz_state::megadpkr) MCFG_PALETTE_INIT_OWNER(goldnpkr_state, witchcrd) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("discrete", DISCRETE, goldnpkr_discrete) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) MACHINE_CONFIG_END diff --git a/src/mame/drivers/goldstar.cpp b/src/mame/drivers/goldstar.cpp index fdc154598ff..8d40b6e7bd4 100644 --- a/src/mame/drivers/goldstar.cpp +++ b/src/mame/drivers/goldstar.cpp @@ -8121,7 +8121,7 @@ MACHINE_CONFIG_START(goldstar_state::goldstar) MCFG_VIDEO_START_OVERRIDE(goldstar_state, goldstar) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, AY_CLOCK) MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW4")) MCFG_AY8910_PORT_B_READ_CB(IOPORT("DSW3")) @@ -8158,7 +8158,7 @@ MACHINE_CONFIG_START(goldstar_state::goldstbl) MCFG_VIDEO_START_OVERRIDE(goldstar_state, goldstar) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, AY_CLOCK) MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW4")) MCFG_AY8910_PORT_B_READ_CB(IOPORT("DSW3")) @@ -8206,7 +8206,7 @@ MACHINE_CONFIG_START(sanghopm_state::star100) MCFG_VIDEO_START_OVERRIDE(sanghopm_state, sangho) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, AY_CLOCK) MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW5")) MCFG_AY8910_PORT_B_READ_CB(IOPORT("DSW6")) @@ -8245,7 +8245,7 @@ MACHINE_CONFIG_START(goldstar_state::super9) MCFG_VIDEO_START_OVERRIDE(goldstar_state, goldstar) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, AY_CLOCK) MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW4")) MCFG_AY8910_PORT_B_READ_CB(IOPORT("DSW3")) @@ -8354,7 +8354,7 @@ MACHINE_CONFIG_START(cb3_state::ncb3) MCFG_VIDEO_START_OVERRIDE(goldstar_state, goldstar) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("snsnd", SN76489, PSG_CLOCK) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80) @@ -8428,7 +8428,7 @@ MACHINE_CONFIG_START(goldstar_state::wcherry) MCFG_VIDEO_START_OVERRIDE(goldstar_state, goldstar) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("snsnd", SN76489, PSG_CLOCK) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80) @@ -8475,7 +8475,7 @@ MACHINE_CONFIG_START(cmaster_state::cm) MCFG_VIDEO_START_OVERRIDE(goldstar_state, cherrym) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, AY_CLOCK) MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW4")) MCFG_AY8910_PORT_B_READ_CB(IOPORT("DSW5")) @@ -8523,7 +8523,7 @@ MACHINE_CONFIG_START(goldstar_state::cmast91) MCFG_VIDEO_START_OVERRIDE(goldstar_state, cherrym) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, AY_CLOCK) MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW4")) MCFG_AY8910_PORT_B_READ_CB(IOPORT("DSW5")) @@ -8580,7 +8580,7 @@ MACHINE_CONFIG_START(wingco_state::lucky8) MCFG_VIDEO_START_OVERRIDE(goldstar_state, goldstar) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("snsnd", SN76489, PSG_CLOCK) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80) @@ -8634,7 +8634,7 @@ MACHINE_CONFIG_START(wingco_state::bingowng) MCFG_VIDEO_START_OVERRIDE(wingco_state, bingowng) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("snsnd", SN76489, PSG_CLOCK) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80) @@ -8761,7 +8761,7 @@ MACHINE_CONFIG_START(wingco_state::magodds) MCFG_VIDEO_START_OVERRIDE(wingco_state, magical) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("snsnd", SN76489, PSG_CLOCK) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.00) // shut up annoying whine @@ -8811,7 +8811,7 @@ MACHINE_CONFIG_START(goldstar_state::kkotnoli) MCFG_VIDEO_START_OVERRIDE(goldstar_state, goldstar) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("snsnd", SN76489, PSG_CLOCK) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80) @@ -8852,7 +8852,7 @@ MACHINE_CONFIG_START(goldstar_state::ladylinr) MCFG_VIDEO_START_OVERRIDE(goldstar_state, goldstar) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("snsnd", SN76489, PSG_CLOCK) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80) @@ -8903,7 +8903,7 @@ MACHINE_CONFIG_START(wingco_state::wcat3) MCFG_VIDEO_START_OVERRIDE(goldstar_state, goldstar) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("snsnd", SN76489, PSG_CLOCK) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80) @@ -8954,7 +8954,7 @@ MACHINE_CONFIG_START(cmaster_state::amcoe1) MCFG_VIDEO_START_OVERRIDE(goldstar_state, cherrym) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, AY_CLOCK) MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW4")) MCFG_AY8910_PORT_B_READ_CB(IOPORT("DSW5")) @@ -9011,7 +9011,7 @@ MACHINE_CONFIG_START(cmaster_state::amcoe2) MCFG_VIDEO_START_OVERRIDE(goldstar_state, cherrym) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, AY_CLOCK) MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW4")) MCFG_AY8910_PORT_B_READ_CB(IOPORT("DSW5")) @@ -9061,7 +9061,7 @@ MACHINE_CONFIG_START(unkch_state::unkch) MCFG_VIDEO_START_OVERRIDE(unkch_state, unkch) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, AY_CLOCK) MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW1")) MCFG_AY8910_PORT_B_READ_CB(IOPORT("DSW2")) @@ -9099,7 +9099,7 @@ MACHINE_CONFIG_START(goldstar_state::pkrmast) MCFG_VIDEO_START_OVERRIDE(goldstar_state, cherrym) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, AY_CLOCK) MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW4")) MCFG_AY8910_PORT_B_READ_CB(IOPORT("DSW5")) @@ -9136,7 +9136,7 @@ MACHINE_CONFIG_START(unkch_state::megaline) MCFG_VIDEO_START_OVERRIDE(goldstar_state,goldstar) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("sn1", SN76489, PSG_CLOCK) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80) @@ -9183,7 +9183,7 @@ MACHINE_CONFIG_START(unkch_state::bonusch) MCFG_VIDEO_START_OVERRIDE(goldstar_state, goldstar) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("sn1", SN76489, PSG_CLOCK) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80) diff --git a/src/mame/drivers/gomoku.cpp b/src/mame/drivers/gomoku.cpp index a7032b6d649..f2e64b98511 100644 --- a/src/mame/drivers/gomoku.cpp +++ b/src/mame/drivers/gomoku.cpp @@ -147,7 +147,7 @@ MACHINE_CONFIG_START(gomoku_state::gomoku) MCFG_PALETTE_INIT_OWNER(gomoku_state, gomoku) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("gomoku", GOMOKU_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/good.cpp b/src/mame/drivers/good.cpp index b2faa87a32c..0e1e5063220 100644 --- a/src/mame/drivers/good.cpp +++ b/src/mame/drivers/good.cpp @@ -307,7 +307,8 @@ MACHINE_CONFIG_START(good_state::good) MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("oki", OKIM6295, 1000000, okim6295_device::PIN7_HIGH) // clock frequency & pin 7 not verified MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.47) diff --git a/src/mame/drivers/goodejan.cpp b/src/mame/drivers/goodejan.cpp index f0f50a492ca..80b01663bf0 100644 --- a/src/mame/drivers/goodejan.cpp +++ b/src/mame/drivers/goodejan.cpp @@ -678,7 +678,7 @@ MACHINE_CONFIG_START(goodejan_state::goodejan) MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM3812, GOODEJAN_MHZ1/2) MCFG_YM3812_IRQ_HANDLER(WRITELINE("seibu_sound", seibu_sound_device, fm_irqhandler)) diff --git a/src/mame/drivers/gotcha.cpp b/src/mame/drivers/gotcha.cpp index 84b36266835..34e682ecd59 100644 --- a/src/mame/drivers/gotcha.cpp +++ b/src/mame/drivers/gotcha.cpp @@ -291,7 +291,7 @@ MACHINE_CONFIG_START(gotcha_state::gotcha) MCFG_DECO_SPRITE_GFXDECODE("gfxdecode") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/gottlieb.cpp b/src/mame/drivers/gottlieb.cpp index 13a8129a94b..b7c8ab0a813 100644 --- a/src/mame/drivers/gottlieb.cpp +++ b/src/mame/drivers/gottlieb.cpp @@ -673,7 +673,7 @@ static const char *const qbert_knocker_names[] = }; MACHINE_CONFIG_START(gottlieb_state::qbert_knocker) - MCFG_SPEAKER_ADD("knocker", 0.0, 0.0, 1.0) + SPEAKER(config, "knocker", 0.0, 0.0, 1.0); MCFG_DEVICE_ADD("knocker_sam", SAMPLES) MCFG_SAMPLES_CHANNELS(1) @@ -1787,7 +1787,7 @@ MACHINE_CONFIG_START(gottlieb_state::gottlieb_core) MCFG_PALETTE_ADD("palette", 16) // basic speaker configuration - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MACHINE_CONFIG_END diff --git a/src/mame/drivers/gotya.cpp b/src/mame/drivers/gotya.cpp index 92aeda65f7b..b15cb17d461 100644 --- a/src/mame/drivers/gotya.cpp +++ b/src/mame/drivers/gotya.cpp @@ -233,7 +233,7 @@ MACHINE_CONFIG_START(gotya_state::gotya) MCFG_PALETTE_INIT_OWNER(gotya_state, gotya) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("samples", SAMPLES) MCFG_SAMPLES_CHANNELS(4) diff --git a/src/mame/drivers/gp2x.cpp b/src/mame/drivers/gp2x.cpp index 2596d26d06e..44bfc07cd26 100644 --- a/src/mame/drivers/gp2x.cpp +++ b/src/mame/drivers/gp2x.cpp @@ -372,7 +372,8 @@ MACHINE_CONFIG_START(gp2x_state::gp2x) MCFG_SCREEN_VISIBLE_AREA(0, 319, 0, 239) MCFG_SCREEN_UPDATE_DRIVER(gp2x_state, screen_update_gp2x) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MACHINE_CONFIG_END ROM_START(gp2x) diff --git a/src/mame/drivers/gp32.cpp b/src/mame/drivers/gp32.cpp index 4ee1630a3fd..e58de6b31d0 100644 --- a/src/mame/drivers/gp32.cpp +++ b/src/mame/drivers/gp32.cpp @@ -1690,7 +1690,8 @@ MACHINE_CONFIG_START(gp32_state::gp32) /* 320x240 is 4:3 but ROT270 causes an aspect ratio of 3:4 by default */ MCFG_DEFAULT_LAYOUT(layout_lcd_rot) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ldac", DAC_16BIT_R2R_TWOS_COMPLEMENT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 1.0) // unknown DAC MCFG_DEVICE_ADD("rdac", DAC_16BIT_R2R_TWOS_COMPLEMENT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 1.0) // unknown DAC MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) diff --git a/src/mame/drivers/gp_1.cpp b/src/mame/drivers/gp_1.cpp index 18fc0f6c5b3..bec1990b344 100644 --- a/src/mame/drivers/gp_1.cpp +++ b/src/mame/drivers/gp_1.cpp @@ -458,7 +458,7 @@ MACHINE_CONFIG_END MACHINE_CONFIG_START(gp_1_state::gp_1s) gp_1(config); - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("snsnd", SN76477) MCFG_SN76477_NOISE_PARAMS(0, 0, 0) // noise + filter: N/C MCFG_SN76477_DECAY_RES(0) // decay_res: N/C diff --git a/src/mame/drivers/gpworld.cpp b/src/mame/drivers/gpworld.cpp index d33c0ec29aa..9cd7b11a244 100644 --- a/src/mame/drivers/gpworld.cpp +++ b/src/mame/drivers/gpworld.cpp @@ -513,7 +513,8 @@ MACHINE_CONFIG_START(gpworld_state::gpworld) MCFG_PALETTE_ADD("palette", 1024) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_MODIFY("laserdisc") MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) diff --git a/src/mame/drivers/gradius3.cpp b/src/mame/drivers/gradius3.cpp index 685cd83c9c0..2d6b0419ac8 100644 --- a/src/mame/drivers/gradius3.cpp +++ b/src/mame/drivers/gradius3.cpp @@ -322,7 +322,8 @@ MACHINE_CONFIG_START(gradius3_state::gradius3) MCFG_K051960_PLANEORDER(K051960_PLANEORDER_GRADIUS3) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/grchamp.cpp b/src/mame/drivers/grchamp.cpp index 21fd9637dbd..9a54ee99f8c 100644 --- a/src/mame/drivers/grchamp.cpp +++ b/src/mame/drivers/grchamp.cpp @@ -771,7 +771,7 @@ MACHINE_CONFIG_START(grchamp_state::grchamp) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_INPUT_MERGER_ALL_HIGH("soundnmi") MCFG_INPUT_MERGER_OUTPUT_HANDLER(INPUTLINE("audiocpu", INPUT_LINE_NMI)) diff --git a/src/mame/drivers/gridcomp.cpp b/src/mame/drivers/gridcomp.cpp index ad425583070..2d7dbdc4cea 100644 --- a/src/mame/drivers/gridcomp.cpp +++ b/src/mame/drivers/gridcomp.cpp @@ -376,7 +376,7 @@ MACHINE_CONFIG_START(gridcomp_state::grid1101) MCFG_DEVICE_ADD(I80130_TAG, I80130, XTAL(15'000'000)/3) MCFG_I80130_IRQ_CALLBACK(INPUTLINE("maincpu", 0)) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) diff --git a/src/mame/drivers/gridlee.cpp b/src/mame/drivers/gridlee.cpp index abc650f55e8..da317699ae0 100644 --- a/src/mame/drivers/gridlee.cpp +++ b/src/mame/drivers/gridlee.cpp @@ -423,7 +423,7 @@ MACHINE_CONFIG_START(gridlee_state::gridlee) MCFG_PALETTE_INIT_OWNER(gridlee_state,gridlee) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("gridlee", GRIDLEE, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/gstream.cpp b/src/mame/drivers/gstream.cpp index 853783d2f94..5539366c90f 100644 --- a/src/mame/drivers/gstream.cpp +++ b/src/mame/drivers/gstream.cpp @@ -847,7 +847,7 @@ MACHINE_CONFIG_START(gstream_state::gstream) MCFG_GFXDECODE_ADD("gfxdecode", "palette", gstream) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki1", OKIM6295, 1000000, okim6295_device::PIN7_HIGH) /* 1 Mhz? */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) @@ -880,7 +880,7 @@ MACHINE_CONFIG_START(gstream_state::x2222) // unknown sound hw (no sound roms dumped) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki1", OKIM6295, 1000000, okim6295_device::PIN7_HIGH) /* 1 Mhz? */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) diff --git a/src/mame/drivers/gstriker.cpp b/src/mame/drivers/gstriker.cpp index 8adb833d360..a8f5282dc5d 100644 --- a/src/mame/drivers/gstriker.cpp +++ b/src/mame/drivers/gstriker.cpp @@ -548,7 +548,8 @@ MACHINE_CONFIG_START(gstriker_state::gstriker) MCFG_VSYSTEM_SPR_SET_TRANSPEN(0) MCFG_VSYSTEM_SPR_GFXDECODE("gfxdecode") - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) diff --git a/src/mame/drivers/gsword.cpp b/src/mame/drivers/gsword.cpp index 6c297b8d39d..52f79b5ef37 100644 --- a/src/mame/drivers/gsword.cpp +++ b/src/mame/drivers/gsword.cpp @@ -824,7 +824,7 @@ MACHINE_CONFIG_START(gsword_state::gsword) MCFG_PALETTE_INIT_OWNER(gsword_state,gsword) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -892,7 +892,7 @@ MACHINE_CONFIG_START(josvolly_state::josvolly) MCFG_PALETTE_INIT_OWNER(josvolly_state, josvolly) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay1", AY8910, 1500000) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30) diff --git a/src/mame/drivers/gticlub.cpp b/src/mame/drivers/gticlub.cpp index 41ba5cad34f..659c098e7f7 100644 --- a/src/mame/drivers/gticlub.cpp +++ b/src/mame/drivers/gticlub.cpp @@ -1012,7 +1012,8 @@ MACHINE_CONFIG_START(gticlub_state::gticlub) MCFG_K056800_ADD("k056800", XTAL(33'868'800)/2) MCFG_K056800_INT_HANDLER(INPUTLINE("audiocpu", M68K_IRQ_2)) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("rfsnd", RF5C400, XTAL(33'868'800)/2) MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) @@ -1141,7 +1142,8 @@ MACHINE_CONFIG_START(gticlub_state::hangplt) MCFG_K056800_ADD("k056800", XTAL(33'868'800)/2) MCFG_K056800_INT_HANDLER(INPUTLINE("audiocpu", M68K_IRQ_2)) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("rfsnd", RF5C400, XTAL(33'868'800)/2) MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) diff --git a/src/mame/drivers/gts80.cpp b/src/mame/drivers/gts80.cpp index ee880e2c0e2..5c7e3e39189 100644 --- a/src/mame/drivers/gts80.cpp +++ b/src/mame/drivers/gts80.cpp @@ -385,7 +385,7 @@ MACHINE_CONFIG_START(gts80_state::gts80) /* Sound */ genpin_audio(config); - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MACHINE_CONFIG_END MACHINE_CONFIG_START(gts80_state::gts80_s) diff --git a/src/mame/drivers/gts80a.cpp b/src/mame/drivers/gts80a.cpp index 1f9755f55c1..d28ad15ad65 100644 --- a/src/mame/drivers/gts80a.cpp +++ b/src/mame/drivers/gts80a.cpp @@ -375,7 +375,7 @@ MACHINE_CONFIG_START(gts80a_state::gts80a) /* Sound */ genpin_audio(config); - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MACHINE_CONFIG_END MACHINE_CONFIG_START(gts80a_state::gts80a_s) diff --git a/src/mame/drivers/gts80b.cpp b/src/mame/drivers/gts80b.cpp index f4a2c810b8c..7bf4c7c27a5 100644 --- a/src/mame/drivers/gts80b.cpp +++ b/src/mame/drivers/gts80b.cpp @@ -417,7 +417,7 @@ MACHINE_CONFIG_START(gts80b_state::gts80b) /* Sound */ genpin_audio(config); - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MACHINE_CONFIG_END MACHINE_CONFIG_START(gts80b_state::gts80b_s) diff --git a/src/mame/drivers/guab.cpp b/src/mame/drivers/guab.cpp index 91dcad6ba8d..00e11143fb3 100644 --- a/src/mame/drivers/guab.cpp +++ b/src/mame/drivers/guab.cpp @@ -493,7 +493,7 @@ MACHINE_CONFIG_START(guab_state::guab) MCFG_TMS34061_INTERRUPT_CB(INPUTLINE("maincpu", 5)) MCFG_VIDEO_SET_SCREEN("screen") - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); /* TODO: Verify clock */ MCFG_DEVICE_ADD("snsnd", SN76489, 2000000) diff --git a/src/mame/drivers/gumbo.cpp b/src/mame/drivers/gumbo.cpp index 2045f0b2b63..4295a780f10 100644 --- a/src/mame/drivers/gumbo.cpp +++ b/src/mame/drivers/gumbo.cpp @@ -255,7 +255,8 @@ MACHINE_CONFIG_START(gumbo_state::gumbo) MCFG_PALETTE_ADD("palette", 0x200) MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("oki", OKIM6295, XTAL(14'318'181)/16, okim6295_device::PIN7_HIGH) // clock frequency & pin 7 not verified MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.47) diff --git a/src/mame/drivers/gundealr.cpp b/src/mame/drivers/gundealr.cpp index 3f1501768c8..33396a781ae 100644 --- a/src/mame/drivers/gundealr.cpp +++ b/src/mame/drivers/gundealr.cpp @@ -459,7 +459,7 @@ MACHINE_CONFIG_START(gundealr_state::gundealr) MCFG_PALETTE_ADD("palette", 512) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2203, XTAL(12'000'000)/8) /* 1.5Mhz verified for Yam! Yam!? */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mame/drivers/gunpey.cpp b/src/mame/drivers/gunpey.cpp index b35a9a5e889..d2a4428009a 100644 --- a/src/mame/drivers/gunpey.cpp +++ b/src/mame/drivers/gunpey.cpp @@ -1232,7 +1232,8 @@ MACHINE_CONFIG_START(gunpey_state::gunpey) MCFG_PALETTE_ADD_RRRRRGGGGGBBBBB("palette") - MCFG_SPEAKER_STANDARD_STEREO("lspeaker","rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("oki", OKIM6295, XTAL(16'934'400) / 8, okim6295_device::PIN7_LOW) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.25) diff --git a/src/mame/drivers/gunsmoke.cpp b/src/mame/drivers/gunsmoke.cpp index 0e9854b554b..53a09c95dfc 100644 --- a/src/mame/drivers/gunsmoke.cpp +++ b/src/mame/drivers/gunsmoke.cpp @@ -330,7 +330,7 @@ MACHINE_CONFIG_START(gunsmoke_state::gunsmoke) MCFG_PALETTE_INIT_OWNER(gunsmoke_state, gunsmoke) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/gyruss.cpp b/src/mame/drivers/gyruss.cpp index eed631e1772..0527257cf51 100644 --- a/src/mame/drivers/gyruss.cpp +++ b/src/mame/drivers/gyruss.cpp @@ -514,7 +514,8 @@ MACHINE_CONFIG_START(gyruss_state::gyruss) MCFG_PALETTE_INIT_OWNER(gyruss_state, gyruss) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_8_ADD("soundlatch2") diff --git a/src/mame/drivers/h19.cpp b/src/mame/drivers/h19.cpp index fc444c386e1..3874082eaf9 100644 --- a/src/mame/drivers/h19.cpp +++ b/src/mame/drivers/h19.cpp @@ -559,7 +559,7 @@ MACHINE_CONFIG_START(h19_state::h19) MCFG_MM5740_DATA_READY_CB(WRITELINE(*this, h19_state, mm5740_data_ready_w)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, H19_BEEP_FRQ) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) MACHINE_CONFIG_END diff --git a/src/mame/drivers/h8.cpp b/src/mame/drivers/h8.cpp index be9787195f2..106e1aa980f 100644 --- a/src/mame/drivers/h8.cpp +++ b/src/mame/drivers/h8.cpp @@ -322,7 +322,7 @@ MACHINE_CONFIG_START(h8_state::h8) MCFG_DEFAULT_LAYOUT(layout_h8) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, H8_BEEP_FRQ) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") diff --git a/src/mame/drivers/halleys.cpp b/src/mame/drivers/halleys.cpp index b66dfad44d6..4329bac40d1 100644 --- a/src/mame/drivers/halleys.cpp +++ b/src/mame/drivers/halleys.cpp @@ -1951,7 +1951,7 @@ MACHINE_CONFIG_START(halleys_state::halleys) MCFG_PALETTE_INIT_OWNER(halleys_state, halleys) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/hanaawas.cpp b/src/mame/drivers/hanaawas.cpp index c2eb84b96a6..22f86da66fc 100644 --- a/src/mame/drivers/hanaawas.cpp +++ b/src/mame/drivers/hanaawas.cpp @@ -239,7 +239,7 @@ MACHINE_CONFIG_START(hanaawas_state::hanaawas) MCFG_PALETTE_INIT_OWNER(hanaawas_state, hanaawas) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, 18432000/12) MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW")) diff --git a/src/mame/drivers/hankin.cpp b/src/mame/drivers/hankin.cpp index ac9a60f4b93..887f7f6007d 100644 --- a/src/mame/drivers/hankin.cpp +++ b/src/mame/drivers/hankin.cpp @@ -489,7 +489,7 @@ MACHINE_CONFIG_START(hankin_state::hankin) /* Sound */ genpin_audio(config); - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_4BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) // unknown DAC MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT) diff --git a/src/mame/drivers/harddriv.cpp b/src/mame/drivers/harddriv.cpp index 9e71bd5cb15..9ea05a17761 100644 --- a/src/mame/drivers/harddriv.cpp +++ b/src/mame/drivers/harddriv.cpp @@ -1624,7 +1624,8 @@ MACHINE_CONFIG_START(harddriv_state::ds3) MCFG_DEVICE_DATA_MAP(ds3xdsp_data_map) MCFG_TIMER_DRIVER_ADD("ds3xdsp_timer", harddriv_state, ds3xdsp_internal_timer_callback) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ldac", DAC_16BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 1.0) // unknown DAC MCFG_DEVICE_ADD("rdac", DAC_16BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 1.0) // unknown DAC @@ -1868,7 +1869,7 @@ MACHINE_CONFIG_START(stunrun_board_device_state::device_add_mconfig) MCFG_SCREEN_RAW_PARAMS(5000000*2, 317*2, 0, 256*2, 262, 0, 228) /* sund hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_ATARI_JSA_II_ADD("jsa", WRITELINE(*this, harddriv_state, sound_int_write_line)) MCFG_ATARI_JSA_TEST_PORT("IN0", 5) @@ -1935,7 +1936,7 @@ MACHINE_CONFIG_START(steeltal_board_device_state::device_add_mconfig) MCFG_ASIC65_ADD("asic65", ASIC65_STEELTAL) /* ASIC65 on DSPCOM board */ /* sund hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_ATARI_JSA_III_ADD("jsa", WRITELINE(*this, harddriv_state, sound_int_write_line)) MCFG_ATARI_JSA_TEST_PORT("IN0", 5) diff --git a/src/mame/drivers/hcastle.cpp b/src/mame/drivers/hcastle.cpp index 9b4e2bcdf0e..0e8f98dc428 100644 --- a/src/mame/drivers/hcastle.cpp +++ b/src/mame/drivers/hcastle.cpp @@ -223,7 +223,7 @@ MACHINE_CONFIG_START(hcastle_state::hcastle) MCFG_K007121_PALETTE("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/hexion.cpp b/src/mame/drivers/hexion.cpp index 130e0641694..36a278d966d 100644 --- a/src/mame/drivers/hexion.cpp +++ b/src/mame/drivers/hexion.cpp @@ -278,7 +278,7 @@ MACHINE_CONFIG_START(hexion_state::hexion) MCFG_PALETTE_ADD_RRRRGGGGBBBB_PROMS("palette", "proms", 256) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, 1056000, okim6295_device::PIN7_HIGH) /* MSM6295GS @ 5E, clock frequency & pin 7 not verified */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.5) diff --git a/src/mame/drivers/hh_amis2k.cpp b/src/mame/drivers/hh_amis2k.cpp index 1ced76fd304..5c20af1243e 100644 --- a/src/mame/drivers/hh_amis2k.cpp +++ b/src/mame/drivers/hh_amis2k.cpp @@ -331,7 +331,7 @@ MACHINE_CONFIG_START(wildfire_state::wildfire) /* no video! */ /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END diff --git a/src/mame/drivers/hh_cop400.cpp b/src/mame/drivers/hh_cop400.cpp index 1a37cfbd183..63219c2a0dc 100644 --- a/src/mame/drivers/hh_cop400.cpp +++ b/src/mame/drivers/hh_cop400.cpp @@ -327,7 +327,7 @@ MACHINE_CONFIG_START(ctstein_state::ctstein) MCFG_DEFAULT_LAYOUT(layout_ctstein) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -470,7 +470,7 @@ MACHINE_CONFIG_START(h2hbaskbc_state::h2hbaskbc) MCFG_DEFAULT_LAYOUT(layout_h2hbaskbc) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -602,7 +602,7 @@ MACHINE_CONFIG_START(einvaderc_state::einvaderc) MCFG_DEFAULT_LAYOUT(layout_einvaderc) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -726,7 +726,7 @@ MACHINE_CONFIG_START(unkeinv_state::unkeinv) MCFG_DEFAULT_LAYOUT(layout_unkeinv) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -883,7 +883,7 @@ MACHINE_CONFIG_START(lchicken_state::lchicken) MCFG_DEFAULT_LAYOUT(layout_lchicken) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -991,7 +991,7 @@ MACHINE_CONFIG_START(funjacks_state::funjacks) MCFG_DEFAULT_LAYOUT(layout_funjacks) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -1086,7 +1086,7 @@ MACHINE_CONFIG_START(funrlgl_state::funrlgl) MCFG_DEFAULT_LAYOUT(layout_funrlgl) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -1222,7 +1222,7 @@ MACHINE_CONFIG_START(mdallas_state::mdallas) MCFG_DEFAULT_LAYOUT(layout_mdallas) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -1304,7 +1304,7 @@ MACHINE_CONFIG_START(plus1_state::plus1) /* no visual feedback! */ /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -1434,7 +1434,7 @@ MACHINE_CONFIG_START(lightfgt_state::lightfgt) MCFG_DEFAULT_LAYOUT(layout_lightfgt) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -1589,7 +1589,7 @@ MACHINE_CONFIG_START(bship82_state::bship82) MCFG_DEFAULT_LAYOUT(layout_bship82) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("dac", DAC_4BIT_BINARY_WEIGHTED_SIGN_MAGNITUDE, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.125) // see above MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT) @@ -1811,7 +1811,7 @@ MACHINE_CONFIG_START(vidchal_state::vidchal) MCFG_DEFAULT_LAYOUT(layout_vidchal) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("dac", DAC_4BIT_BINARY_WEIGHTED_SIGN_MAGNITUDE, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.125) // unknown DAC MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT) diff --git a/src/mame/drivers/hh_hmcs40.cpp b/src/mame/drivers/hh_hmcs40.cpp index 9e05aa3c9f4..e63254f5683 100644 --- a/src/mame/drivers/hh_hmcs40.cpp +++ b/src/mame/drivers/hh_hmcs40.cpp @@ -449,7 +449,7 @@ MACHINE_CONFIG_START(bambball_state::bambball) MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", hh_hmcs40_state, display_decay_tick, attotime::from_msec(1)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -586,7 +586,7 @@ MACHINE_CONFIG_START(bmboxing_state::bmboxing) MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", hh_hmcs40_state, display_decay_tick, attotime::from_msec(1)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -710,7 +710,7 @@ MACHINE_CONFIG_START(bfriskyt_state::bfriskyt) MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", hh_hmcs40_state, display_decay_tick, attotime::from_msec(1)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -821,7 +821,7 @@ MACHINE_CONFIG_START(packmon_state::packmon) MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", hh_hmcs40_state, display_decay_tick, attotime::from_msec(1)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -955,7 +955,7 @@ MACHINE_CONFIG_START(msthawk_state::msthawk) MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", hh_hmcs40_state, display_decay_tick, attotime::from_msec(1)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -1077,7 +1077,7 @@ MACHINE_CONFIG_START(bzaxxon_state::bzaxxon) MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", hh_hmcs40_state, display_decay_tick, attotime::from_msec(1)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -1195,7 +1195,7 @@ MACHINE_CONFIG_START(zackman_state::zackman) MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", hh_hmcs40_state, display_decay_tick, attotime::from_msec(1)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -1323,7 +1323,7 @@ MACHINE_CONFIG_START(bpengo_state::bpengo) MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", hh_hmcs40_state, display_decay_tick, attotime::from_msec(1)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -1447,7 +1447,7 @@ MACHINE_CONFIG_START(bbtime_state::bbtime) MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", hh_hmcs40_state, display_decay_tick, attotime::from_msec(1)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -1546,7 +1546,7 @@ MACHINE_CONFIG_START(bdoramon_state::bdoramon) MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", hh_hmcs40_state, display_decay_tick, attotime::from_msec(1)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -1638,7 +1638,7 @@ MACHINE_CONFIG_START(bultrman_state::bultrman) MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", hh_hmcs40_state, display_decay_tick, attotime::from_msec(1)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -1728,7 +1728,7 @@ MACHINE_CONFIG_START(machiman_state::machiman) MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", hh_hmcs40_state, display_decay_tick, attotime::from_msec(1)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -1879,7 +1879,7 @@ MACHINE_CONFIG_START(pairmtch_state::pairmtch) MCFG_DEFAULT_LAYOUT(layout_pairmtch) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_8_ADD("soundlatch2") @@ -1997,7 +1997,7 @@ MACHINE_CONFIG_START(alnattck_state::alnattck) MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", hh_hmcs40_state, display_decay_tick, attotime::from_msec(1)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -2127,7 +2127,7 @@ MACHINE_CONFIG_START(cdkong_state::cdkong) MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", hh_hmcs40_state, display_decay_tick, attotime::from_msec(1)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MCFG_TIMER_DRIVER_ADD_PERIODIC("speaker_decay", cdkong_state, speaker_decay_sim, attotime::from_msec(1)) @@ -2256,7 +2256,7 @@ MACHINE_CONFIG_START(cgalaxn_state::cgalaxn) MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", hh_hmcs40_state, display_decay_tick, attotime::from_msec(1)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -2378,7 +2378,7 @@ MACHINE_CONFIG_START(cpacman_state::cpacman) MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", hh_hmcs40_state, display_decay_tick, attotime::from_msec(1)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -2495,7 +2495,7 @@ MACHINE_CONFIG_START(cmspacmn_state::cmspacmn) MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", hh_hmcs40_state, display_decay_tick, attotime::from_msec(1)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -2635,7 +2635,7 @@ MACHINE_CONFIG_START(sag_state::sag) MCFG_DEFAULT_LAYOUT(layout_sag) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -2757,7 +2757,7 @@ MACHINE_CONFIG_START(egalaxn2_state::egalaxn2) MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", hh_hmcs40_state, display_decay_tick, attotime::from_msec(1)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -3018,7 +3018,7 @@ MACHINE_CONFIG_START(eturtles_state::eturtles) MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", hh_hmcs40_state, display_decay_tick, attotime::from_msec(1)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -3127,7 +3127,7 @@ MACHINE_CONFIG_START(estargte_state::estargte) MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", hh_hmcs40_state, display_decay_tick, attotime::from_msec(1)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -3243,7 +3243,7 @@ MACHINE_CONFIG_START(ghalien_state::ghalien) MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", hh_hmcs40_state, display_decay_tick, attotime::from_msec(1)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -3370,7 +3370,7 @@ MACHINE_CONFIG_START(gckong_state::gckong) MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", hh_hmcs40_state, display_decay_tick, attotime::from_msec(1)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -3491,7 +3491,7 @@ MACHINE_CONFIG_START(gdigdug_state::gdigdug) MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", hh_hmcs40_state, display_decay_tick, attotime::from_msec(1)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -3652,7 +3652,7 @@ MACHINE_CONFIG_START(mwcbaseb_state::mwcbaseb) MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", hh_hmcs40_state, display_decay_tick, attotime::from_msec(1)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SPEAKER_LEVELS(8, mwcbaseb_speaker_levels) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) @@ -3742,7 +3742,7 @@ MACHINE_CONFIG_START(pbqbert_state::pbqbert) MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", hh_hmcs40_state, display_decay_tick, attotime::from_msec(1)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -3863,7 +3863,7 @@ MACHINE_CONFIG_START(kingman_state::kingman) MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", hh_hmcs40_state, display_decay_tick, attotime::from_msec(1)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -3984,7 +3984,7 @@ MACHINE_CONFIG_START(tmtron_state::tmtron) MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", hh_hmcs40_state, display_decay_tick, attotime::from_msec(1)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -4079,7 +4079,7 @@ MACHINE_CONFIG_START(vinvader_state::vinvader) MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", hh_hmcs40_state, display_decay_tick, attotime::from_msec(1)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END diff --git a/src/mame/drivers/hh_melps4.cpp b/src/mame/drivers/hh_melps4.cpp index d92a921b566..1b294b5c4bf 100644 --- a/src/mame/drivers/hh_melps4.cpp +++ b/src/mame/drivers/hh_melps4.cpp @@ -315,7 +315,7 @@ MACHINE_CONFIG_START(cfrogger_state::cfrogger) MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", hh_melps4_state, display_decay_tick, attotime::from_msec(1)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -432,7 +432,7 @@ MACHINE_CONFIG_START(gjungler_state::gjungler) MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", hh_melps4_state, display_decay_tick, attotime::from_msec(1)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END diff --git a/src/mame/drivers/hh_pic16.cpp b/src/mame/drivers/hh_pic16.cpp index 971a790398e..9d700fc597a 100644 --- a/src/mame/drivers/hh_pic16.cpp +++ b/src/mame/drivers/hh_pic16.cpp @@ -394,7 +394,7 @@ MACHINE_CONFIG_START(touchme_state::touchme) MCFG_DEFAULT_LAYOUT(layout_touchme) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SPEAKER_LEVELS(4, touchme_speaker_levels) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) @@ -500,7 +500,7 @@ MACHINE_CONFIG_START(pabball_state::pabball) MCFG_DEFAULT_LAYOUT(layout_hh_pic16_test) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -615,7 +615,7 @@ MACHINE_CONFIG_START(melodym_state::melodym) MCFG_DEFAULT_LAYOUT(layout_melodym) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -714,7 +714,7 @@ MACHINE_CONFIG_START(maniac_state::maniac) MCFG_DEFAULT_LAYOUT(layout_maniac) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SPEAKER_LEVELS(4, maniac_speaker_levels) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) @@ -864,7 +864,7 @@ MACHINE_CONFIG_START(matchme_state::matchme) MCFG_DEFAULT_LAYOUT(layout_matchme) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -1020,7 +1020,7 @@ MACHINE_CONFIG_START(leboom_state::leboom) MCFG_DEFAULT_LAYOUT(layout_leboom) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MCFG_TIMER_DRIVER_ADD_PERIODIC("speaker_decay", leboom_state, speaker_decay_sim, attotime::from_msec(25)) @@ -1130,7 +1130,7 @@ MACHINE_CONFIG_START(tbaskb_state::tbaskb) MCFG_DEFAULT_LAYOUT(layout_tbaskb) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -1246,7 +1246,7 @@ MACHINE_CONFIG_START(rockpin_state::rockpin) MCFG_DEFAULT_LAYOUT(layout_rockpin) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SPEAKER_LEVELS(4, rockpin_speaker_levels) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) @@ -1357,7 +1357,7 @@ MACHINE_CONFIG_START(hccbaskb_state::hccbaskb) MCFG_DEFAULT_LAYOUT(layout_hccbaskb) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -1509,7 +1509,7 @@ MACHINE_CONFIG_START(ttfball_state::ttfball) MCFG_DEFAULT_LAYOUT(layout_ttfball) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -1620,7 +1620,7 @@ MACHINE_CONFIG_START(uspbball_state::uspbball) MCFG_DEFAULT_LAYOUT(layout_hh_pic16_test) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -1755,7 +1755,7 @@ MACHINE_CONFIG_START(us2pfball_state::us2pfball) MCFG_DEFAULT_LAYOUT(layout_us2pfball) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END diff --git a/src/mame/drivers/hh_sm510.cpp b/src/mame/drivers/hh_sm510.cpp index e20896a681f..92c7d264aac 100644 --- a/src/mame/drivers/hh_sm510.cpp +++ b/src/mame/drivers/hh_sm510.cpp @@ -281,7 +281,7 @@ MACHINE_CONFIG_START(kdribble_state::kdribble) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -354,7 +354,7 @@ MACHINE_CONFIG_START(ktopgun_state::ktopgun) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -428,7 +428,7 @@ MACHINE_CONFIG_START(kcontra_state::kcontra) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -501,7 +501,7 @@ MACHINE_CONFIG_START(ktmnt_state::ktmnt) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -571,7 +571,7 @@ MACHINE_CONFIG_START(kgradius_state::kgradius) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -639,7 +639,7 @@ MACHINE_CONFIG_START(kloneran_state::kloneran) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -710,7 +710,7 @@ MACHINE_CONFIG_START(kblades_state::kblades) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -783,7 +783,7 @@ MACHINE_CONFIG_START(knfl_state::knfl) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -855,7 +855,7 @@ MACHINE_CONFIG_START(kbilly_state::kbilly) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -921,7 +921,7 @@ MACHINE_CONFIG_START(kbucky_state::kbucky) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -991,7 +991,7 @@ MACHINE_CONFIG_START(kgarfld_state::kgarfld) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -1086,7 +1086,7 @@ MACHINE_CONFIG_START(gnw_mmouse_state::gnw_mmouse) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -1201,7 +1201,7 @@ MACHINE_CONFIG_START(gnw_mickdon_state::gnw_mickdon) MCFG_DEFAULT_LAYOUT(layout_gnw_dualv) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -1285,7 +1285,7 @@ MACHINE_CONFIG_START(gnw_dkong2_state::gnw_dkong2) MCFG_DEFAULT_LAYOUT(layout_gnw_dualv) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -1371,7 +1371,7 @@ MACHINE_CONFIG_START(gnw_mario_state::gnw_mario) MCFG_DEFAULT_LAYOUT(layout_gnw_dualh) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -1458,7 +1458,7 @@ MACHINE_CONFIG_START(gnw_dkjr_state::gnw_dkjr) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -1540,7 +1540,7 @@ MACHINE_CONFIG_START(gnw_mariocm_state::gnw_mariocm) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -1623,7 +1623,7 @@ MACHINE_CONFIG_START(gnw_smb_state::gnw_smb) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -1726,7 +1726,7 @@ MACHINE_CONFIG_START(gnw_boxing_state::gnw_boxing) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -1837,7 +1837,7 @@ MACHINE_CONFIG_START(tgaunt_state::tgaunt) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -1940,7 +1940,7 @@ MACHINE_CONFIG_START(tddragon_state::tddragon) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -2035,7 +2035,7 @@ MACHINE_CONFIG_START(tkarnov_state::tkarnov) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -2129,7 +2129,7 @@ MACHINE_CONFIG_START(tvindictr_state::tvindictr) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -2246,7 +2246,7 @@ MACHINE_CONFIG_START(tgaiden_state::tgaiden) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -2336,7 +2336,7 @@ MACHINE_CONFIG_START(tbatman_state::tbatman) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -2430,7 +2430,7 @@ MACHINE_CONFIG_START(tsharr2_state::tsharr2) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -2521,7 +2521,7 @@ MACHINE_CONFIG_START(tstrider_state::tstrider) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -2616,7 +2616,7 @@ MACHINE_CONFIG_START(tgoldnaxe_state::tgoldnaxe) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -2711,7 +2711,7 @@ MACHINE_CONFIG_START(trobocop2_state::trobocop2) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -2810,7 +2810,7 @@ MACHINE_CONFIG_START(taltbeast_state::taltbeast) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -2905,7 +2905,7 @@ MACHINE_CONFIG_START(tsf2010_state::tsf2010) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -2996,7 +2996,7 @@ MACHINE_CONFIG_START(tswampt_state::tswampt) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -3091,7 +3091,7 @@ MACHINE_CONFIG_START(tspidman_state::tspidman) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -3186,7 +3186,7 @@ MACHINE_CONFIG_START(tddragon3_state::tddragon3) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -3281,7 +3281,7 @@ MACHINE_CONFIG_START(tflash_state::tflash) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -3376,7 +3376,7 @@ MACHINE_CONFIG_START(tmchammer_state::tmchammer) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -3471,7 +3471,7 @@ MACHINE_CONFIG_START(tbtoads_state::tbtoads) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -3566,7 +3566,7 @@ MACHINE_CONFIG_START(thook_state::thook) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -3660,7 +3660,7 @@ MACHINE_CONFIG_START(tbttf_state::tbttf) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -3757,7 +3757,7 @@ MACHINE_CONFIG_START(taddams_state::taddams) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -3852,7 +3852,7 @@ MACHINE_CONFIG_START(thalone_state::thalone) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -3943,7 +3943,7 @@ MACHINE_CONFIG_START(txmenpx_state::txmenpx) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -4038,7 +4038,7 @@ MACHINE_CONFIG_START(thalone2_state::thalone2) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -4155,7 +4155,7 @@ MACHINE_CONFIG_START(tsonic_state::tsonic) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SPEAKER_LEVELS(4, tsonic_speaker_levels) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) @@ -4251,7 +4251,7 @@ MACHINE_CONFIG_START(trobocop3_state::trobocop3) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -4342,7 +4342,7 @@ MACHINE_CONFIG_START(tdummies_state::tdummies) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -4437,7 +4437,7 @@ MACHINE_CONFIG_START(tsfight2_state::tsfight2) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -4528,7 +4528,7 @@ MACHINE_CONFIG_START(tjpark_state::tjpark) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -4645,7 +4645,7 @@ MACHINE_CONFIG_START(tsonic2_state::tsonic2) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SPEAKER_LEVELS(4, tsonic2_speaker_levels) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) @@ -4746,7 +4746,7 @@ MACHINE_CONFIG_START(tsddragon_state::tsddragon) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -4842,7 +4842,7 @@ MACHINE_CONFIG_START(tdennis_state::tdennis) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -4941,7 +4941,7 @@ MACHINE_CONFIG_START(tnmarebc_state::tnmarebc) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -5036,7 +5036,7 @@ MACHINE_CONFIG_START(ttransf2_state::ttransf2) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -5132,7 +5132,7 @@ MACHINE_CONFIG_START(tmkombat_state::tmkombat) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -5227,7 +5227,7 @@ MACHINE_CONFIG_START(tshadow_state::tshadow) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -5322,7 +5322,7 @@ MACHINE_CONFIG_START(tskelwarr_state::tskelwarr) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -5418,7 +5418,7 @@ MACHINE_CONFIG_START(tbatfor_state::tbatfor) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -5514,7 +5514,7 @@ MACHINE_CONFIG_START(tjdredd_state::tjdredd) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -5610,7 +5610,7 @@ MACHINE_CONFIG_START(tapollo13_state::tapollo13) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -5706,7 +5706,7 @@ MACHINE_CONFIG_START(tgoldeye_state::tgoldeye) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -5797,7 +5797,7 @@ MACHINE_CONFIG_START(tinday_state::tinday) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -5888,7 +5888,7 @@ MACHINE_CONFIG_START(tsjam_state::tsjam) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -5991,7 +5991,7 @@ MACHINE_CONFIG_START(tigarden_state::tigarden) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -6091,7 +6091,7 @@ MACHINE_CONFIG_START(nummunch_state::nummunch) MCFG_DEFAULT_LAYOUT(layout_svg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END diff --git a/src/mame/drivers/hh_tms1k.cpp b/src/mame/drivers/hh_tms1k.cpp index db66f46d661..dc5e6d68058 100644 --- a/src/mame/drivers/hh_tms1k.cpp +++ b/src/mame/drivers/hh_tms1k.cpp @@ -542,7 +542,7 @@ MACHINE_CONFIG_START(matchnum_state::matchnum) MCFG_DEFAULT_LAYOUT(layout_matchnum) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SPEAKER_LEVELS(4, matchnum_speaker_levels) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) @@ -642,7 +642,7 @@ MACHINE_CONFIG_START(arrball_state::arrball) MCFG_DEFAULT_LAYOUT(layout_arrball) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SPEAKER_LEVELS(4, arrball_speaker_levels) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) @@ -1055,7 +1055,7 @@ MACHINE_CONFIG_START(amaztron_state::amaztron) MCFG_DEFAULT_LAYOUT(layout_amaztron) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -1233,7 +1233,7 @@ MACHINE_CONFIG_START(zodiac_state::zodiac) MCFG_DEFAULT_LAYOUT(layout_zodiac) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -1348,7 +1348,7 @@ MACHINE_CONFIG_START(cqback_state::cqback) MCFG_DEFAULT_LAYOUT(layout_cqback) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -1466,7 +1466,7 @@ MACHINE_CONFIG_START(h2hfootb_state::h2hfootb) MCFG_DEFAULT_LAYOUT(layout_h2hfootb) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -1609,7 +1609,7 @@ MACHINE_CONFIG_START(h2hhockey_state::h2hhockey) MCFG_DEFAULT_LAYOUT(layout_h2hhockey) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -1748,7 +1748,7 @@ MACHINE_CONFIG_START(h2hbaseb_state::h2hbaseb) MCFG_DEFAULT_LAYOUT(layout_h2hbaseb) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -1860,7 +1860,7 @@ MACHINE_CONFIG_START(h2hboxing_state::h2hboxing) MCFG_DEFAULT_LAYOUT(layout_h2hboxing) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -2031,7 +2031,7 @@ MACHINE_CONFIG_START(quizwizc_state::quizwizc) MCFG_DEFAULT_LAYOUT(layout_quizwizc) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) @@ -2207,7 +2207,7 @@ MACHINE_CONFIG_START(tc4_state::tc4) MCFG_DEFAULT_LAYOUT(layout_tc4) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) @@ -2322,7 +2322,7 @@ MACHINE_CONFIG_START(cnbaskb_state::cnbaskb) MCFG_DEFAULT_LAYOUT(layout_cnbaskb) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -2435,7 +2435,7 @@ MACHINE_CONFIG_START(cmsport_state::cmsport) MCFG_DEFAULT_LAYOUT(layout_cmsport) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -2561,7 +2561,7 @@ MACHINE_CONFIG_START(cnfball_state::cnfball) MCFG_DEFAULT_LAYOUT(layout_cnfball) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SPEAKER_LEVELS(4, cnfball_speaker_levels) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) @@ -2688,7 +2688,7 @@ MACHINE_CONFIG_START(cnfball2_state::cnfball2) MCFG_DEFAULT_LAYOUT(layout_cnfball2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -2829,7 +2829,7 @@ MACHINE_CONFIG_START(eleciq_state::eleciq) MCFG_DEFAULT_LAYOUT(layout_eleciq) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -2934,7 +2934,7 @@ MACHINE_CONFIG_START(esoccer_state::esoccer) MCFG_DEFAULT_LAYOUT(layout_esoccer) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -3068,7 +3068,7 @@ MACHINE_CONFIG_START(ebball_state::ebball) MCFG_DEFAULT_LAYOUT(layout_ebball) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -3191,7 +3191,7 @@ MACHINE_CONFIG_START(ebball2_state::ebball2) MCFG_DEFAULT_LAYOUT(layout_ebball2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -3371,7 +3371,7 @@ MACHINE_CONFIG_START(ebball3_state::ebball3) MCFG_DEFAULT_LAYOUT(layout_ebball3) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -3482,7 +3482,7 @@ MACHINE_CONFIG_START(esbattle_state::esbattle) MCFG_DEFAULT_LAYOUT(layout_esbattle) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -3596,7 +3596,7 @@ MACHINE_CONFIG_START(einvader_state::einvader) MCFG_DEFAULT_LAYOUT(layout_einvader) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -3711,7 +3711,7 @@ MACHINE_CONFIG_START(efootb4_state::efootb4) MCFG_DEFAULT_LAYOUT(layout_efootb4) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -3832,7 +3832,7 @@ MACHINE_CONFIG_START(ebaskb2_state::ebaskb2) MCFG_DEFAULT_LAYOUT(layout_ebaskb2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -3971,7 +3971,7 @@ MACHINE_CONFIG_START(raisedvl_state::raisedvl) MCFG_DEFAULT_LAYOUT(layout_raisedvl) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -4102,7 +4102,7 @@ MACHINE_CONFIG_START(f2pbball_state::f2pbball) MCFG_DEFAULT_LAYOUT(layout_f2pbball) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -4239,7 +4239,7 @@ MACHINE_CONFIG_START(f3in1_state::f3in1) MCFG_DEFAULT_LAYOUT(layout_f3in1) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -4384,7 +4384,7 @@ MACHINE_CONFIG_START(gpoker_state::gpoker) MCFG_DEFAULT_LAYOUT(layout_gpoker) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, 2405) // astable multivibrator - C1 and C2 are 0.003uF, R1 and R4 are 1K, R2 and R3 are 100K MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -4497,7 +4497,7 @@ MACHINE_CONFIG_START(gjackpot_state::gjackpot) MCFG_DEFAULT_LAYOUT(layout_gjackpot) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, 2405) // see gpoker MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -4607,7 +4607,7 @@ MACHINE_CONFIG_START(ginv1000_state::ginv1000) MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", hh_tms1k_state, display_decay_tick, attotime::from_msec(1)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -4743,7 +4743,7 @@ MACHINE_CONFIG_START(ginv2000_state::ginv2000) MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", hh_tms1k_state, display_decay_tick, attotime::from_msec(1)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -4881,7 +4881,7 @@ MACHINE_CONFIG_START(fxmcr165_state::fxmcr165) MCFG_DEFAULT_LAYOUT(layout_fxmcr165) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -5010,7 +5010,7 @@ MACHINE_CONFIG_START(elecdet_state::elecdet) MCFG_DEFAULT_LAYOUT(layout_elecdet) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SPEAKER_LEVELS(4, elecdet_speaker_levels) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) @@ -5137,7 +5137,7 @@ MACHINE_CONFIG_START(starwbc_state::starwbc) MCFG_DEFAULT_LAYOUT(layout_starwbc) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -5430,7 +5430,7 @@ MACHINE_CONFIG_START(elecbowl_state::elecbowl) MCFG_DEFAULT_LAYOUT(layout_elecbowl) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -5765,7 +5765,7 @@ MACHINE_CONFIG_START(mdndclab_state::mdndclab) MCFG_DEFAULT_LAYOUT(layout_mdndclab) // playing board /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -6122,7 +6122,7 @@ MACHINE_CONFIG_START(bshipb_state::bshipb) MCFG_DEFAULT_LAYOUT(layout_bship) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("sn76477", SN76477) MCFG_SN76477_NOISE_PARAMS(RES_K(47), RES_K(100), CAP_P(47)) // R18, R17, C8 MCFG_SN76477_DECAY_RES(RES_M(3.3)) // R16 @@ -6239,7 +6239,7 @@ MACHINE_CONFIG_START(simon_state::simon) MCFG_DEFAULT_LAYOUT(layout_simon) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -6380,7 +6380,7 @@ MACHINE_CONFIG_START(ssimon_state::ssimon) MCFG_DEFAULT_LAYOUT(layout_ssimon) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -6562,7 +6562,7 @@ MACHINE_CONFIG_START(bigtrak_state::bigtrak) MCFG_DEFAULT_LAYOUT(layout_bigtrak) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SPEAKER_LEVELS(8, bigtrak_speaker_levels) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) @@ -6795,7 +6795,7 @@ MACHINE_CONFIG_START(mbdtower_state::mbdtower) MCFG_DEFAULT_LAYOUT(layout_mbdtower) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -6905,7 +6905,7 @@ MACHINE_CONFIG_START(arcmania_state::arcmania) MCFG_DEFAULT_LAYOUT(layout_arcmania) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SPEAKER_LEVELS(8, arcmania_speaker_levels) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) @@ -7138,7 +7138,7 @@ MACHINE_CONFIG_START(merlin_state::merlin) MCFG_DEFAULT_LAYOUT(layout_merlin) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SPEAKER_LEVELS(8, merlin_speaker_levels) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) @@ -7203,7 +7203,7 @@ MACHINE_CONFIG_START(mmerlin_state::mmerlin) MCFG_DEFAULT_LAYOUT(layout_mmerlin) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SPEAKER_LEVELS(8, merlin_speaker_levels) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) @@ -7319,7 +7319,7 @@ MACHINE_CONFIG_START(stopthief_state::stopthief) MCFG_DEFAULT_LAYOUT(layout_stopthief) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SPEAKER_LEVELS(7, stopthief_speaker_levels) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) @@ -7432,7 +7432,7 @@ MACHINE_CONFIG_START(bankshot_state::bankshot) MCFG_DEFAULT_LAYOUT(layout_bankshot) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -7549,7 +7549,7 @@ MACHINE_CONFIG_START(splitsec_state::splitsec) MCFG_DEFAULT_LAYOUT(layout_splitsec) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -7667,7 +7667,7 @@ MACHINE_CONFIG_START(lostreas_state::lostreas) MCFG_DEFAULT_LAYOUT(layout_lostreas) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SPEAKER_LEVELS(16, lostreas_speaker_levels) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) @@ -7790,7 +7790,7 @@ MACHINE_CONFIG_START(alphie_state::alphie) MCFG_DEFAULT_LAYOUT(layout_alphie) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -7899,7 +7899,7 @@ MACHINE_CONFIG_START(tcfball_state::tcfball) MCFG_DEFAULT_LAYOUT(layout_tcfball) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -7965,7 +7965,7 @@ MACHINE_CONFIG_START(tcfballa_state::tcfballa) MCFG_DEFAULT_LAYOUT(layout_tcfballa) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -8129,7 +8129,7 @@ MACHINE_CONFIG_START(tandy12_state::tandy12) MCFG_DEFAULT_LAYOUT(layout_tandy12) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -8237,7 +8237,7 @@ MACHINE_CONFIG_START(monkeysee_state::monkeysee) MCFG_DEFAULT_LAYOUT(layout_monkeysee) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -8386,7 +8386,7 @@ MACHINE_CONFIG_START(speechp_state::speechp) MCFG_DEFAULT_LAYOUT(layout_speechp) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speech", S14001A, 25000) // approximation MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75) MACHINE_CONFIG_END @@ -8570,7 +8570,7 @@ MACHINE_CONFIG_START(copycat_state::copycat) MCFG_DEFAULT_LAYOUT(layout_copycat) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SPEAKER_LEVELS(4, copycat_speaker_levels) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) @@ -8646,7 +8646,7 @@ MACHINE_CONFIG_START(copycatm2_state::copycatm2) MCFG_DEFAULT_LAYOUT(layout_copycatm2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SPEAKER_LEVELS(4, copycat_speaker_levels) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) @@ -8717,7 +8717,7 @@ MACHINE_CONFIG_START(ditto_state::ditto) MCFG_DEFAULT_LAYOUT(layout_ditto) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SPEAKER_LEVELS(4, copycat_speaker_levels) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) @@ -8833,7 +8833,7 @@ MACHINE_CONFIG_START(ss7in1_state::ss7in1) MCFG_DEFAULT_LAYOUT(layout_7in1ss) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -9035,7 +9035,7 @@ MACHINE_CONFIG_START(tbreakup_state::tbreakup) MCFG_DEFAULT_LAYOUT(layout_tbreakup) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -9159,7 +9159,7 @@ MACHINE_CONFIG_START(phpball_state::phpball) MCFG_DEFAULT_LAYOUT(layout_hh_tms1k_test) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -9295,7 +9295,7 @@ MACHINE_CONFIG_START(ssports4_state::ssports4) MCFG_DEFAULT_LAYOUT(layout_ssports4) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -9464,7 +9464,7 @@ MACHINE_CONFIG_START(xl25_state::xl25) MCFG_DEFAULT_LAYOUT(layout_xl25) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END diff --git a/src/mame/drivers/hh_ucom4.cpp b/src/mame/drivers/hh_ucom4.cpp index cf5fb92957b..a4a1412fa22 100644 --- a/src/mame/drivers/hh_ucom4.cpp +++ b/src/mame/drivers/hh_ucom4.cpp @@ -352,7 +352,7 @@ MACHINE_CONFIG_START(ufombs_state::ufombs) MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", hh_ucom4_state, display_decay_tick, attotime::from_msec(1)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SPEAKER_LEVELS(4, ufombs_speaker_levels) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) @@ -499,7 +499,7 @@ MACHINE_CONFIG_START(ssfball_state::ssfball) MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", hh_ucom4_state, display_decay_tick, attotime::from_msec(1)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SPEAKER_LEVELS(4, ssfball_speaker_levels) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) @@ -627,7 +627,7 @@ MACHINE_CONFIG_START(bmsoccer_state::bmsoccer) MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", hh_ucom4_state, display_decay_tick, attotime::from_msec(1)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -734,7 +734,7 @@ MACHINE_CONFIG_START(bmsafari_state::bmsafari) MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", hh_ucom4_state, display_decay_tick, attotime::from_msec(1)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -885,7 +885,7 @@ MACHINE_CONFIG_START(splasfgt_state::splasfgt) MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", hh_ucom4_state, display_decay_tick, attotime::from_msec(1)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SPEAKER_LEVELS(4, splasfgt_speaker_levels) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) @@ -989,7 +989,7 @@ MACHINE_CONFIG_START(bcclimbr_state::bcclimbr) MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", hh_ucom4_state, display_decay_tick, attotime::from_msec(1)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -1104,7 +1104,7 @@ MACHINE_CONFIG_START(tactix_state::tactix) MCFG_DEFAULT_LAYOUT(layout_tactix) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -1206,7 +1206,7 @@ MACHINE_CONFIG_START(invspace_state::invspace) MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", hh_ucom4_state, display_decay_tick, attotime::from_msec(1)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -1317,7 +1317,7 @@ MACHINE_CONFIG_START(efball_state::efball) MCFG_DEFAULT_LAYOUT(layout_efball) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -1422,7 +1422,7 @@ MACHINE_CONFIG_START(galaxy2_state::galaxy2) MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", hh_ucom4_state, display_decay_tick, attotime::from_msec(1)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -1541,7 +1541,7 @@ MACHINE_CONFIG_START(astrocmd_state::astrocmd) MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", hh_ucom4_state, display_decay_tick, attotime::from_msec(1)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -1637,7 +1637,7 @@ MACHINE_CONFIG_START(edracula_state::edracula) MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", hh_ucom4_state, display_decay_tick, attotime::from_msec(1)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -1817,7 +1817,7 @@ MACHINE_CONFIG_START(mvbfree_state::mvbfree) MCFG_DEFAULT_LAYOUT(layout_mvbfree) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -1932,7 +1932,7 @@ MACHINE_CONFIG_START(grobot9_state::grobot9) MCFG_DEFAULT_LAYOUT(layout_grobot9) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -2030,7 +2030,7 @@ MACHINE_CONFIG_START(tccombat_state::tccombat) MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", hh_ucom4_state, display_decay_tick, attotime::from_msec(1)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -2188,7 +2188,7 @@ MACHINE_CONFIG_START(tmtennis_state::tmtennis) MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", hh_ucom4_state, display_decay_tick, attotime::from_msec(1)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -2297,7 +2297,7 @@ MACHINE_CONFIG_START(tmpacman_state::tmpacman) MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", hh_ucom4_state, display_decay_tick, attotime::from_msec(1)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -2400,7 +2400,7 @@ MACHINE_CONFIG_START(tmscramb_state::tmscramb) MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", hh_ucom4_state, display_decay_tick, attotime::from_msec(1)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -2499,7 +2499,7 @@ MACHINE_CONFIG_START(tcaveman_state::tcaveman) MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", hh_ucom4_state, display_decay_tick, attotime::from_msec(1)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -2632,7 +2632,7 @@ MACHINE_CONFIG_START(alnchase_state::alnchase) MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", hh_ucom4_state, display_decay_tick, attotime::from_msec(1)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END diff --git a/src/mame/drivers/hideseek.cpp b/src/mame/drivers/hideseek.cpp index 3e271480426..70057c9a021 100644 --- a/src/mame/drivers/hideseek.cpp +++ b/src/mame/drivers/hideseek.cpp @@ -119,7 +119,8 @@ MACHINE_CONFIG_START(hideseek_state::hideseek) MCFG_PALETTE_INIT_OWNER(hideseek_state, hideseek) MCFG_GFXDECODE_ADD("gfxdecode", "palette", hideseek) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker","rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); /* sound : M9810 */ MACHINE_CONFIG_END diff --git a/src/mame/drivers/higemaru.cpp b/src/mame/drivers/higemaru.cpp index 7410352453e..0d25f9a79b1 100644 --- a/src/mame/drivers/higemaru.cpp +++ b/src/mame/drivers/higemaru.cpp @@ -186,7 +186,7 @@ MACHINE_CONFIG_START(higemaru_state::higemaru) MCFG_PALETTE_INIT_OWNER(higemaru_state, higemaru) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay1", AY8910, XTAL(12'000'000)/8) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mame/drivers/highvdeo.cpp b/src/mame/drivers/highvdeo.cpp index bef90059f0e..8b9bcd1e8b3 100644 --- a/src/mame/drivers/highvdeo.cpp +++ b/src/mame/drivers/highvdeo.cpp @@ -1184,7 +1184,7 @@ MACHINE_CONFIG_START(highvdeo_state::tv_vcf) MCFG_VIDEO_START_OVERRIDE(highvdeo_state,tourvisn) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); //OkiM6376 MCFG_DEVICE_ADD("oki", OKIM6376, XTAL(12'000'000)/2/2/20)//Guess, gives approx. same sample rate as previous emulation @@ -1266,7 +1266,7 @@ MACHINE_CONFIG_START(highvdeo_state::brasil) MCFG_VIDEO_START_OVERRIDE(highvdeo_state,tourvisn) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6376, XTAL(12'000'000)/2/2/20)//Guess, gives same sample rate as previous emulation MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -1292,7 +1292,7 @@ MACHINE_CONFIG_START(highvdeo_state::grancapi) MCFG_VIDEO_START_OVERRIDE(highvdeo_state,tourvisn) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6376, XTAL(12'000'000)/2/2/20)//Guess, gives same sample rate as previous emulation MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -1318,7 +1318,7 @@ MACHINE_CONFIG_START(highvdeo_state::magicbom) MCFG_VIDEO_START_OVERRIDE(highvdeo_state,tourvisn) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6376, XTAL(12'000'000)/2/2/20)//Guess, gives same sample rate as previous emulation MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/hikaru.cpp b/src/mame/drivers/hikaru.cpp index 861eb0e167c..f2b814cb089 100644 --- a/src/mame/drivers/hikaru.cpp +++ b/src/mame/drivers/hikaru.cpp @@ -525,7 +525,8 @@ MACHINE_CONFIG_START(hikaru_state::hikaru) MCFG_PALETTE_ADD("palette", 0x1000) -// MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") +// SPEAKER(config, "lspeaker").front_left(); +// SPEAKER(config, "rspeaker").front_right(); // MCFG_DEVICE_ADD("aica", AICA, 0) // MCFG_SOUND_ROUTE(0, "lspeaker", 2.0) // MCFG_SOUND_ROUTE(0, "rspeaker", 2.0) diff --git a/src/mame/drivers/himesiki.cpp b/src/mame/drivers/himesiki.cpp index aadcaf1114e..61db2aa8f75 100644 --- a/src/mame/drivers/himesiki.cpp +++ b/src/mame/drivers/himesiki.cpp @@ -463,7 +463,7 @@ MACHINE_CONFIG_START(himesiki_state::himesiki) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/hitme.cpp b/src/mame/drivers/hitme.cpp index 377744402e1..16a3bf884bc 100644 --- a/src/mame/drivers/hitme.cpp +++ b/src/mame/drivers/hitme.cpp @@ -335,7 +335,7 @@ MACHINE_CONFIG_START(hitme_state::hitme) MCFG_PALETTE_ADD_MONOCHROME("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("discrete", DISCRETE, hitme_discrete) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) MACHINE_CONFIG_END diff --git a/src/mame/drivers/hitpoker.cpp b/src/mame/drivers/hitpoker.cpp index ef003267224..9433bd11ad6 100644 --- a/src/mame/drivers/hitpoker.cpp +++ b/src/mame/drivers/hitpoker.cpp @@ -483,7 +483,7 @@ MACHINE_CONFIG_START(hitpoker_state::hitpoker) MCFG_GFXDECODE_ADD("gfxdecode", "palette", hitpoker) MCFG_PALETTE_ADD("palette", 0x800) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", YM2149, 1500000) MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW1")) diff --git a/src/mame/drivers/hnayayoi.cpp b/src/mame/drivers/hnayayoi.cpp index 3c34b7ce1e2..dc52effe861 100644 --- a/src/mame/drivers/hnayayoi.cpp +++ b/src/mame/drivers/hnayayoi.cpp @@ -576,7 +576,7 @@ MACHINE_CONFIG_START(hnayayoi_state::hnayayoi) MCFG_MC6845_UPDATE_ROW_CB(hnayayoi_state, hnayayoi_update_row) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2203, 20000000/8) MCFG_YM2203_IRQ_HANDLER(WRITELINE(*this, hnayayoi_state, irqhandler)) diff --git a/src/mame/drivers/holeland.cpp b/src/mame/drivers/holeland.cpp index 38bc5016ee2..4681b8d72f6 100644 --- a/src/mame/drivers/holeland.cpp +++ b/src/mame/drivers/holeland.cpp @@ -304,7 +304,7 @@ MACHINE_CONFIG_START(holeland_state::holeland) MCFG_VIDEO_START_OVERRIDE(holeland_state,holeland) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay1", AY8910, 20000000/32) /* verified on PCB */ MCFG_AY8910_PORT_A_READ_CB(IOPORT("IN0")) @@ -385,7 +385,7 @@ MACHINE_CONFIG_START(holeland_state::crzrally) MCFG_VIDEO_START_OVERRIDE(holeland_state,crzrally) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay1", AY8910, 20000000/16) MCFG_AY8910_PORT_A_READ_CB(IOPORT("IN0")) diff --git a/src/mame/drivers/homedata.cpp b/src/mame/drivers/homedata.cpp index 9880db51314..625a167c81d 100644 --- a/src/mame/drivers/homedata.cpp +++ b/src/mame/drivers/homedata.cpp @@ -1250,7 +1250,7 @@ MACHINE_CONFIG_START(homedata_state::mrokumei) MCFG_VIDEO_START_OVERRIDE(homedata_state,mrokumei) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -1303,7 +1303,7 @@ MACHINE_CONFIG_START(homedata_state::reikaids) MCFG_VIDEO_START_OVERRIDE(homedata_state,reikaids) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2203, 3000000) MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW1")) @@ -1361,7 +1361,7 @@ MACHINE_CONFIG_START(homedata_state::pteacher) MCFG_VIDEO_START_OVERRIDE(homedata_state,pteacher) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("snsnd", SN76489A, 16000000/4) // SN76489AN actually MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) @@ -1530,7 +1530,7 @@ MACHINE_CONFIG_START(homedata_state::mirderby) MCFG_VIDEO_START_OVERRIDE(homedata_state,mirderby) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2203, 2000000) MCFG_SOUND_ROUTE(0, "speaker", 0.25) diff --git a/src/mame/drivers/homelab.cpp b/src/mame/drivers/homelab.cpp index 1705af6be80..06d68a01768 100644 --- a/src/mame/drivers/homelab.cpp +++ b/src/mame/drivers/homelab.cpp @@ -765,7 +765,7 @@ MACHINE_CONFIG_START(homelab_state::homelab) MCFG_PALETTE_ADD_MONOCHROME("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) @@ -798,7 +798,7 @@ MACHINE_CONFIG_START(homelab_state::homelab3) MCFG_PALETTE_ADD_MONOCHROME("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) @@ -831,7 +831,7 @@ MACHINE_CONFIG_START(homelab_state::brailab4) MCFG_PALETTE_ADD_MONOCHROME("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) diff --git a/src/mame/drivers/homerun.cpp b/src/mame/drivers/homerun.cpp index a1538963dbc..2d147df97b8 100644 --- a/src/mame/drivers/homerun.cpp +++ b/src/mame/drivers/homerun.cpp @@ -376,7 +376,7 @@ MACHINE_CONFIG_START(homerun_state::dynashot) MCFG_PALETTE_ADD("palette", 16*4) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2203, XTAL(20'000'000)/8) MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW")) diff --git a/src/mame/drivers/hornet.cpp b/src/mame/drivers/hornet.cpp index 06cc099d000..97dfb670065 100644 --- a/src/mame/drivers/hornet.cpp +++ b/src/mame/drivers/hornet.cpp @@ -1065,7 +1065,8 @@ MACHINE_CONFIG_START(hornet_state::hornet) MCFG_K056800_ADD("k056800", XTAL(16'934'400)) MCFG_K056800_INT_HANDLER(INPUTLINE("audiocpu", M68K_IRQ_2)) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("rfsnd", RF5C400, XTAL(16'934'400)) // value from Guru readme, gives 44100 Hz sample rate MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) diff --git a/src/mame/drivers/hotblock.cpp b/src/mame/drivers/hotblock.cpp index 5e267bb7c7d..6ab136fe55e 100644 --- a/src/mame/drivers/hotblock.cpp +++ b/src/mame/drivers/hotblock.cpp @@ -224,7 +224,7 @@ MACHINE_CONFIG_START(hotblock_state::hotblock) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", YM2149, 1000000) MCFG_AY8910_PORT_A_READ_CB(IOPORT("P1")) diff --git a/src/mame/drivers/hp16500.cpp b/src/mame/drivers/hp16500.cpp index b7d03a4c4f9..34ace3311e5 100644 --- a/src/mame/drivers/hp16500.cpp +++ b/src/mame/drivers/hp16500.cpp @@ -428,7 +428,8 @@ MACHINE_CONFIG_START(hp16500_state::hp1650) MCFG_DEVICE_ADD("epci", MC2661, 5000000) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MACHINE_CONFIG_END MACHINE_CONFIG_START(hp16500_state::hp1651) @@ -448,7 +449,8 @@ MACHINE_CONFIG_START(hp16500_state::hp1651) MCFG_DEVICE_ADD("epci", MC2661, 5000000) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MACHINE_CONFIG_END MACHINE_CONFIG_START(hp16500_state::hp16500a) @@ -466,7 +468,8 @@ MACHINE_CONFIG_START(hp16500_state::hp16500a) MCFG_MC6845_UPDATE_ROW_CB(hp16500_state, crtc_update_row) MCFG_MC6845_OUT_VSYNC_CB(WRITELINE(*this, hp16500_state, vsync_changed)) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MACHINE_CONFIG_END MACHINE_CONFIG_START(hp16500_state::hp16500) @@ -492,7 +495,8 @@ MACHINE_CONFIG_START(hp16500_state::hp16500) MCFG_HP_HIL_SLOT_ADD("mlc", "hil1", hp_hil_devices, "hp_ipc_kbd") MCFG_HP_HIL_SLOT_ADD("mlc", "hil2", hp_hil_devices, "hp_ipc_kbd") - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MACHINE_CONFIG_END static INPUT_PORTS_START( hp16500 ) diff --git a/src/mame/drivers/hp2640.cpp b/src/mame/drivers/hp2640.cpp index 659fda3f0e4..1a6d4287c1e 100644 --- a/src/mame/drivers/hp2640.cpp +++ b/src/mame/drivers/hp2640.cpp @@ -994,7 +994,7 @@ MACHINE_CONFIG_START(hp2645_state::hp2645) MCFG_AY51013_AUTO_RDAV(true) // Beep - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beep" , BEEP , BEEP_FREQUENCY) MCFG_SOUND_ROUTE(ALL_OUTPUTS , "mono" , 1.00) MCFG_TIMER_DRIVER_ADD("timer_beep" , hp2645_state , timer_beep_exp) diff --git a/src/mame/drivers/hp48.cpp b/src/mame/drivers/hp48.cpp index 5afa55d38ff..0ffdd8587ec 100644 --- a/src/mame/drivers/hp48.cpp +++ b/src/mame/drivers/hp48.cpp @@ -1284,7 +1284,7 @@ MACHINE_CONFIG_START(hp48_state::hp48_common) MCFG_PALETTE_INIT_OWNER(hp48_state, hp48) /* sound */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) diff --git a/src/mame/drivers/hp64k.cpp b/src/mame/drivers/hp64k.cpp index 9119c627ebf..e408737bcdc 100644 --- a/src/mame/drivers/hp64k.cpp +++ b/src/mame/drivers/hp64k.cpp @@ -1434,7 +1434,7 @@ MACHINE_CONFIG_START(hp64k_state::hp64k) MCFG_TTL74123_CLEAR_PIN_VALUE(1) MCFG_TTL74123_OUTPUT_CHANGED_CB(WRITELINE(*this, hp64k_state , hp64k_floppy1_rdy)); - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beeper" , BEEP , 2500) MCFG_SOUND_ROUTE(ALL_OUTPUTS , "mono" , 1.00) diff --git a/src/mame/drivers/hp80.cpp b/src/mame/drivers/hp80.cpp index 7278f2e382a..fb87e6afb04 100644 --- a/src/mame/drivers/hp80.cpp +++ b/src/mame/drivers/hp80.cpp @@ -1356,7 +1356,7 @@ MACHINE_CONFIG_START(hp85_state::hp85) MCFG_TIMER_DRIVER_ADD("prt_busy_timer", hp85_state, prt_busy_timer) // Beeper - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("dac" , DAC_1BIT , 0) MCFG_MIXER_ROUTE(ALL_OUTPUTS , "mono" , 0.5 , 0) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) diff --git a/src/mame/drivers/hp9845.cpp b/src/mame/drivers/hp9845.cpp index a7b5f3a2cc8..7c02b0ebb23 100644 --- a/src/mame/drivers/hp9845.cpp +++ b/src/mame/drivers/hp9845.cpp @@ -3751,7 +3751,7 @@ MACHINE_CONFIG_START(hp9845_base_state::hp9845_base) MCFG_TIMER_DRIVER_ADD_PERIODIC("kb_timer" , hp9845_base_state , kb_scan , attotime::from_hz(100)) // Beeper - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beeper" , BEEP , KEY_SCAN_OSCILLATOR / 512) MCFG_SOUND_ROUTE(ALL_OUTPUTS , "mono" , 0.50) diff --git a/src/mame/drivers/hp9k_3xx.cpp b/src/mame/drivers/hp9k_3xx.cpp index d1a14a67a5d..2f81e3e2d00 100644 --- a/src/mame/drivers/hp9k_3xx.cpp +++ b/src/mame/drivers/hp9k_3xx.cpp @@ -454,7 +454,7 @@ MACHINE_CONFIG_START(hp9k3xx_state::hp9k310) MCFG_DEVICE_ADD(PTM6840_TAG, PTM6840, 250000) // from oscillator module next to the 6840 MCFG_PTM6840_EXTERNAL_CLOCKS(250000.0f, 250000.0f, 250000.0f) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD(SN76494_TAG, SN76494, SN76494_CLOCK) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75) @@ -509,7 +509,7 @@ MACHINE_CONFIG_START(hp9k3xx_state::hp9k320) MCFG_DEVICE_ADD(PTM6840_TAG, PTM6840, 250000) // from oscillator module next to the 6840 MCFG_PTM6840_EXTERNAL_CLOCKS(250000.0f, 250000.0f, 250000.0f) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD(SN76494_TAG, SN76494, SN76494_CLOCK) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75) @@ -571,7 +571,7 @@ MACHINE_CONFIG_START(hp9k3xx_state::hp9k332) MCFG_DEVICE_ADD(PTM6840_TAG, PTM6840, 250000) // from oscillator module next to the 6840 MCFG_PTM6840_EXTERNAL_CLOCKS(250000.0f, 250000.0f, 250000.0f) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD(SN76494_TAG, SN76494, SN76494_CLOCK) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75) diff --git a/src/mame/drivers/hprot1.cpp b/src/mame/drivers/hprot1.cpp index 8983a712250..b7aff98f1ca 100644 --- a/src/mame/drivers/hprot1.cpp +++ b/src/mame/drivers/hprot1.cpp @@ -280,7 +280,7 @@ MACHINE_CONFIG_START(hprot1_state::hprotr8a) MCFG_DEVICE_IO_MAP(i80c31_io) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) @@ -297,7 +297,7 @@ MACHINE_CONFIG_START(hprot1_state::hprot2r6) MCFG_DEVICE_IO_MAP(i80c31_io) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/hunter2.cpp b/src/mame/drivers/hunter2.cpp index cddeabc14b8..487609e84bf 100644 --- a/src/mame/drivers/hunter2.cpp +++ b/src/mame/drivers/hunter2.cpp @@ -393,7 +393,7 @@ MACHINE_CONFIG_START(hunter2_state::hunter2) MCFG_VIDEO_SET_SCREEN("screen") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/hvyunit.cpp b/src/mame/drivers/hvyunit.cpp index 512a6fc56ac..41f0d3dceea 100644 --- a/src/mame/drivers/hvyunit.cpp +++ b/src/mame/drivers/hvyunit.cpp @@ -666,7 +666,7 @@ MACHINE_CONFIG_START(hvyunit_state::hvyunit) MCFG_KANEKO_PANDORA_GFXDECODE("gfxdecode") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("soundcpu", INPUT_LINE_NMI)) diff --git a/src/mame/drivers/hx20.cpp b/src/mame/drivers/hx20.cpp index d3591f6c70f..54afec6c55d 100644 --- a/src/mame/drivers/hx20.cpp +++ b/src/mame/drivers/hx20.cpp @@ -925,7 +925,7 @@ MACHINE_CONFIG_START(hx20_state::hx20) MCFG_UPD7227_ADD(UPD7227_5_TAG, 80, 16) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD(SPEAKER_TAG, SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mame/drivers/hyhoo.cpp b/src/mame/drivers/hyhoo.cpp index dc784899893..94be274995c 100644 --- a/src/mame/drivers/hyhoo.cpp +++ b/src/mame/drivers/hyhoo.cpp @@ -249,7 +249,7 @@ MACHINE_CONFIG_START(hyhoo_state::hyhoo) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, 1250000) MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSWA")) diff --git a/src/mame/drivers/hyperspt.cpp b/src/mame/drivers/hyperspt.cpp index 9ef8b96b59d..3cf2658255e 100644 --- a/src/mame/drivers/hyperspt.cpp +++ b/src/mame/drivers/hyperspt.cpp @@ -333,7 +333,7 @@ MACHINE_CONFIG_START(hyperspt_state::hyperspt) MCFG_PALETTE_INIT_OWNER(hyperspt_state, hyperspt) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/hyprduel.cpp b/src/mame/drivers/hyprduel.cpp index f9f0b4d1d22..577044d72b0 100644 --- a/src/mame/drivers/hyprduel.cpp +++ b/src/mame/drivers/hyprduel.cpp @@ -506,7 +506,7 @@ MACHINE_CONFIG_START(hyprduel_state::hyprduel) i4220_config(config); /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2151, 4000000) MCFG_YM2151_IRQ_HANDLER(INPUTLINE("sub", 1)) @@ -534,7 +534,7 @@ MACHINE_CONFIG_START(hyprduel_state::magerror) i4220_config(config); /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2413, 3579545) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) diff --git a/src/mame/drivers/i7000.cpp b/src/mame/drivers/i7000.cpp index ec99129872d..43dda1c606c 100644 --- a/src/mame/drivers/i7000.cpp +++ b/src/mame/drivers/i7000.cpp @@ -363,7 +363,7 @@ MACHINE_CONFIG_START(i7000_state::i7000) MCFG_MC6845_ADDR_CHANGED_CB(i7000_state, crtc_addr) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/ibmpcjr.cpp b/src/mame/drivers/ibmpcjr.cpp index f136f4b8a3d..01ebecf7e91 100644 --- a/src/mame/drivers/ibmpcjr.cpp +++ b/src/mame/drivers/ibmpcjr.cpp @@ -634,7 +634,7 @@ MACHINE_CONFIG_START(pcjr_state::ibmpcjr) MCFG_GFXDECODE_ADD("gfxdecode", "pcvideo_pcjr:palette", pcjr) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80) MCFG_DEVICE_ADD("sn76496", SN76496, XTAL(14'318'181)/4) diff --git a/src/mame/drivers/ice_bozopail.cpp b/src/mame/drivers/ice_bozopail.cpp index 3ad4202427c..23d163461b4 100644 --- a/src/mame/drivers/ice_bozopail.cpp +++ b/src/mame/drivers/ice_bozopail.cpp @@ -63,7 +63,7 @@ MACHINE_CONFIG_START(ice_bozopail_state::ice_bozo) MCFG_DEVICE_PROGRAM_MAP(ice_bozo_map) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MACHINE_CONFIG_END diff --git a/src/mame/drivers/icecold.cpp b/src/mame/drivers/icecold.cpp index e76517b57bd..d65e897b0ba 100644 --- a/src/mame/drivers/icecold.cpp +++ b/src/mame/drivers/icecold.cpp @@ -398,7 +398,7 @@ MACHINE_CONFIG_START(icecold_state::icecold) MCFG_DEFAULT_LAYOUT(layout_icecold) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay0", AY8910, XTAL(6'000'000)/4) MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW4")) MCFG_AY8910_PORT_B_WRITE_CB(WRITE8(*this, icecold_state, ay8910_0_b_w)) diff --git a/src/mame/drivers/ichiban.cpp b/src/mame/drivers/ichiban.cpp index 8382e19094c..c63d439d7c7 100644 --- a/src/mame/drivers/ichiban.cpp +++ b/src/mame/drivers/ichiban.cpp @@ -141,7 +141,7 @@ MACHINE_CONFIG_START(ichibanjyan_state::ichibanjyan) MCFG_PALETTE_ADD_RRRRGGGGBBBB_PROMS("palette", "proms", 512) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", YM2149, MAIN_CLOCK/12) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30) diff --git a/src/mame/drivers/idsa.cpp b/src/mame/drivers/idsa.cpp index e888a06e5df..d080003628d 100644 --- a/src/mame/drivers/idsa.cpp +++ b/src/mame/drivers/idsa.cpp @@ -344,7 +344,8 @@ MACHINE_CONFIG_START(idsa_state::idsa) /* sound hardware */ genpin_audio(config); - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("speech", SP0256, 3120000) // unknown variant MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 1.5) diff --git a/src/mame/drivers/igs009.cpp b/src/mame/drivers/igs009.cpp index 897bb034f77..5945b599064 100644 --- a/src/mame/drivers/igs009.cpp +++ b/src/mame/drivers/igs009.cpp @@ -849,7 +849,7 @@ MACHINE_CONFIG_START(igs009_state::jingbell) MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2413, XTAL(3'579'545)) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/igs011.cpp b/src/mame/drivers/igs011.cpp index ac10d288efe..40be084011e 100644 --- a/src/mame/drivers/igs011.cpp +++ b/src/mame/drivers/igs011.cpp @@ -4190,7 +4190,7 @@ MACHINE_CONFIG_START(igs011_state::igs011_base) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, XTAL(22'000'000)/21, okim6295_device::PIN7_HIGH) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) MACHINE_CONFIG_END diff --git a/src/mame/drivers/igs017.cpp b/src/mame/drivers/igs017.cpp index 6bbe5155b85..c67fe7bda4e 100644 --- a/src/mame/drivers/igs017.cpp +++ b/src/mame/drivers/igs017.cpp @@ -3617,7 +3617,7 @@ MACHINE_CONFIG_START(igs017_state::iqblocka) MCFG_GFX_PALETTE("palette") // sound - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2413, XTAL(3'579'545)) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.5) @@ -3701,7 +3701,7 @@ MACHINE_CONFIG_START(igs017_state::mgcs) MCFG_GFX_PALETTE("palette") // sound - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, XTAL(8'000'000) / 8, okim6295_device::PIN7_HIGH) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.5) MACHINE_CONFIG_END @@ -3745,7 +3745,7 @@ MACHINE_CONFIG_START(igs017_state::lhzb2) MCFG_GFX_PALETTE("palette") // sound - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, XTAL(8'000'000) / 8, okim6295_device::PIN7_HIGH) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.5) MACHINE_CONFIG_END @@ -3797,7 +3797,7 @@ MACHINE_CONFIG_START(igs017_state::lhzb2a) MCFG_GFX_PALETTE("palette") // sound - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, XTAL(22'000'000) / 22, okim6295_device::PIN7_HIGH) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.5) MACHINE_CONFIG_END @@ -3841,7 +3841,7 @@ MACHINE_CONFIG_START(igs017_state::slqz2) MCFG_GFX_PALETTE("palette") // sound - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, XTAL(8'000'000) / 8, okim6295_device::PIN7_HIGH) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.5) MACHINE_CONFIG_END @@ -3877,7 +3877,7 @@ MACHINE_CONFIG_START(igs017_state::sdmg2) MCFG_GFX_PALETTE("palette") // sound - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, XTAL(22'000'000) / 22, okim6295_device::PIN7_HIGH) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.5) MACHINE_CONFIG_END @@ -3923,7 +3923,7 @@ MACHINE_CONFIG_START(igs017_state::mgdha) MCFG_GFX_PALETTE("palette") // sound - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, XTAL(22'000'000) / 22, okim6295_device::PIN7_HIGH) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.5) MACHINE_CONFIG_END @@ -3962,7 +3962,7 @@ MACHINE_CONFIG_START(igs017_state::tjsb) MCFG_GFX_PALETTE("palette") // sound - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2413, XTAL(3'579'545)) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.5) @@ -4003,7 +4003,7 @@ MACHINE_CONFIG_START(igs017_state::spkrform) MCFG_GFX_PALETTE("palette") // sound - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2413, XTAL(3'579'545)) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.5) diff --git a/src/mame/drivers/igs_fear.cpp b/src/mame/drivers/igs_fear.cpp index 49fbb8d263b..b79bcc398d5 100644 --- a/src/mame/drivers/igs_fear.cpp +++ b/src/mame/drivers/igs_fear.cpp @@ -97,7 +97,7 @@ MACHINE_CONFIG_START(igs_fear_state::igs_fear) MCFG_GFXDECODE_ADD("gfxdecode", "palette", igs_fear) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_ICS2115_ADD("ics", 0) MCFG_ICS2115_IRQ_CB(WRITELINE(*this, igs_fear_state, sound_irq)) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 5.0) diff --git a/src/mame/drivers/igspoker.cpp b/src/mame/drivers/igspoker.cpp index 40a27f417c5..b7f95844f89 100644 --- a/src/mame/drivers/igspoker.cpp +++ b/src/mame/drivers/igspoker.cpp @@ -1934,7 +1934,7 @@ MACHINE_CONFIG_START(igspoker_state::igspoker) MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2413, 3579545) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/ikki.cpp b/src/mame/drivers/ikki.cpp index e1fb9d8cf01..f7030325ccb 100644 --- a/src/mame/drivers/ikki.cpp +++ b/src/mame/drivers/ikki.cpp @@ -270,7 +270,7 @@ MACHINE_CONFIG_START(ikki_state::ikki) MCFG_PALETTE_INIT_OWNER(ikki_state, ikki) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("sn1", SN76496, 8000000/4) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75) diff --git a/src/mame/drivers/imds2.cpp b/src/mame/drivers/imds2.cpp index e93542570ee..92b8fa65dfb 100644 --- a/src/mame/drivers/imds2.cpp +++ b/src/mame/drivers/imds2.cpp @@ -844,7 +844,7 @@ MACHINE_CONFIG_START(imds2_state::imds2) MCFG_GFXDECODE_ADD("gfxdecode" , "palette" , imds2) MCFG_PALETTE_ADD_MONOCHROME("palette") - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("iocbeep" , BEEP , IOC_BEEP_FREQ) MCFG_SOUND_ROUTE(ALL_OUTPUTS , "mono" , 1.00) diff --git a/src/mame/drivers/imolagp.cpp b/src/mame/drivers/imolagp.cpp index 1eacf20a214..9d4646b785c 100644 --- a/src/mame/drivers/imolagp.cpp +++ b/src/mame/drivers/imolagp.cpp @@ -541,7 +541,7 @@ MACHINE_CONFIG_START(imolagp_state::imolagp) MCFG_PALETTE_INIT_OWNER(imolagp_state, imolagp) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, 2000000) // ? MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.5) MACHINE_CONFIG_END diff --git a/src/mame/drivers/inder.cpp b/src/mame/drivers/inder.cpp index 1587fe9c6ca..123b54ceb35 100644 --- a/src/mame/drivers/inder.cpp +++ b/src/mame/drivers/inder.cpp @@ -1367,7 +1367,7 @@ MACHINE_CONFIG_START(inder_state::brvteam) /* Sound */ genpin_audio(config); - MCFG_SPEAKER_STANDARD_MONO("snvol") + SPEAKER(config, "snvol").front_center(); MCFG_DEVICE_ADD("sn", SN76489, XTAL(8'000'000) / 2) // jumper choice of 2 or 4 MHz MCFG_SOUND_ROUTE(ALL_OUTPUTS, "snvol", 2.0) MACHINE_CONFIG_END @@ -1385,7 +1385,7 @@ MACHINE_CONFIG_START(inder_state::canasta) /* Sound */ genpin_audio(config); - MCFG_SPEAKER_STANDARD_MONO("ayvol") + SPEAKER(config, "ayvol").front_center(); MCFG_DEVICE_ADD("ay", AY8910, XTAL(4'000'000) / 2) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "ayvol", 1.0) MACHINE_CONFIG_END @@ -1406,7 +1406,7 @@ MACHINE_CONFIG_START(inder_state::lapbylap) /* Sound */ genpin_audio(config); - MCFG_SPEAKER_STANDARD_MONO("ayvol") + SPEAKER(config, "ayvol").front_center(); MCFG_DEVICE_ADD("ay1", AY8910, XTAL(2'000'000)) // same xtal that drives subcpu MCFG_SOUND_ROUTE(ALL_OUTPUTS, "ayvol", 1.0) MCFG_DEVICE_ADD("ay2", AY8910, XTAL(2'000'000)) // same xtal that drives subcpu @@ -1430,7 +1430,7 @@ MACHINE_CONFIG_START(inder_state::inder) /* Sound */ genpin_audio(config); - MCFG_SPEAKER_STANDARD_MONO("msmvol") + SPEAKER(config, "msmvol").front_center(); MCFG_DEVICE_ADD("msm", MSM5205, XTAL(384'000)) MCFG_MSM5205_VCK_CALLBACK(WRITELINE("9a", ttl7474_device, clock_w)) MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE("9b", ttl7474_device, clock_w)) // order of writes is sensitive diff --git a/src/mame/drivers/indigo.cpp b/src/mame/drivers/indigo.cpp index 8034147d940..2aa8e428291 100644 --- a/src/mame/drivers/indigo.cpp +++ b/src/mame/drivers/indigo.cpp @@ -599,7 +599,7 @@ MACHINE_CONFIG_START(indigo_state::indigo3k) MCFG_PALETTE_ADD("palette", 65536) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("scc", SCC8530, 7000000) diff --git a/src/mame/drivers/indy_indigo2.cpp b/src/mame/drivers/indy_indigo2.cpp index 5317e66ffba..b605522609c 100644 --- a/src/mame/drivers/indy_indigo2.cpp +++ b/src/mame/drivers/indy_indigo2.cpp @@ -226,7 +226,8 @@ MACHINE_CONFIG_START(ip22_state::ip225015) MCFG_DEVICE_ADD("sgi_mc", SGI_MC, 0) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("dac", DAC_16BIT_R2R_TWOS_COMPLEMENT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.25) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 0.25) // unknown DAC MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) diff --git a/src/mame/drivers/instantm.cpp b/src/mame/drivers/instantm.cpp index 46fcdaef4bf..c2b83b14769 100644 --- a/src/mame/drivers/instantm.cpp +++ b/src/mame/drivers/instantm.cpp @@ -137,7 +137,7 @@ MACHINE_CONFIG_START(instantm_state::instantm) MCFG_DEVICE_ADD("voice_clock", CLOCK, 24000) MCFG_CLOCK_SIGNAL_HANDLER(WRITELINE(*this, instantm_state, clock_w)) - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", MC1408, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT) diff --git a/src/mame/drivers/instruct.cpp b/src/mame/drivers/instruct.cpp index 044f5d67b5e..7ee4496297a 100644 --- a/src/mame/drivers/instruct.cpp +++ b/src/mame/drivers/instruct.cpp @@ -436,7 +436,7 @@ MACHINE_CONFIG_START(instruct_state::instruct) /* cassette */ MCFG_CASSETTE_ADD( "cassette" ) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END diff --git a/src/mame/drivers/inteladv.cpp b/src/mame/drivers/inteladv.cpp index de0dd2d6f86..ff901dff3ce 100644 --- a/src/mame/drivers/inteladv.cpp +++ b/src/mame/drivers/inteladv.cpp @@ -98,7 +98,8 @@ MACHINE_CONFIG_START(inteladv_state::inteladv) MCFG_PALETTE_FORMAT(XBGR) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MACHINE_CONFIG_END ROM_START( inteladv ) diff --git a/src/mame/drivers/intv.cpp b/src/mame/drivers/intv.cpp index f519f5d70f8..a1cc022fe1f 100644 --- a/src/mame/drivers/intv.cpp +++ b/src/mame/drivers/intv.cpp @@ -488,7 +488,7 @@ MACHINE_CONFIG_START(intv_state::intv) MCFG_INTV_CONTROL_PORT_ADD("iopt_left_ctrl", intv_control_port_devices, "handctrl") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay8914", AY8914, XTAL(3'579'545)/2) MCFG_AY8910_PORT_A_READ_CB(READ8("iopt_right_ctrl", intv_control_port_device, ctrl_r)) MCFG_AY8910_PORT_B_READ_CB(READ8("iopt_left_ctrl", intv_control_port_device, ctrl_r)) diff --git a/src/mame/drivers/inufuku.cpp b/src/mame/drivers/inufuku.cpp index 2164066c408..b191efb22ea 100644 --- a/src/mame/drivers/inufuku.cpp +++ b/src/mame/drivers/inufuku.cpp @@ -370,7 +370,7 @@ MACHINE_CONFIG_START(inufuku_state::inufuku) MCFG_PALETTE_FORMAT(xGGGGGBBBBBRRRRR) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) diff --git a/src/mame/drivers/invqix.cpp b/src/mame/drivers/invqix.cpp index acd3ad77f6b..edeb4b1289b 100644 --- a/src/mame/drivers/invqix.cpp +++ b/src/mame/drivers/invqix.cpp @@ -348,7 +348,8 @@ MACHINE_CONFIG_START(invqix_state::invqix) MCFG_PALETTE_ADD("palette", 65536) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("oki", OKIM9810, XTAL(4'096'000)) MCFG_SOUND_ROUTE(0, "lspeaker", 0.80) diff --git a/src/mame/drivers/iq151.cpp b/src/mame/drivers/iq151.cpp index 84261b41dfc..fe8ea39f9ee 100644 --- a/src/mame/drivers/iq151.cpp +++ b/src/mame/drivers/iq151.cpp @@ -407,7 +407,7 @@ MACHINE_CONFIG_START(iq151_state::iq151) MCFG_PALETTE_ADD_MONOCHROME("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/iqblock.cpp b/src/mame/drivers/iqblock.cpp index 4e533819640..944fbb8d193 100644 --- a/src/mame/drivers/iqblock.cpp +++ b/src/mame/drivers/iqblock.cpp @@ -367,7 +367,7 @@ MACHINE_CONFIG_START(iqblock_state::iqblock) MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2413, 3579545) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/irisha.cpp b/src/mame/drivers/irisha.cpp index 252263d0a37..8a88f3cde43 100644 --- a/src/mame/drivers/irisha.cpp +++ b/src/mame/drivers/irisha.cpp @@ -381,7 +381,7 @@ MACHINE_CONFIG_START(irisha_state::irisha) MCFG_PALETTE_ADD_MONOCHROME("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/irobot.cpp b/src/mame/drivers/irobot.cpp index a7b5c49e074..535fece0de2 100644 --- a/src/mame/drivers/irobot.cpp +++ b/src/mame/drivers/irobot.cpp @@ -324,7 +324,7 @@ MACHINE_CONFIG_START(irobot_state::irobot) MCFG_TIMER_DRIVER_ADD("irmb_timer", irobot_state, irobot_irmb_done_callback) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); /* FIXME: I-Robot has all channels of the quad-pokey tied together * This needs to be taken into account in the design. diff --git a/src/mame/drivers/ironhors.cpp b/src/mame/drivers/ironhors.cpp index b74b9951248..cc9a84cfd40 100644 --- a/src/mame/drivers/ironhors.cpp +++ b/src/mame/drivers/ironhors.cpp @@ -406,7 +406,7 @@ MACHINE_CONFIG_START(ironhors_state::ironhors) MCFG_PALETTE_INIT_OWNER(ironhors_state, ironhors) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/istellar.cpp b/src/mame/drivers/istellar.cpp index 3c9f455096a..d2cbf07b482 100644 --- a/src/mame/drivers/istellar.cpp +++ b/src/mame/drivers/istellar.cpp @@ -308,7 +308,8 @@ MACHINE_CONFIG_START(istellar_state::istellar) MCFG_GFXDECODE_ADD("gfxdecode", "palette", istellar) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_MODIFY("laserdisc") MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) diff --git a/src/mame/drivers/istrebiteli.cpp b/src/mame/drivers/istrebiteli.cpp index bf22a992a78..6969faaf285 100644 --- a/src/mame/drivers/istrebiteli.cpp +++ b/src/mame/drivers/istrebiteli.cpp @@ -445,7 +445,7 @@ MACHINE_CONFIG_START(istrebiteli_state::istreb) MCFG_PALETTE_INIT_OWNER(istrebiteli_state, istrebiteli) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("custom", ISTREBITELI_SOUND, XTAL(8'000'000) / 2 / 256) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) MACHINE_CONFIG_END diff --git a/src/mame/drivers/itech32.cpp b/src/mame/drivers/itech32.cpp index 023c031f7b2..b4b3d8c0ad7 100644 --- a/src/mame/drivers/itech32.cpp +++ b/src/mame/drivers/itech32.cpp @@ -1710,7 +1710,8 @@ MACHINE_CONFIG_START(itech32_state::timekill) MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, itech32_state, generate_int1)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ensoniq", ES5506, SOUND_CLOCK) MCFG_ES5506_REGION0("ensoniq.0") @@ -1774,7 +1775,8 @@ MACHINE_CONFIG_START(itech32_state::drivedge) MCFG_SCREEN_MODIFY("screen") MCFG_SCREEN_VBLANK_CALLBACK(NOOP) // interrupt not used? - MCFG_SPEAKER_STANDARD_STEREO("left_back", "right_back") + SPEAKER(config, "left_back").front_left(); + SPEAKER(config, "right_back").front_right(); MCFG_DEVICE_MODIFY("ensoniq") MCFG_ES5506_CHANNELS(2) /* channels */ diff --git a/src/mame/drivers/itech8.cpp b/src/mame/drivers/itech8.cpp index a33a8e12371..9c5b8ef571e 100644 --- a/src/mame/drivers/itech8.cpp +++ b/src/mame/drivers/itech8.cpp @@ -1710,7 +1710,7 @@ MACHINE_CONFIG_START(itech8_state::itech8_core_lo) MCFG_TMS34061_INTERRUPT_CB(WRITELINE(*this, itech8_state, generate_tms34061_interrupt)) /* interrupt gen callback */ /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); /* via */ MCFG_DEVICE_ADD("via6522_0", VIA6522, CLOCK_8MHz/4) diff --git a/src/mame/drivers/itgambl2.cpp b/src/mame/drivers/itgambl2.cpp index dbffe859b31..8c1a8d2158c 100644 --- a/src/mame/drivers/itgambl2.cpp +++ b/src/mame/drivers/itgambl2.cpp @@ -293,7 +293,7 @@ MACHINE_CONFIG_START(itgambl2_state::itgambl2) MCFG_PALETTE_INIT_OWNER(itgambl2_state, itgambl2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("upd", UPD7759) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) MACHINE_CONFIG_END diff --git a/src/mame/drivers/itgambl3.cpp b/src/mame/drivers/itgambl3.cpp index 9dddbd2f82f..5aa256068f3 100644 --- a/src/mame/drivers/itgambl3.cpp +++ b/src/mame/drivers/itgambl3.cpp @@ -281,7 +281,7 @@ MACHINE_CONFIG_START(itgambl3_state::itgambl3) MCFG_PALETTE_INIT_OWNER(itgambl3_state, itgambl3) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, MAIN_CLOCK/16, okim6295_device::PIN7_HIGH) /* 1MHz */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) MACHINE_CONFIG_END diff --git a/src/mame/drivers/itgamble.cpp b/src/mame/drivers/itgamble.cpp index 85ff3b54d4c..5f0d437835f 100644 --- a/src/mame/drivers/itgamble.cpp +++ b/src/mame/drivers/itgamble.cpp @@ -231,7 +231,7 @@ MACHINE_CONFIG_START(itgamble_state::itgamble) MCFG_PALETTE_ADD("palette", 0x200) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, SND_CLOCK, okim6295_device::PIN7_HIGH) /* 1MHz resonator */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) MACHINE_CONFIG_END diff --git a/src/mame/drivers/itt3030.cpp b/src/mame/drivers/itt3030.cpp index eeeba00342f..87238da0c0b 100644 --- a/src/mame/drivers/itt3030.cpp +++ b/src/mame/drivers/itt3030.cpp @@ -749,7 +749,7 @@ MACHINE_CONFIG_START(itt3030_state::itt3030) MCFG_RAM_DEFAULT_SIZE("256K") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO( "mono" ) + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD( "beeper", BEEP, 3250 ) MCFG_SOUND_ROUTE( ALL_OUTPUTS, "mono", 1.00 ) MACHINE_CONFIG_END diff --git a/src/mame/drivers/jack.cpp b/src/mame/drivers/jack.cpp index 16c302060aa..6dfb013e69d 100644 --- a/src/mame/drivers/jack.cpp +++ b/src/mame/drivers/jack.cpp @@ -937,7 +937,7 @@ MACHINE_CONFIG_START(jack_state::jack) MCFG_PALETTE_FORMAT(BBGGGRRR_inverted) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(ASSERTLINE("audiocpu", 0)) diff --git a/src/mame/drivers/jackal.cpp b/src/mame/drivers/jackal.cpp index f56af0a5a4a..61faabb052d 100644 --- a/src/mame/drivers/jackal.cpp +++ b/src/mame/drivers/jackal.cpp @@ -388,7 +388,8 @@ MACHINE_CONFIG_START(jackal_state::jackal) MCFG_PALETTE_INIT_OWNER(jackal_state, jackal) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2151, SOUND_CLOCK) // verified on pcb MCFG_SOUND_ROUTE(0, "lspeaker", 0.50) diff --git a/src/mame/drivers/jackie.cpp b/src/mame/drivers/jackie.cpp index f6caae0b90a..ab416c59ca1 100644 --- a/src/mame/drivers/jackie.cpp +++ b/src/mame/drivers/jackie.cpp @@ -632,7 +632,7 @@ MACHINE_CONFIG_START(jackie_state::jackie) MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2413, 3579545) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/jackpool.cpp b/src/mame/drivers/jackpool.cpp index f09dff45ae7..3fecb72347c 100644 --- a/src/mame/drivers/jackpool.cpp +++ b/src/mame/drivers/jackpool.cpp @@ -269,7 +269,7 @@ MACHINE_CONFIG_START(jackpool_state::jackpool) MCFG_PALETTE_ADD("palette", 0x200) MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, 1056000, okim6295_device::PIN7_HIGH) // clock frequency & pin 7 not verified MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/jaguar.cpp b/src/mame/drivers/jaguar.cpp index ee3745c4a20..65186d0483e 100644 --- a/src/mame/drivers/jaguar.cpp +++ b/src/mame/drivers/jaguar.cpp @@ -1864,7 +1864,8 @@ MACHINE_CONFIG_START(jaguar_state::cojagr3k) MCFG_SCREEN_UPDATE_DRIVER(jaguar_state,screen_update) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ldac", DAC_16BIT_R2R_TWOS_COMPLEMENT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 1.0) // unknown DAC MCFG_DEVICE_ADD("rdac", DAC_16BIT_R2R_TWOS_COMPLEMENT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 1.0) // unknown DAC MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) @@ -1921,7 +1922,8 @@ MACHINE_CONFIG_START(jaguar_state::jaguar) MCFG_SCREEN_UPDATE_DRIVER(jaguar_state,screen_update) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ldac", DAC_16BIT_R2R_TWOS_COMPLEMENT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 1.0) // unknown DAC MCFG_DEVICE_ADD("rdac", DAC_16BIT_R2R_TWOS_COMPLEMENT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 1.0) // unknown DAC MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) diff --git a/src/mame/drivers/jailbrek.cpp b/src/mame/drivers/jailbrek.cpp index 120ebac7aa1..60d48bc8d2d 100644 --- a/src/mame/drivers/jailbrek.cpp +++ b/src/mame/drivers/jailbrek.cpp @@ -283,7 +283,7 @@ MACHINE_CONFIG_START(jailbrek_state::jailbrek) MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, jailbrek_state, vblank_irq)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("snsnd", SN76489A, MASTER_CLOCK/12) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/jalmah.cpp b/src/mame/drivers/jalmah.cpp index edc341a5bea..03acdb268dd 100644 --- a/src/mame/drivers/jalmah.cpp +++ b/src/mame/drivers/jalmah.cpp @@ -1446,7 +1446,7 @@ MACHINE_CONFIG_START(jalmah_state::jalmah) MCFG_TIMER_DRIVER_ADD_PERIODIC("mcusim", jalmah_state, jalmah_mcu_sim, attotime::from_hz(10000)) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, 4000000, okim6295_device::PIN7_LOW) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.5) MACHINE_CONFIG_END diff --git a/src/mame/drivers/jangou.cpp b/src/mame/drivers/jangou.cpp index 25d2751b802..6f62dbcd4a8 100644 --- a/src/mame/drivers/jangou.cpp +++ b/src/mame/drivers/jangou.cpp @@ -890,7 +890,7 @@ MACHINE_CONFIG_START(jangou_state::jangou) MCFG_PALETTE_INIT_OWNER(jangou_state, jangou) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/jankenmn.cpp b/src/mame/drivers/jankenmn.cpp index ff69614e452..e2874d78f87 100644 --- a/src/mame/drivers/jankenmn.cpp +++ b/src/mame/drivers/jankenmn.cpp @@ -409,7 +409,7 @@ MACHINE_CONFIG_START(jankenmn_state::jankenmn) /* NO VIDEO */ /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", AD7523, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) diff --git a/src/mame/drivers/jantotsu.cpp b/src/mame/drivers/jantotsu.cpp index dd9bbd5fbd7..bc219bc57a1 100644 --- a/src/mame/drivers/jantotsu.cpp +++ b/src/mame/drivers/jantotsu.cpp @@ -519,7 +519,7 @@ MACHINE_CONFIG_START(jantotsu_state::jantotsu) MCFG_PALETTE_INIT_OWNER(jantotsu_state, jantotsu) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("sn1", SN76489A, MAIN_CLOCK/4) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/jchan.cpp b/src/mame/drivers/jchan.cpp index 22010964b2c..67395cacb6d 100644 --- a/src/mame/drivers/jchan.cpp +++ b/src/mame/drivers/jchan.cpp @@ -637,7 +637,8 @@ MACHINE_CONFIG_START(jchan_state::jchan) MCFG_EEPROM_SERIAL_93C46_ADD("eeprom") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymz", YMZ280B, 16000000) MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) diff --git a/src/mame/drivers/jclub2.cpp b/src/mame/drivers/jclub2.cpp index 5de321c2819..e66f34d1686 100644 --- a/src/mame/drivers/jclub2.cpp +++ b/src/mame/drivers/jclub2.cpp @@ -1235,7 +1235,7 @@ MACHINE_CONFIG_START(darkhors_state::darkhors) MCFG_DEFAULT_LAYOUT(layout_jclub2) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, 528000, okim6295_device::PIN7_HIGH) // clock frequency & pin 7 not verified MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/jeutel.cpp b/src/mame/drivers/jeutel.cpp index b35dae967ce..e57fba9a7af 100644 --- a/src/mame/drivers/jeutel.cpp +++ b/src/mame/drivers/jeutel.cpp @@ -213,7 +213,7 @@ MACHINE_CONFIG_START(jeutel_state::jeutel) genpin_audio(config); /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, 639450) MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(*this, jeutel_state,porta_w)) diff --git a/src/mame/drivers/joctronic.cpp b/src/mame/drivers/joctronic.cpp index 745bcb36c06..45c0d005875 100644 --- a/src/mame/drivers/joctronic.cpp +++ b/src/mame/drivers/joctronic.cpp @@ -359,7 +359,7 @@ MACHINE_CONFIG_START(joctronic_state::joctronic) MCFG_DEVICE_ADD("drivers4", LS259, 0) // IC1 /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); // Datasheet suggests YM2203 as a possible replacement for this AY8910 MCFG_DEVICE_ADD("aysnd1", AY8910, XTAL(12'000'000)/8) // 1.5 MHz @@ -407,7 +407,7 @@ MACHINE_CONFIG_START(joctronic_state::slalom03) MCFG_DEVICE_ADD("drivers6", HC259, 0) // IC6 /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd1", AY8910, XTAL(12'000'000)/8) // 1.5 MHz MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(*this, joctronic_state, slalom03_oki_bank_w)) diff --git a/src/mame/drivers/jollyjgr.cpp b/src/mame/drivers/jollyjgr.cpp index 9d2fc5cc42e..fe795ca652e 100644 --- a/src/mame/drivers/jollyjgr.cpp +++ b/src/mame/drivers/jollyjgr.cpp @@ -699,7 +699,7 @@ MACHINE_CONFIG_START(jollyjgr_state::jollyjgr) MCFG_PALETTE_ADD_3BIT_RGB("bm_palette") // bitmap /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, XTAL(3'579'545)/2) /* 1.7897725MHz verified */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.45) diff --git a/src/mame/drivers/jongkyo.cpp b/src/mame/drivers/jongkyo.cpp index e0aa004de65..6885b8efca3 100644 --- a/src/mame/drivers/jongkyo.cpp +++ b/src/mame/drivers/jongkyo.cpp @@ -523,7 +523,7 @@ MACHINE_CONFIG_START(jongkyo_state::jongkyo) MCFG_PALETTE_ADD("palette", 0x100) MCFG_PALETTE_INIT_OWNER(jongkyo_state, jongkyo) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, JONGKYO_CLOCK/8) MCFG_AY8910_PORT_A_READ_CB(READ8(*this, jongkyo_state, input_1p_r)) MCFG_AY8910_PORT_B_READ_CB(READ8(*this, jongkyo_state, input_2p_r)) diff --git a/src/mame/drivers/joystand.cpp b/src/mame/drivers/joystand.cpp index fb7f4e3e2eb..8056f67f405 100644 --- a/src/mame/drivers/joystand.cpp +++ b/src/mame/drivers/joystand.cpp @@ -609,7 +609,7 @@ MACHINE_CONFIG_START(joystand_state::joystand) MCFG_PALETTE_ADD_RRRRRGGGGGBBBBB("bg15_palette") // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ym2413", YM2413, XTAL(3'579'545)) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80) diff --git a/src/mame/drivers/jp.cpp b/src/mame/drivers/jp.cpp index e4fdbb6acc4..2f2ffcb3109 100644 --- a/src/mame/drivers/jp.cpp +++ b/src/mame/drivers/jp.cpp @@ -374,7 +374,7 @@ MACHINE_CONFIG_START(jp_state::jp) /* Sound */ genpin_audio(config); - MCFG_SPEAKER_STANDARD_MONO("ayvol") + SPEAKER(config, "ayvol").front_center(); MCFG_DEVICE_ADD("ay", AY8910, 8_MHz_XTAL / 4) MCFG_AY8910_PORT_A_READ_CB(READ8(*this, jp_state, porta_r)) MCFG_AY8910_PORT_B_READ_CB(READ8(*this, jp_state, portb_r)) @@ -417,7 +417,7 @@ MACHINE_CONFIG_START(jp_state::jps) MCFG_DEVICE_ADD("adpcm_select", LS157, 0) // not labeled in manual; might even be a CD4019 MCFG_74157_OUT_CB(WRITE8("msm", msm5205_device, data_w)) - MCFG_SPEAKER_STANDARD_MONO("msmvol") + SPEAKER(config, "msmvol").front_center(); MCFG_DEVICE_ADD("msm", MSM5205, 384'000) // not labeled in manual; clock unknown MCFG_MSM5205_VCK_CALLBACK(WRITELINE(*this, jp_state, vck_w)) MCFG_MSM5205_PRESCALER_SELECTOR(S48_4B) // unknown diff --git a/src/mame/drivers/jpmimpct.cpp b/src/mame/drivers/jpmimpct.cpp index 81b6f09a091..8bc39f79658 100644 --- a/src/mame/drivers/jpmimpct.cpp +++ b/src/mame/drivers/jpmimpct.cpp @@ -866,7 +866,7 @@ MACHINE_CONFIG_START(jpmimpct_state::jpmimpct) MCFG_SCREEN_UPDATE_DEVICE("dsp", tms34010_device, tms340x0_rgb32) MCFG_PALETTE_ADD("palette", 256) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("upd", UPD7759) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) @@ -1331,7 +1331,7 @@ MACHINE_CONFIG_START(jpmimpct_state::impctawp) MCFG_TIMER_DRIVER_ADD("duart_1_timer", jpmimpct_state, duart_1_timer_event) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("upd",UPD7759) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) MCFG_DEFAULT_LAYOUT(layout_jpmimpct) diff --git a/src/mame/drivers/jpmmps.cpp b/src/mame/drivers/jpmmps.cpp index c14253b53f5..1db53169c1b 100644 --- a/src/mame/drivers/jpmmps.cpp +++ b/src/mame/drivers/jpmmps.cpp @@ -276,7 +276,7 @@ MACHINE_CONFIG_START(jpmmps_state::jpmmps) MCFG_DEVICE_ADD("tms9902_ic10", TMS9902, DUART_CLOCK) // Communication with Reel MCU MCFG_DEVICE_ADD("tms9902_ic5", TMS9902, DUART_CLOCK) // Communication with Security / Printer - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("sn", SN76489, SOUND_CLOCK) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) diff --git a/src/mame/drivers/jpms80.cpp b/src/mame/drivers/jpms80.cpp index 4c8b3fec9e0..d382169b480 100644 --- a/src/mame/drivers/jpms80.cpp +++ b/src/mame/drivers/jpms80.cpp @@ -134,7 +134,7 @@ void jpms80_state::machine_reset() MACHINE_CONFIG_START(jpms80_state::jpms80) // CPU TMS9995, standard variant; no line connections MCFG_TMS99xx_ADD("maincpu", TMS9995, MAIN_CLOCK, jpms80_map, jpms80_io_map) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("outlatch0", LS259, 0) // I/O IC5 MCFG_DEVICE_ADD("outlatch1", LS259, 0) // I/O IC6 diff --git a/src/mame/drivers/jpmsys5.cpp b/src/mame/drivers/jpmsys5.cpp index 10d769364db..ceeb458499f 100644 --- a/src/mame/drivers/jpmsys5.cpp +++ b/src/mame/drivers/jpmsys5.cpp @@ -626,7 +626,7 @@ MACHINE_CONFIG_START(jpmsys5v_state::jpmsys5v) MCFG_PALETTE_ADD("palette", 16) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("upd7759", UPD7759) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30) @@ -834,7 +834,7 @@ MACHINE_CONFIG_START(jpmsys5_state::jpmsys5_ym) MCFG_NVRAM_ADD_0FILL("nvram") MCFG_S16LF01_ADD("vfd",0) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("upd7759", UPD7759) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30) @@ -890,7 +890,7 @@ MACHINE_CONFIG_START(jpmsys5_state::jpmsys5) MCFG_NVRAM_ADD_0FILL("nvram") MCFG_S16LF01_ADD("vfd",0) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("upd7759", UPD7759) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30) diff --git a/src/mame/drivers/jpmsys7.cpp b/src/mame/drivers/jpmsys7.cpp index 9e156e45ebc..9be524d6d0f 100644 --- a/src/mame/drivers/jpmsys7.cpp +++ b/src/mame/drivers/jpmsys7.cpp @@ -60,7 +60,8 @@ MACHINE_CONFIG_START(jpmsys7_state::jpmsys7) MCFG_DEVICE_PROGRAM_MAP(jpmsys7_map) MCFG_MCF5206E_PERIPHERAL_ADD("maincpu_onboard") - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); /* unknown sound (probably DMA driven DAC) */ MACHINE_CONFIG_END diff --git a/src/mame/drivers/jr100.cpp b/src/mame/drivers/jr100.cpp index 6a248686882..7cc33da0951 100644 --- a/src/mame/drivers/jr100.cpp +++ b/src/mame/drivers/jr100.cpp @@ -392,7 +392,7 @@ MACHINE_CONFIG_START(jr100_state::jr100) MCFG_VIA6522_WRITEPB_HANDLER(WRITE8(*this, jr100_state,jr100_via_write_b)) MCFG_VIA6522_CB2_HANDLER(WRITELINE(*this, jr100_state, jr100_via_write_cb2)) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) diff --git a/src/mame/drivers/jr200.cpp b/src/mame/drivers/jr200.cpp index 95124a12471..81247bc4347 100644 --- a/src/mame/drivers/jr200.cpp +++ b/src/mame/drivers/jr200.cpp @@ -554,7 +554,7 @@ MACHINE_CONFIG_START(jr200_state::jr200) MCFG_GFXDECODE_ADD("gfxdecode", "palette", jr200) MCFG_PALETTE_ADD_3BIT_BRG("palette") - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); // AY-8910 ? diff --git a/src/mame/drivers/jrpacman.cpp b/src/mame/drivers/jrpacman.cpp index 7d7152199e5..f174a0bc0c3 100644 --- a/src/mame/drivers/jrpacman.cpp +++ b/src/mame/drivers/jrpacman.cpp @@ -314,7 +314,7 @@ MACHINE_CONFIG_START(jrpacman_state::jrpacman) MCFG_VIDEO_START_OVERRIDE(jrpacman_state,jrpacman) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("namco", NAMCO, 3072000/32) MCFG_NAMCO_AUDIO_VOICES(3) diff --git a/src/mame/drivers/jtc.cpp b/src/mame/drivers/jtc.cpp index d5ceb48fa28..6528e54ac6b 100644 --- a/src/mame/drivers/jtc.cpp +++ b/src/mame/drivers/jtc.cpp @@ -734,7 +734,7 @@ MACHINE_CONFIG_START(jtc_state::basic) MCFG_Z8_PORT_P3_WRITE_CB(WRITE8(*this, jtc_state, p3_w)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mame/drivers/juicebox.cpp b/src/mame/drivers/juicebox.cpp index a9dfd39fdde..e173874462a 100644 --- a/src/mame/drivers/juicebox.cpp +++ b/src/mame/drivers/juicebox.cpp @@ -319,7 +319,7 @@ MACHINE_CONFIG_START(juicebox_state::juicebox) MCFG_SCREEN_UPDATE_DEVICE("s3c44b0", s3c44b0_device, video_update) - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_16BIT_R2R_TWOS_COMPLEMENT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 1.0) // unknown DAC MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT) diff --git a/src/mame/drivers/jungleyo.cpp b/src/mame/drivers/jungleyo.cpp index a91be028470..4346b2c40ae 100644 --- a/src/mame/drivers/jungleyo.cpp +++ b/src/mame/drivers/jungleyo.cpp @@ -137,7 +137,8 @@ MACHINE_CONFIG_START(jungleyo_state::jungleyo) MCFG_PALETTE_ADD("palette", 0x200) MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("oki", OKIM6295, XTAL(12'000'000)/16, okim6295_device::PIN7_HIGH) // clock frequency & pin 7 not verified MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.47) diff --git a/src/mame/drivers/junofrst.cpp b/src/mame/drivers/junofrst.cpp index b4cbbf952ff..e3b6852b85a 100644 --- a/src/mame/drivers/junofrst.cpp +++ b/src/mame/drivers/junofrst.cpp @@ -442,7 +442,7 @@ MACHINE_CONFIG_START(junofrst_state::junofrst) MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, junofrst_state, _30hz_irq)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_8_ADD("soundlatch2") diff --git a/src/mame/drivers/jupace.cpp b/src/mame/drivers/jupace.cpp index cca90da4d3e..3e7aebe2e4b 100644 --- a/src/mame/drivers/jupace.cpp +++ b/src/mame/drivers/jupace.cpp @@ -772,7 +772,7 @@ MACHINE_CONFIG_START(ace_state::ace) MCFG_GFXDECODE_ADD("gfxdecode", "palette", ace) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) diff --git a/src/mame/drivers/k28.cpp b/src/mame/drivers/k28.cpp index de0eac6383d..48900f64943 100644 --- a/src/mame/drivers/k28.cpp +++ b/src/mame/drivers/k28.cpp @@ -466,7 +466,7 @@ MACHINE_CONFIG_START(k28_state::k28) MCFG_DEFAULT_LAYOUT(layout_k28) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speech", VOTRAX_SC01, 760000) // measured 760kHz on its RC pin MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.5) MACHINE_CONFIG_END diff --git a/src/mame/drivers/kaneko16.cpp b/src/mame/drivers/kaneko16.cpp index 94329c7d3cb..a45255cda75 100644 --- a/src/mame/drivers/kaneko16.cpp +++ b/src/mame/drivers/kaneko16.cpp @@ -1813,7 +1813,8 @@ MACHINE_CONFIG_START(kaneko16_berlwall_state::berlwall) MCFG_VIDEO_START_OVERRIDE(kaneko16_berlwall_state,berlwall) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ym2149_1", YM2149, 1000000) MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW1")) @@ -1885,7 +1886,7 @@ MACHINE_CONFIG_START(kaneko16_state::bakubrkr) MCFG_VIDEO_START_OVERRIDE(kaneko16_state,kaneko16) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ym2149_1", YM2149, XTAL(12'000'000)/6) /* verified on pcb */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -1955,7 +1956,8 @@ MACHINE_CONFIG_START(kaneko16_state::blazeon) MCFG_VIDEO_START_OVERRIDE(kaneko16_state,kaneko16) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) @@ -2010,7 +2012,7 @@ MACHINE_CONFIG_START(kaneko16_state::wingforc) MCFG_VIDEO_START_OVERRIDE(kaneko16_state,kaneko16) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) @@ -2098,7 +2100,7 @@ MACHINE_CONFIG_START(kaneko16_gtmr_state::gtmr) MCFG_VIDEO_START_OVERRIDE(kaneko16_gtmr_state,kaneko16) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki1", OKIM6295, XTAL(16'000'000)/8, okim6295_device::PIN7_LOW) /* verified on pcb */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.5) @@ -2223,7 +2225,7 @@ MACHINE_CONFIG_START(kaneko16_state::mgcrystl) MCFG_VIDEO_START_OVERRIDE(kaneko16_state,kaneko16) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ym2149_1", YM2149, XTAL(12'000'000)/6) /* verified on pcb */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -2346,7 +2348,7 @@ MACHINE_CONFIG_START(kaneko16_shogwarr_state::shogwarr) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki1", OKIM6295, XTAL(16'000'000)/8, okim6295_device::PIN7_LOW) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/kangaroo.cpp b/src/mame/drivers/kangaroo.cpp index 3bde0eb7cb3..c5ff4b3d6f5 100644 --- a/src/mame/drivers/kangaroo.cpp +++ b/src/mame/drivers/kangaroo.cpp @@ -451,7 +451,7 @@ MACHINE_CONFIG_START(kangaroo_state::nomcu) MCFG_PALETTE_ADD_3BIT_BGR("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/karnov.cpp b/src/mame/drivers/karnov.cpp index b15f2d96720..3781a3d1630 100644 --- a/src/mame/drivers/karnov.cpp +++ b/src/mame/drivers/karnov.cpp @@ -841,7 +841,7 @@ MACHINE_CONFIG_START(karnov_state::karnov) MCFG_VIDEO_START_OVERRIDE(karnov_state,karnov) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) @@ -919,7 +919,7 @@ MACHINE_CONFIG_START(karnov_state::wndrplnt) MCFG_VIDEO_START_OVERRIDE(karnov_state,wndrplnt) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) diff --git a/src/mame/drivers/kas89.cpp b/src/mame/drivers/kas89.cpp index 9cbdfab2f8e..d116a98d134 100644 --- a/src/mame/drivers/kas89.cpp +++ b/src/mame/drivers/kas89.cpp @@ -783,7 +783,7 @@ MACHINE_CONFIG_START(kas89_state::kas89) MCFG_V99X8_SCREEN_ADD_NTSC("screen", "v9938", MASTER_CLOCK) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/kaypro.cpp b/src/mame/drivers/kaypro.cpp index b4ea9fa8637..b5a4b122b95 100644 --- a/src/mame/drivers/kaypro.cpp +++ b/src/mame/drivers/kaypro.cpp @@ -219,7 +219,7 @@ MACHINE_CONFIG_START(kaypro_state::kayproii) MCFG_PALETTE_ADD_MONOCHROME("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, 950) /* piezo-device needs to be measured */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) @@ -310,7 +310,7 @@ MACHINE_CONFIG_START(kaypro_state::kaypro484) MCFG_PALETTE_INIT_OWNER(kaypro_state, kaypro) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, 950) /* piezo-device needs to be measured */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) diff --git a/src/mame/drivers/kc.cpp b/src/mame/drivers/kc.cpp index effb562b56d..0f029f292d9 100644 --- a/src/mame/drivers/kc.cpp +++ b/src/mame/drivers/kc.cpp @@ -133,7 +133,7 @@ MACHINE_CONFIG_START(kc_state::kc85_3) MCFG_KC_KEYBOARD_OUT_CALLBACK(WRITELINE(*this, kc_state, keyboard_cb)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) @@ -217,7 +217,7 @@ MACHINE_CONFIG_START(kc85_4_state::kc85_4) MCFG_KC_KEYBOARD_OUT_CALLBACK(WRITELINE(*this, kc_state, keyboard_cb)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) diff --git a/src/mame/drivers/kchamp.cpp b/src/mame/drivers/kchamp.cpp index 07ea164f6aa..a5abc5cc872 100644 --- a/src/mame/drivers/kchamp.cpp +++ b/src/mame/drivers/kchamp.cpp @@ -439,7 +439,7 @@ MACHINE_CONFIG_START(kchamp_state::kchampvs) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", 0)) @@ -499,7 +499,7 @@ MACHINE_CONFIG_START(kchamp_state::kchamp) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", 0)) diff --git a/src/mame/drivers/kdt6.cpp b/src/mame/drivers/kdt6.cpp index 14cbb8daa8b..7932eeda10e 100644 --- a/src/mame/drivers/kdt6.cpp +++ b/src/mame/drivers/kdt6.cpp @@ -635,7 +635,7 @@ MACHINE_CONFIG_START(kdt6_state::psi98) MCFG_MC6845_OUT_VSYNC_CB(WRITELINE("ctc2", z80ctc_device, trg2)) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, 1000) // frequency unknown MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) diff --git a/src/mame/drivers/kickgoal.cpp b/src/mame/drivers/kickgoal.cpp index 16012cc0c78..ef490b4d317 100644 --- a/src/mame/drivers/kickgoal.cpp +++ b/src/mame/drivers/kickgoal.cpp @@ -664,7 +664,7 @@ MACHINE_CONFIG_START(kickgoal_state::kickgoal) MCFG_VIDEO_START_OVERRIDE(kickgoal_state,kickgoal) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); //MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -703,7 +703,7 @@ MACHINE_CONFIG_START(kickgoal_state::actionhw) MCFG_VIDEO_START_OVERRIDE(kickgoal_state,actionhw) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); //MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/kingdrby.cpp b/src/mame/drivers/kingdrby.cpp index f7c15d7c8e8..a90dd9f5d47 100644 --- a/src/mame/drivers/kingdrby.cpp +++ b/src/mame/drivers/kingdrby.cpp @@ -1006,7 +1006,7 @@ MACHINE_CONFIG_START(kingdrby_state::kingdrby) MCFG_MC6845_SHOW_BORDER_AREA(false) MCFG_MC6845_CHAR_WIDTH(8) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, CLK_1/8) /* guess */ MCFG_AY8910_PORT_A_READ_CB(READ8(*this, kingdrby_state, sound_cmd_r)) diff --git a/src/mame/drivers/kingobox.cpp b/src/mame/drivers/kingobox.cpp index 4934ba40b65..c8d36ac9129 100644 --- a/src/mame/drivers/kingobox.cpp +++ b/src/mame/drivers/kingobox.cpp @@ -506,7 +506,7 @@ MACHINE_CONFIG_START(kingofb_state::kingofb) MCFG_VIDEO_START_OVERRIDE(kingofb_state,kingofb) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -565,7 +565,7 @@ MACHINE_CONFIG_START(kingofb_state::ringking) MCFG_VIDEO_START_OVERRIDE(kingofb_state,ringking) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/kingpin.cpp b/src/mame/drivers/kingpin.cpp index 9d910cfe829..dbe848ac1a4 100644 --- a/src/mame/drivers/kingpin.cpp +++ b/src/mame/drivers/kingpin.cpp @@ -176,7 +176,7 @@ MACHINE_CONFIG_START(kingpin_state::kingpin) MCFG_SCREEN_UPDATE_DEVICE( "tms9928a", tms9928a_device, screen_update ) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/klax.cpp b/src/mame/drivers/klax.cpp index 43e41fbec5b..66d46e059bf 100644 --- a/src/mame/drivers/klax.cpp +++ b/src/mame/drivers/klax.cpp @@ -224,7 +224,7 @@ MACHINE_CONFIG_START(klax_state::klax) MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, klax_state, video_int_write_line)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, ATARI_CLOCK_14MHz/4/4, okim6295_device::PIN7_HIGH) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/kncljoe.cpp b/src/mame/drivers/kncljoe.cpp index 62787a64d5c..70523f6a73c 100644 --- a/src/mame/drivers/kncljoe.cpp +++ b/src/mame/drivers/kncljoe.cpp @@ -284,7 +284,7 @@ MACHINE_CONFIG_START(kncljoe_state::kncljoe) MCFG_PALETTE_INIT_OWNER(kncljoe_state, kncljoe) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/koftball.cpp b/src/mame/drivers/koftball.cpp index 43874843503..6e3149b9453 100644 --- a/src/mame/drivers/koftball.cpp +++ b/src/mame/drivers/koftball.cpp @@ -252,7 +252,8 @@ MACHINE_CONFIG_START(koftball_state::koftball) MCFG_GFXDECODE_ADD("gfxdecode", "palette", koftball) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2413, XTAL(3'579'545)) // guessed chip type, clock not verified MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.50) diff --git a/src/mame/drivers/koikoi.cpp b/src/mame/drivers/koikoi.cpp index a464dcb4fc2..d25216da3cf 100644 --- a/src/mame/drivers/koikoi.cpp +++ b/src/mame/drivers/koikoi.cpp @@ -376,7 +376,7 @@ MACHINE_CONFIG_START(koikoi_state::koikoi) MCFG_PALETTE_INIT_OWNER(koikoi_state, koikoi) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, KOIKOI_CRYSTAL/8) MCFG_AY8910_PORT_B_READ_CB(READ8(*this, koikoi_state, input_r)) diff --git a/src/mame/drivers/konamigq.cpp b/src/mame/drivers/konamigq.cpp index c57182a8461..68420b00bfb 100644 --- a/src/mame/drivers/konamigq.cpp +++ b/src/mame/drivers/konamigq.cpp @@ -363,7 +363,8 @@ MACHINE_CONFIG_START(konamigq_state::konamigq) MCFG_PSXGPU_ADD("maincpu", "gpu", CXD8538Q, 0x200000, XTAL(53'693'175)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_K056800_ADD("k056800", XTAL(18'432'000)) MCFG_K056800_INT_HANDLER(INPUTLINE("soundcpu", M68K_IRQ_1)) diff --git a/src/mame/drivers/konamigv.cpp b/src/mame/drivers/konamigv.cpp index 64c7d5a4735..70af87fb20e 100644 --- a/src/mame/drivers/konamigv.cpp +++ b/src/mame/drivers/konamigv.cpp @@ -381,7 +381,8 @@ MACHINE_CONFIG_START(konamigv_state::konamigv) MCFG_PSXGPU_ADD( "maincpu", "gpu", CXD8514Q, 0x100000, XTAL(53'693'175) ) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_SPU_ADD( "spu", XTAL(67'737'600)/2 ) MCFG_SOUND_ROUTE( 0, "lspeaker", 0.75 ) diff --git a/src/mame/drivers/konamigx.cpp b/src/mame/drivers/konamigx.cpp index 27834701832..2d23a773e2e 100644 --- a/src/mame/drivers/konamigx.cpp +++ b/src/mame/drivers/konamigx.cpp @@ -1674,7 +1674,8 @@ MACHINE_CONFIG_START(konamigx_state::konamigx) MCFG_VIDEO_START_OVERRIDE(konamigx_state, konamigx_5bpp) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_MODIFY("dasp") MCFG_SOUND_ROUTE(0, "lspeaker", 0.3) diff --git a/src/mame/drivers/konblands.cpp b/src/mame/drivers/konblands.cpp index a826531163f..b43f882f429 100644 --- a/src/mame/drivers/konblands.cpp +++ b/src/mame/drivers/konblands.cpp @@ -299,7 +299,7 @@ MACHINE_CONFIG_START(konblands_state::konblands) MCFG_PALETTE_INIT_OWNER(konblands_state, konblands) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("sn", SN76496, MASTER_CLOCK/12) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) MACHINE_CONFIG_END diff --git a/src/mame/drivers/konendev.cpp b/src/mame/drivers/konendev.cpp index 5c276276840..6872d4074eb 100644 --- a/src/mame/drivers/konendev.cpp +++ b/src/mame/drivers/konendev.cpp @@ -330,7 +330,8 @@ MACHINE_CONFIG_START(konendev_state::konendev) MCFG_EEPROM_SERIAL_93C56_ADD("eeprom") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymz", YMZ280B, 16934400) // Clock unknown MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) diff --git a/src/mame/drivers/konmedal.cpp b/src/mame/drivers/konmedal.cpp index 65ca8193ab1..ddde28a4516 100644 --- a/src/mame/drivers/konmedal.cpp +++ b/src/mame/drivers/konmedal.cpp @@ -405,7 +405,8 @@ MACHINE_CONFIG_START(konmedal_state::tsukande) MCFG_K056832_PALETTE("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymz", YMZ280B, XTAL(16'934'400)) // 16.9344MHz xtal verified on PCB MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) @@ -438,7 +439,7 @@ MACHINE_CONFIG_START(konmedal_state::ddboy) MCFG_K056832_PALETTE("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, XTAL(14'318'181)/14, okim6295_device::PIN7_HIGH) MCFG_SOUND_ROUTE(0, "mono", 1.0) MCFG_SOUND_ROUTE(1, "mono", 1.0) @@ -566,7 +567,7 @@ MACHINE_CONFIG_START(konmedal_state::shuriboy) MCFG_MACHINE_START_OVERRIDE(konmedal_state, shuriboy) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_K051649_ADD("k051649", XTAL(24'000'000) / 12) // divisor unknown MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.45) diff --git a/src/mame/drivers/konmedal68k.cpp b/src/mame/drivers/konmedal68k.cpp index b0b4fdec03e..a05ea4a8a98 100644 --- a/src/mame/drivers/konmedal68k.cpp +++ b/src/mame/drivers/konmedal68k.cpp @@ -319,7 +319,8 @@ MACHINE_CONFIG_START(konmedal68k_state::kzaurus) MCFG_K055555_ADD("k055555") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymz", YMZ280B, XTAL(33'868'800)/2) // 33.8688 MHz xtal verified on PCB MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) diff --git a/src/mame/drivers/kontest.cpp b/src/mame/drivers/kontest.cpp index 1fdc26b1c82..b4cf3433bb3 100644 --- a/src/mame/drivers/kontest.cpp +++ b/src/mame/drivers/kontest.cpp @@ -272,7 +272,8 @@ MACHINE_CONFIG_START(kontest_state::kontest) MCFG_PALETTE_INIT_OWNER(kontest_state, kontest) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("sn1", SN76489A, MAIN_CLOCK/16) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 0.50) diff --git a/src/mame/drivers/krz2000.cpp b/src/mame/drivers/krz2000.cpp index 2acc9134f8f..96ee9a5ac3b 100644 --- a/src/mame/drivers/krz2000.cpp +++ b/src/mame/drivers/krz2000.cpp @@ -69,7 +69,8 @@ MACHINE_CONFIG_START(k2000_state::k2000) MCFG_DEVICE_ADD("tmp68301", TMP68301, 0) MCFG_TMP68301_CPU("maincpu") - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MACHINE_CONFIG_END static INPUT_PORTS_START( k2000 ) diff --git a/src/mame/drivers/ksayakyu.cpp b/src/mame/drivers/ksayakyu.cpp index 7b7283fecca..b3b897e1077 100644 --- a/src/mame/drivers/ksayakyu.cpp +++ b/src/mame/drivers/ksayakyu.cpp @@ -286,7 +286,7 @@ MACHINE_CONFIG_START(ksayakyu_state::ksayakyu) MCFG_PALETTE_INIT_OWNER(ksayakyu_state, ksayakyu) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/ksys573.cpp b/src/mame/drivers/ksys573.cpp index cc1ed6f7320..92603d896f5 100644 --- a/src/mame/drivers/ksys573.cpp +++ b/src/mame/drivers/ksys573.cpp @@ -2121,7 +2121,8 @@ MACHINE_CONFIG_START(ksys573_state::konami573) MCFG_PSXGPU_VBLANK_CALLBACK(vblank_state_delegate(&ksys573_state::sys573_vblank, this )) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO( "lspeaker", "rspeaker" ) + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_SPU_ADD( "spu", XTAL(67'737'600)/2 ) MCFG_SOUND_ROUTE( 0, "lspeaker", 1.0 ) diff --git a/src/mame/drivers/kungfur.cpp b/src/mame/drivers/kungfur.cpp index 8c48ad33bdd..0e7eb66a7e4 100644 --- a/src/mame/drivers/kungfur.cpp +++ b/src/mame/drivers/kungfur.cpp @@ -315,7 +315,8 @@ MACHINE_CONFIG_START(kungfur_state::kungfur) /* no video! */ /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("adpcm1", MSM5205, XTAL(384'000)) // clock verified with recording MCFG_MSM5205_VCLK_CB(WRITELINE(*this, kungfur_state, kfr_adpcm1_int)) MCFG_MSM5205_PRESCALER_SELECTOR(S48_4B) diff --git a/src/mame/drivers/kurukuru.cpp b/src/mame/drivers/kurukuru.cpp index 39c56b722cc..7ecaa4069d4 100644 --- a/src/mame/drivers/kurukuru.cpp +++ b/src/mame/drivers/kurukuru.cpp @@ -862,7 +862,7 @@ MACHINE_CONFIG_START(kurukuru_state::kurukuru) MCFG_TICKET_DISPENSER_ADD("hopper", attotime::from_msec(HOPPER_PULSE), TICKET_MOTOR_ACTIVE_HIGH, TICKET_STATUS_ACTIVE_HIGH ) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(WRITELINE("soundirq", rst_neg_buffer_device, rst28_w)) diff --git a/src/mame/drivers/kyocera.cpp b/src/mame/drivers/kyocera.cpp index d6875a0d666..f9adef35c28 100644 --- a/src/mame/drivers/kyocera.cpp +++ b/src/mame/drivers/kyocera.cpp @@ -1358,7 +1358,7 @@ MACHINE_CONFIG_START(kc85_state::kc85) kc85_video(config); /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) @@ -1408,7 +1408,7 @@ MACHINE_CONFIG_START(pc8201_state::pc8201) kc85_video(config); /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) @@ -1469,7 +1469,7 @@ MACHINE_CONFIG_START(trsm100_state::trsm100) kc85_video(config); /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) @@ -1528,7 +1528,7 @@ MACHINE_CONFIG_START(tandy200_state::tandy200) MCFG_TIMER_DRIVER_ADD_PERIODIC("tp", tandy200_state, tandy200_tp_tick, attotime::from_hz(XTAL(4'915'200)/2/8192)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) // MCFG_TCM5089_ADD(TCM5089_TAG, XTAL(3'579'545)) diff --git a/src/mame/drivers/kyugo.cpp b/src/mame/drivers/kyugo.cpp index 06b43ac3ea1..2ab653b1699 100644 --- a/src/mame/drivers/kyugo.cpp +++ b/src/mame/drivers/kyugo.cpp @@ -552,7 +552,7 @@ MACHINE_CONFIG_START(kyugo_state::kyugo_base) MCFG_PALETTE_ADD_RRRRGGGGBBBB_PROMS("palette", "proms", 256) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay1", AY8910, XTAL(18'432'000)/12) /* verified on pcb */ MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW1")) diff --git a/src/mame/drivers/labyrunr.cpp b/src/mame/drivers/labyrunr.cpp index aa9c61a5695..ecb1910fdef 100644 --- a/src/mame/drivers/labyrunr.cpp +++ b/src/mame/drivers/labyrunr.cpp @@ -194,7 +194,7 @@ MACHINE_CONFIG_START(labyrunr_state::labyrunr) MCFG_K051733_ADD("k051733") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ym1", YM2203, 3000000) MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW1")) diff --git a/src/mame/drivers/ladybug.cpp b/src/mame/drivers/ladybug.cpp index 2f0e4cad122..7c53538e483 100644 --- a/src/mame/drivers/ladybug.cpp +++ b/src/mame/drivers/ladybug.cpp @@ -748,7 +748,7 @@ MACHINE_CONFIG_START(ladybug_state::ladybug) MCFG_ADDRESSABLE_LATCH_Q0_OUT_CB(WRITELINE(*this, ladybug_state, flipscreen_w)) // no other outputs used /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("sn1", SN76489, 4000000) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -797,7 +797,7 @@ MACHINE_CONFIG_START(sraider_state::sraider) MCFG_DEVICE_ADD("stars", ZEROHOUR_STARS, 0) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("sn1", SN76489, 4000000) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/ladyfrog.cpp b/src/mame/drivers/ladyfrog.cpp index 29823b8956f..854a047d672 100644 --- a/src/mame/drivers/ladyfrog.cpp +++ b/src/mame/drivers/ladyfrog.cpp @@ -317,7 +317,7 @@ MACHINE_CONFIG_START(ladyfrog_state::ladyfrog) MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/laser3k.cpp b/src/mame/drivers/laser3k.cpp index 7cc4d8eedf1..5454268e302 100644 --- a/src/mame/drivers/laser3k.cpp +++ b/src/mame/drivers/laser3k.cpp @@ -1024,7 +1024,7 @@ MACHINE_CONFIG_START(laser3k_state::laser3k) MCFG_AY3600_DATA_READY_CB(WRITELINE(*this, laser3k_state, ay3600_data_ready_w)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) MCFG_DEVICE_ADD("sn76489", SN76489, 1020484) diff --git a/src/mame/drivers/laserbas.cpp b/src/mame/drivers/laserbas.cpp index 9e6a0278c8c..b4238051ba5 100644 --- a/src/mame/drivers/laserbas.cpp +++ b/src/mame/drivers/laserbas.cpp @@ -447,7 +447,7 @@ MACHINE_CONFIG_START(laserbas_state::laserbas) MCFG_PALETTE_FORMAT(RRRGGGBB) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac1", DAC_4BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.16) MCFG_DEVICE_ADD("dac2", DAC_4BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.16) MCFG_DEVICE_ADD("dac3", DAC_4BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.16) diff --git a/src/mame/drivers/laserbat.cpp b/src/mame/drivers/laserbat.cpp index 177eb070c48..ab45d06df9d 100644 --- a/src/mame/drivers/laserbat.cpp +++ b/src/mame/drivers/laserbat.cpp @@ -504,7 +504,7 @@ MACHINE_CONFIG_START(laserbat_state::laserbat) MCFG_PALETTE_INIT_OWNER(laserbat_state, laserbat) // sound board devices - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD(m_csg, SN76477) // audio output not used MCFG_SN76477_NOISE_PARAMS(RES_K(47), RES_K(270), CAP_P(1000)) // R21, switchable R30/R23/R24/R25/R29/R28/R27/R26, C21 @@ -537,7 +537,7 @@ MACHINE_CONFIG_START(catnmous_state::catnmous) MCFG_PALETTE_INIT_OWNER(catnmous_state, catnmous) // sound board devices - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD(m_audiopcb, ZACCARIA_1B11107) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 1.0) diff --git a/src/mame/drivers/lasso.cpp b/src/mame/drivers/lasso.cpp index e31bf112cdd..dcd6f43d9e0 100644 --- a/src/mame/drivers/lasso.cpp +++ b/src/mame/drivers/lasso.cpp @@ -515,7 +515,7 @@ MACHINE_CONFIG_START(lasso_state::base) MCFG_GFXDECODE_ADD("gfxdecode", "palette", lasso) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/lastbank.cpp b/src/mame/drivers/lastbank.cpp index ceee5e6021f..eeb703b4737 100644 --- a/src/mame/drivers/lastbank.cpp +++ b/src/mame/drivers/lastbank.cpp @@ -546,7 +546,7 @@ MACHINE_CONFIG_START(lastbank_state::lastbank) // MCFG_VIDEO_START_OVERRIDE(lastbank_state,lastbank) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch1") MCFG_GENERIC_LATCH_8_ADD("soundlatch2") diff --git a/src/mame/drivers/lastduel.cpp b/src/mame/drivers/lastduel.cpp index 8613a4292b2..a84926423db 100644 --- a/src/mame/drivers/lastduel.cpp +++ b/src/mame/drivers/lastduel.cpp @@ -519,7 +519,7 @@ MACHINE_CONFIG_START(lastduel_state::lastduel) MCFG_VIDEO_START_OVERRIDE(lastduel_state,lastduel) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -564,7 +564,7 @@ MACHINE_CONFIG_START(lastduel_state::madgear) MCFG_VIDEO_START_OVERRIDE(lastduel_state,madgear) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/laz_aftrshok.cpp b/src/mame/drivers/laz_aftrshok.cpp index f2a958060eb..eb827914e9f 100644 --- a/src/mame/drivers/laz_aftrshok.cpp +++ b/src/mame/drivers/laz_aftrshok.cpp @@ -72,7 +72,7 @@ MACHINE_CONFIG_START(aftrshok_state::aftrshok) // MCFG_DEVICE_VBLANK_INT_DRIVER("screen", aftrshok_state, irq0_line_hold) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, 1000000, okim6295_device::PIN7_HIGH) // maybe MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/laz_awetoss.cpp b/src/mame/drivers/laz_awetoss.cpp index 6e7bf05824f..a78f49f736a 100644 --- a/src/mame/drivers/laz_awetoss.cpp +++ b/src/mame/drivers/laz_awetoss.cpp @@ -52,7 +52,7 @@ MACHINE_CONFIG_START(awetoss_state::awetoss) // MCFG_DEVICE_VBLANK_INT_DRIVER("screen", awetoss_state, irq0_line_hold) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, 1000000, okim6295_device::PIN7_HIGH) // maybe MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/laz_ribrac.cpp b/src/mame/drivers/laz_ribrac.cpp index 62aafe52fcf..3b6e45cef34 100644 --- a/src/mame/drivers/laz_ribrac.cpp +++ b/src/mame/drivers/laz_ribrac.cpp @@ -55,7 +55,7 @@ MACHINE_CONFIG_START(laz_ribrac_state::laz_ribrac) // MCFG_DEVICE_IO_MAP(laz_ribrac_io) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, 1000000, okim6295_device::PIN7_HIGH) // maybe MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/lazercmd.cpp b/src/mame/drivers/lazercmd.cpp index e27dacd6ca3..3b0c9e28cf7 100644 --- a/src/mame/drivers/lazercmd.cpp +++ b/src/mame/drivers/lazercmd.cpp @@ -652,7 +652,7 @@ MACHINE_CONFIG_START(lazercmd_state::lazercmd) MCFG_PALETTE_INIT_OWNER(lazercmd_state, lazercmd) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac0", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.99) MCFG_DEVICE_ADD("dac1", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.99) MCFG_DEVICE_ADD("dac2", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.99) @@ -691,7 +691,7 @@ MACHINE_CONFIG_START(lazercmd_state::medlanes) MCFG_PALETTE_INIT_OWNER(lazercmd_state, lazercmd) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac2", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.99) MCFG_DEVICE_ADD("dac3", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.99) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) @@ -726,7 +726,7 @@ MACHINE_CONFIG_START(lazercmd_state::bbonk) MCFG_PALETTE_INIT_OWNER(lazercmd_state, lazercmd) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac2", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.99) MCFG_DEVICE_ADD("dac3", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.99) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) diff --git a/src/mame/drivers/lc80.cpp b/src/mame/drivers/lc80.cpp index 87740ada0db..7a5396e5972 100644 --- a/src/mame/drivers/lc80.cpp +++ b/src/mame/drivers/lc80.cpp @@ -340,7 +340,7 @@ MACHINE_CONFIG_START(lc80_state::lc80) MCFG_DEFAULT_LAYOUT( layout_lc80 ) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) @@ -379,7 +379,7 @@ MACHINE_CONFIG_START(lc80_state::lc80_2) MCFG_DEFAULT_LAYOUT( layout_lc80 ) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mame/drivers/lcmate2.cpp b/src/mame/drivers/lcmate2.cpp index 56cabe96c30..55d2ce55c98 100644 --- a/src/mame/drivers/lcmate2.cpp +++ b/src/mame/drivers/lcmate2.cpp @@ -254,7 +254,7 @@ MACHINE_CONFIG_START(lcmate2_state::lcmate2) MCFG_NVRAM_ADD_0FILL("nvram") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/ldplayer.cpp b/src/mame/drivers/ldplayer.cpp index 0484fd844e5..b0ea22396d9 100644 --- a/src/mame/drivers/ldplayer.cpp +++ b/src/mame/drivers/ldplayer.cpp @@ -637,7 +637,8 @@ MACHINE_CONFIG_START(ldv1000_state::ldv1000) MCFG_LASERDISC_GET_DISC(laserdisc_device::get_disc_delegate(&ldplayer_state::get_disc_static, device)) MCFG_LASERDISC_SCREEN_ADD_NTSC("screen", "laserdisc") - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_MODIFY("laserdisc") MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) MCFG_SOUND_ROUTE(1, "rspeaker", 1.0) @@ -650,7 +651,8 @@ MACHINE_CONFIG_START(pr8210_state::pr8210) MCFG_LASERDISC_GET_DISC(laserdisc_device::get_disc_delegate(&ldplayer_state::get_disc_static, device)) MCFG_LASERDISC_SCREEN_ADD_NTSC("screen", "laserdisc") - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_MODIFY("laserdisc") MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) MCFG_SOUND_ROUTE(1, "rspeaker", 1.0) diff --git a/src/mame/drivers/learnwin.cpp b/src/mame/drivers/learnwin.cpp index c7e46dc036e..ca35c2f4a55 100644 --- a/src/mame/drivers/learnwin.cpp +++ b/src/mame/drivers/learnwin.cpp @@ -147,7 +147,7 @@ MACHINE_CONFIG_START(learnwin_state::learnwin) // MCFG_SCREEN_VISIBLE_AREA(0,47,0,31) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MACHINE_CONFIG_END diff --git a/src/mame/drivers/legionna.cpp b/src/mame/drivers/legionna.cpp index 6c1d8d4dadf..d3050b1eb6f 100644 --- a/src/mame/drivers/legionna.cpp +++ b/src/mame/drivers/legionna.cpp @@ -1259,7 +1259,7 @@ MACHINE_CONFIG_START(legionna_state::legionna) MCFG_VIDEO_START_OVERRIDE(legionna_state,legionna) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM3812, 14318180/4) MCFG_YM3812_IRQ_HANDLER(WRITELINE("seibu_sound", seibu_sound_device, fm_irqhandler)) @@ -1312,7 +1312,7 @@ MACHINE_CONFIG_START(legionna_state::heatbrl) MCFG_VIDEO_START_OVERRIDE(legionna_state,heatbrl) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM3812, 14318180/4) MCFG_YM3812_IRQ_HANDLER(WRITELINE("seibu_sound", seibu_sound_device, fm_irqhandler)) @@ -1366,7 +1366,7 @@ MACHINE_CONFIG_START(legionna_state::godzilla) MCFG_VIDEO_START_OVERRIDE(legionna_state,godzilla) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2151, 14318180/4) MCFG_YM2151_IRQ_HANDLER(WRITELINE("seibu_sound", seibu_sound_device, fm_irqhandler)) @@ -1419,7 +1419,7 @@ MACHINE_CONFIG_START(legionna_state::denjinmk) MCFG_VIDEO_START_OVERRIDE(legionna_state,denjinmk) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2151, 14318180/4) MCFG_YM2151_IRQ_HANDLER(WRITELINE("seibu_sound", seibu_sound_device, fm_irqhandler)) @@ -1472,7 +1472,7 @@ MACHINE_CONFIG_START(legionna_state::grainbow) MCFG_VIDEO_START_OVERRIDE(legionna_state,grainbow) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2151, 14318180/4) MCFG_YM2151_IRQ_HANDLER(WRITELINE("seibu_sound", seibu_sound_device, fm_irqhandler)) @@ -1526,7 +1526,7 @@ MACHINE_CONFIG_START(legionna_state::cupsoc) MCFG_VIDEO_START_OVERRIDE(legionna_state,cupsoc) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM3812, 14318180/4) MCFG_YM3812_IRQ_HANDLER(WRITELINE("seibu_sound", seibu_sound_device, fm_irqhandler)) diff --git a/src/mame/drivers/leland.cpp b/src/mame/drivers/leland.cpp index 5b82be489a3..ab9ebad2b1a 100644 --- a/src/mame/drivers/leland.cpp +++ b/src/mame/drivers/leland.cpp @@ -1023,7 +1023,7 @@ MACHINE_CONFIG_START(leland_state::leland) /* video hardware */ leland_video(config); /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); // only one of the AY sockets is populated MCFG_DEVICE_ADD("ay8910", AY8910, 10000000/6) diff --git a/src/mame/drivers/lemmings.cpp b/src/mame/drivers/lemmings.cpp index 12e9c3118ac..d5fd7c1ac4a 100644 --- a/src/mame/drivers/lemmings.cpp +++ b/src/mame/drivers/lemmings.cpp @@ -255,7 +255,8 @@ MACHINE_CONFIG_START(lemmings_state::lemmings) MCFG_DECO146_SOUNDLATCH_IRQ_CB(INPUTLINE("audiocpu", 1)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/lethal.cpp b/src/mame/drivers/lethal.cpp index bf5ce51cf47..8a78d259ec7 100644 --- a/src/mame/drivers/lethal.cpp +++ b/src/mame/drivers/lethal.cpp @@ -535,7 +535,8 @@ MACHINE_CONFIG_START(lethal_state::lethalen) MCFG_K054000_ADD("k054000") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_K054321_ADD("k054321", "lspeaker", "rspeaker") diff --git a/src/mame/drivers/lethalj.cpp b/src/mame/drivers/lethalj.cpp index b569231cec6..db2bc811652 100644 --- a/src/mame/drivers/lethalj.cpp +++ b/src/mame/drivers/lethalj.cpp @@ -651,7 +651,7 @@ MACHINE_CONFIG_START(lethalj_state::gameroom) MCFG_PALETTE_ADD_RRRRRGGGGGBBBBB("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki1", OKIM6295, SOUND_CLOCK, okim6295_device::PIN7_HIGH) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.8) diff --git a/src/mame/drivers/lgp.cpp b/src/mame/drivers/lgp.cpp index 02036273f33..09aac214504 100644 --- a/src/mame/drivers/lgp.cpp +++ b/src/mame/drivers/lgp.cpp @@ -433,7 +433,8 @@ MACHINE_CONFIG_START(lgp_state::lgp) MCFG_GFXDECODE_ADD("gfxdecode", "palette", lgp) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_MODIFY("laserdisc") MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) diff --git a/src/mame/drivers/liberate.cpp b/src/mame/drivers/liberate.cpp index 4202881fb34..a7b2b76e6d9 100644 --- a/src/mame/drivers/liberate.cpp +++ b/src/mame/drivers/liberate.cpp @@ -774,7 +774,7 @@ MACHINE_CONFIG_START(liberate_state::liberate_base) MCFG_VIDEO_START_OVERRIDE(liberate_state,liberate) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -864,7 +864,7 @@ MACHINE_CONFIG_START(liberate_state::prosport) MCFG_VIDEO_START_OVERRIDE(liberate_state,prosport) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/liberatr.cpp b/src/mame/drivers/liberatr.cpp index b641c566c35..91b78aeae11 100644 --- a/src/mame/drivers/liberatr.cpp +++ b/src/mame/drivers/liberatr.cpp @@ -450,7 +450,7 @@ MACHINE_CONFIG_START(liberatr_state::liberatr) MCFG_SCREEN_VISIBLE_AREA(8, 247, 13, 244) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("pokey1", POKEY, MASTER_CLOCK/16) /* 1.25Mhz from Phi2 signal from 6502 */ MCFG_POKEY_ALLPOT_R_CB(IOPORT("DSW2")) diff --git a/src/mame/drivers/limenko.cpp b/src/mame/drivers/limenko.cpp index d1650dd8783..30b0b694723 100644 --- a/src/mame/drivers/limenko.cpp +++ b/src/mame/drivers/limenko.cpp @@ -724,7 +724,8 @@ MACHINE_CONFIG_START(limenko_state::limenko) MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(WRITELINE("qs1000", qs1000_device, set_irq)) @@ -769,7 +770,7 @@ MACHINE_CONFIG_START(limenko_state::spotty) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/lisa.cpp b/src/mame/drivers/lisa.cpp index 53b10ad2293..efc9ef0dafd 100644 --- a/src/mame/drivers/lisa.cpp +++ b/src/mame/drivers/lisa.cpp @@ -138,7 +138,7 @@ MACHINE_CONFIG_START(lisa_state::lisa) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) diff --git a/src/mame/drivers/littlerb.cpp b/src/mame/drivers/littlerb.cpp index 10c82cdd235..d0f5e66db98 100644 --- a/src/mame/drivers/littlerb.cpp +++ b/src/mame/drivers/littlerb.cpp @@ -293,7 +293,8 @@ MACHINE_CONFIG_START(littlerb_state::littlerb) MCFG_TIMER_DRIVER_ADD_PERIODIC("step_timer", littlerb_state, littlerb_sound_step_cb, attotime::from_hz(7500/150)) MCFG_TIMER_DRIVER_ADD_PERIODIC("sound_timer", littlerb_state, littlerb_sound_cb, attotime::from_hz(7500)) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker","rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ldac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.5) // unknown DAC MCFG_DEVICE_ADD("rdac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 0.5) // unknown DAC diff --git a/src/mame/drivers/lkage.cpp b/src/mame/drivers/lkage.cpp index 1182b075d48..44af4b1d457 100644 --- a/src/mame/drivers/lkage.cpp +++ b/src/mame/drivers/lkage.cpp @@ -517,7 +517,7 @@ MACHINE_CONFIG_START(lkage_state::lkage) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(WRITELINE("soundnmi", input_merger_device, in_w<0>)) @@ -568,7 +568,7 @@ MACHINE_CONFIG_START(lkage_state::lkageb) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(WRITELINE("soundnmi", input_merger_device, in_w<0>)) diff --git a/src/mame/drivers/llc.cpp b/src/mame/drivers/llc.cpp index 9fd175f26fc..ce422625543 100644 --- a/src/mame/drivers/llc.cpp +++ b/src/mame/drivers/llc.cpp @@ -265,7 +265,7 @@ MACHINE_CONFIG_START(llc_state::llc2) MCFG_PALETTE_ADD_MONOCHROME("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.15) diff --git a/src/mame/drivers/lockon.cpp b/src/mame/drivers/lockon.cpp index 000a14ed653..73096e51edf 100644 --- a/src/mame/drivers/lockon.cpp +++ b/src/mame/drivers/lockon.cpp @@ -504,7 +504,8 @@ MACHINE_CONFIG_START(lockon_state::lockon) MCFG_PALETTE_ADD("palette", 1024 + 2048) MCFG_PALETTE_INIT_OWNER(lockon_state, lockon) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2203, 16_MHz_XTAL / 4) MCFG_YM2203_IRQ_HANDLER(WRITELINE(*this, lockon_state, ym2203_irq)) diff --git a/src/mame/drivers/lola8a.cpp b/src/mame/drivers/lola8a.cpp index a5ae142fe0c..6be5316a130 100644 --- a/src/mame/drivers/lola8a.cpp +++ b/src/mame/drivers/lola8a.cpp @@ -270,7 +270,7 @@ MACHINE_CONFIG_START(lola8a_state::lola8a) MCFG_I8085A_SID(READLINE(*this, lola8a_state, cass_r)) MCFG_I8085A_SOD(WRITELINE(*this, lola8a_state, cass_w)) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD(AY8910_TAG, AY8910, XTAL(4'915'200) / 4) MCFG_AY8910_PORT_A_READ_CB(READ8(*this, lola8a_state, lola8a_port_a_r)) MCFG_AY8910_PORT_B_WRITE_CB(WRITE8(*this, lola8a_state, lola8a_port_b_w)) diff --git a/src/mame/drivers/looping.cpp b/src/mame/drivers/looping.cpp index 3b5613caa94..a5c927dbc60 100644 --- a/src/mame/drivers/looping.cpp +++ b/src/mame/drivers/looping.cpp @@ -671,7 +671,7 @@ MACHINE_CONFIG_START(looping_state::looping) MCFG_ADDRESSABLE_LATCH_Q7_OUT_CB(WRITELINE(*this, looping_state, flip_screen_y_w)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/lordgun.cpp b/src/mame/drivers/lordgun.cpp index 82a13612e8b..2b9682713de 100644 --- a/src/mame/drivers/lordgun.cpp +++ b/src/mame/drivers/lordgun.cpp @@ -676,7 +676,7 @@ MACHINE_CONFIG_START(lordgun_state::lordgun) MCFG_PALETTE_ADD("palette", 0x800 * 8) // 0x800 real colors, repeated per priority level // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_8_ADD("soundlatch2") @@ -728,7 +728,7 @@ MACHINE_CONFIG_START(lordgun_state::aliencha) MCFG_PALETTE_ADD("palette", 0x800 * 8) // 0x800 real colors, repeated per priority level // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_8_ADD("soundlatch2") diff --git a/src/mame/drivers/lsasquad.cpp b/src/mame/drivers/lsasquad.cpp index 279249567b4..7068568992a 100644 --- a/src/mame/drivers/lsasquad.cpp +++ b/src/mame/drivers/lsasquad.cpp @@ -596,7 +596,7 @@ MACHINE_CONFIG_START(lsasquad_state::lsasquad) MCFG_PALETTE_ADD_RRRRGGGGBBBB_PROMS("palette", "proms", 512) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", YM2149, MASTER_CLOCK / 8) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.12) @@ -662,7 +662,7 @@ MACHINE_CONFIG_START(lsasquad_state::daikaiju) MCFG_PALETTE_ADD_RRRRGGGGBBBB_PROMS("palette", "proms", 512) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", YM2149, MASTER_CLOCK / 8) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.12) diff --git a/src/mame/drivers/ltcasino.cpp b/src/mame/drivers/ltcasino.cpp index cc33a8fde6c..77dbd0cde08 100644 --- a/src/mame/drivers/ltcasino.cpp +++ b/src/mame/drivers/ltcasino.cpp @@ -729,7 +729,7 @@ MACHINE_CONFIG_START(ltcasino_state::ltcasino) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, XTAL(18'432'000)/18) /* 1.024MHz ?? (or 18.432MHz/16 = 1.152MHz) - not verified */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.4) diff --git a/src/mame/drivers/ltd.cpp b/src/mame/drivers/ltd.cpp index 05ca8b5dc7e..d2c02ef8404 100644 --- a/src/mame/drivers/ltd.cpp +++ b/src/mame/drivers/ltd.cpp @@ -556,7 +556,7 @@ MACHINE_CONFIG_START(ltd_state::ltd4) /* Sound */ genpin_audio(config); - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd_0", AY8910, XTAL(3'579'545)/2) /* guess */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.3) MCFG_DEVICE_ADD("aysnd_1", AY8910, XTAL(3'579'545)/2) /* guess */ diff --git a/src/mame/drivers/luckgrln.cpp b/src/mame/drivers/luckgrln.cpp index 27fb9b67e43..18df58c9884 100644 --- a/src/mame/drivers/luckgrln.cpp +++ b/src/mame/drivers/luckgrln.cpp @@ -997,7 +997,7 @@ MACHINE_CONFIG_START(luckgrln_state::luckgrln) MCFG_GFXDECODE_ADD("gfxdecode", "palette", luckgrln) MCFG_PALETTE_ADD("palette", 0x8000) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MACHINE_CONFIG_END diff --git a/src/mame/drivers/lucky74.cpp b/src/mame/drivers/lucky74.cpp index 8d8894c82cb..ccedaca437b 100644 --- a/src/mame/drivers/lucky74.cpp +++ b/src/mame/drivers/lucky74.cpp @@ -1509,7 +1509,7 @@ MACHINE_CONFIG_START(lucky74_state::lucky74) MCFG_PALETTE_INIT_OWNER(lucky74_state, lucky74) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("sn1", SN76489, C_06B49P_CLKOUT_03) /* 3 MHz. */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80) diff --git a/src/mame/drivers/luckybal.cpp b/src/mame/drivers/luckybal.cpp index 58c8a073b89..596326a9691 100644 --- a/src/mame/drivers/luckybal.cpp +++ b/src/mame/drivers/luckybal.cpp @@ -547,7 +547,7 @@ MACHINE_CONFIG_START(luckybal_state::luckybal) MCFG_V99X8_SCREEN_ADD_NTSC("screen", "v9938", VID_CLOCK) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC08, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) // DAC 08 MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT) diff --git a/src/mame/drivers/lvcards.cpp b/src/mame/drivers/lvcards.cpp index bce09a5c377..7431c94f177 100644 --- a/src/mame/drivers/lvcards.cpp +++ b/src/mame/drivers/lvcards.cpp @@ -476,7 +476,7 @@ MACHINE_CONFIG_START(lvcards_state::lvcards) MCFG_PALETTE_INIT_OWNER(lvcards_state, lvcards) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, 18432000/12) // unknown frequency, assume same as tehkanwc.cpp MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW0")) diff --git a/src/mame/drivers/lviv.cpp b/src/mame/drivers/lviv.cpp index 9fb72ddc5fc..b24c11a97e5 100644 --- a/src/mame/drivers/lviv.cpp +++ b/src/mame/drivers/lviv.cpp @@ -459,7 +459,7 @@ MACHINE_CONFIG_START(lviv_state::lviv) MCFG_PALETTE_INIT_OWNER(lviv_state, lviv) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) diff --git a/src/mame/drivers/lwings.cpp b/src/mame/drivers/lwings.cpp index d2189f62edd..a581a6b3dcc 100644 --- a/src/mame/drivers/lwings.cpp +++ b/src/mame/drivers/lwings.cpp @@ -957,7 +957,7 @@ MACHINE_CONFIG_START(lwings_state::lwings) MCFG_PALETTE_FORMAT(RRRRGGGGBBBBxxxx) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -1007,7 +1007,7 @@ MACHINE_CONFIG_START(lwings_state::fball) MCFG_PALETTE_FORMAT(RRRRGGGGBBBBxxxx) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/lynx.cpp b/src/mame/drivers/lynx.cpp index 27a0168afc8..06729e4f671 100644 --- a/src/mame/drivers/lynx.cpp +++ b/src/mame/drivers/lynx.cpp @@ -95,7 +95,7 @@ MACHINE_CONFIG_START(lynx_state::lynx) MCFG_PALETTE_INIT_OWNER(lynx_state, lynx) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("custom", LYNX_SND, 0) MCFG_LYNX_SND_SET_TIMER(lynx_state, sound_cb) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) @@ -118,7 +118,8 @@ static MACHINE_CONFIG_START( lynx2 ) /* sound hardware */ MCFG_DEVICE_REMOVE("mono") - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_REMOVE("lynx") MCFG_DEVICE_ADD("custom", LYNX2_SND, 0) MCFG_LYNX_SND_SET_TIMER(lynx_state, sound_cb) diff --git a/src/mame/drivers/m10.cpp b/src/mame/drivers/m10.cpp index 3dff6ec115f..704493f0551 100644 --- a/src/mame/drivers/m10.cpp +++ b/src/mame/drivers/m10.cpp @@ -856,7 +856,7 @@ MACHINE_CONFIG_START(m10_state::m10) MCFG_TTL74123_OUTPUT_CHANGED_CB(WRITELINE(*this, m10_state, ic8j2_output_changed)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("samples", SAMPLES) MCFG_SAMPLES_CHANNELS(6) @@ -900,7 +900,7 @@ MACHINE_CONFIG_START(m10_state::m15) MCFG_VIDEO_START_OVERRIDE(m10_state, m15 ) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("samples", SAMPLES) MCFG_SAMPLES_CHANNELS(6) diff --git a/src/mame/drivers/m107.cpp b/src/mame/drivers/m107.cpp index 1c1509baec5..84c3c34db71 100644 --- a/src/mame/drivers/m107.cpp +++ b/src/mame/drivers/m107.cpp @@ -749,7 +749,8 @@ MACHINE_CONFIG_START(m107_state::firebarr) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("soundcpu", NEC_INPUT_LINE_INTP1)) diff --git a/src/mame/drivers/m14.cpp b/src/mame/drivers/m14.cpp index 44343dbcf14..cd0ed1eac39 100644 --- a/src/mame/drivers/m14.cpp +++ b/src/mame/drivers/m14.cpp @@ -453,7 +453,7 @@ MACHINE_CONFIG_START(m14_state::m14) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("samples", SAMPLES) MCFG_SAMPLES_CHANNELS(5) MCFG_SAMPLES_NAMES(m14_sample_names) diff --git a/src/mame/drivers/m5.cpp b/src/mame/drivers/m5.cpp index c09bd1b2f1c..716618e7f3d 100644 --- a/src/mame/drivers/m5.cpp +++ b/src/mame/drivers/m5.cpp @@ -1417,7 +1417,7 @@ MACHINE_CONFIG_START(m5_state::m5) MCFG_DEVICE_IO_MAP(fd5_io) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD(SN76489AN_TAG, SN76489A, XTAL(14'318'181)/4) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) diff --git a/src/mame/drivers/m63.cpp b/src/mame/drivers/m63.cpp index 7cfe1c8b50b..fcfbcb60b67 100644 --- a/src/mame/drivers/m63.cpp +++ b/src/mame/drivers/m63.cpp @@ -793,7 +793,7 @@ MACHINE_CONFIG_START(m63_state::m63) MCFG_VIDEO_START_OVERRIDE(m63_state,m63) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") /* ????? */ + SPEAKER(config, "mono").front_center(); /* ????? */ MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -844,7 +844,7 @@ MACHINE_CONFIG_START(m63_state::fghtbskt) MCFG_VIDEO_START_OVERRIDE(m63_state,m63) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/m72.cpp b/src/mame/drivers/m72.cpp index 5669561b5c1..4c07c3bd627 100644 --- a/src/mame/drivers/m72.cpp +++ b/src/mame/drivers/m72.cpp @@ -1856,7 +1856,7 @@ GFXDECODE_END MACHINE_CONFIG_START(m72_state::m72_audio_chips) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(WRITELINE("soundirq", rst_neg_buffer_device, rst18_w)) diff --git a/src/mame/drivers/m79amb.cpp b/src/mame/drivers/m79amb.cpp index c2145dad509..c7edd7dad09 100644 --- a/src/mame/drivers/m79amb.cpp +++ b/src/mame/drivers/m79amb.cpp @@ -210,7 +210,7 @@ MACHINE_CONFIG_START(m79amb_state::m79amb) MCFG_SCREEN_UPDATE_DRIVER(m79amb_state, screen_update_ramtek) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("discrete", DISCRETE, m79amb_discrete) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/m90.cpp b/src/mame/drivers/m90.cpp index 751c9821a0d..b0033cb30c1 100644 --- a/src/mame/drivers/m90.cpp +++ b/src/mame/drivers/m90.cpp @@ -758,7 +758,7 @@ MACHINE_CONFIG_START(m90_state::m90) MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(WRITELINE("soundirq", rst_neg_buffer_device, rst18_w)) diff --git a/src/mame/drivers/m92.cpp b/src/mame/drivers/m92.cpp index ce730d827ab..167179a6081 100644 --- a/src/mame/drivers/m92.cpp +++ b/src/mame/drivers/m92.cpp @@ -927,7 +927,7 @@ MACHINE_CONFIG_START(m92_state::m92) MCFG_VIDEO_START_OVERRIDE(m92_state,m92) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("soundcpu", NEC_INPUT_LINE_INTP1)) diff --git a/src/mame/drivers/mac.cpp b/src/mame/drivers/mac.cpp index 908b0c6ae96..cb7ca14edc3 100644 --- a/src/mame/drivers/mac.cpp +++ b/src/mame/drivers/mac.cpp @@ -955,7 +955,7 @@ MACHINE_CONFIG_START(mac_state::mac512ke) MCFG_TIMER_DRIVER_ADD_SCANLINE("scantimer", mac_state, mac_scanline, "screen", 0, 1) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_8BIT_PWM, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) // 2 x ls161 MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT) @@ -1082,7 +1082,8 @@ MACHINE_CONFIG_START(mac_state::macprtb) MCFG_VIDEO_START_OVERRIDE(mac_state,macprtb) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_ASC_ADD("asc", C15M, ASC, WRITELINE(*this, mac_state, mac_asc_irq)) MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) MCFG_SOUND_ROUTE(1, "rspeaker", 1.0) @@ -1130,7 +1131,8 @@ MACHINE_CONFIG_START(mac_state::macii) MCFG_PALETTE_ADD("palette", 256) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_ASC_ADD("asc", C15M, ASC, WRITELINE(*this, mac_state, mac_asc_irq)) MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) MCFG_SOUND_ROUTE(1, "rspeaker", 1.0) @@ -1207,7 +1209,8 @@ MACHINE_CONFIG_START(mac_state::maciifx) MCFG_DEVICE_DISASSEMBLE_OVERRIDE(mac_state, mac_dasm_override) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_ASC_ADD("asc", C15M, ASC, WRITELINE(*this, mac_state, mac_asc_irq)) MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) MCFG_SOUND_ROUTE(1, "rspeaker", 1.0) @@ -1500,7 +1503,8 @@ MACHINE_CONFIG_START(mac_state::macse30) MCFG_VIDEO_START_OVERRIDE(mac_state,mac) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_ASC_ADD("asc", C15M, ASC, WRITELINE(*this, mac_state, mac_asc_irq)) MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) MCFG_SOUND_ROUTE(1, "rspeaker", 1.0) @@ -1578,7 +1582,8 @@ MACHINE_CONFIG_START(mac_state::macpb140) MCFG_VIDEO_START_OVERRIDE(mac_state,macprtb) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_ASC_ADD("asc", C15M, ASC, WRITELINE(*this, mac_state, mac_asc_irq)) MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) MCFG_SOUND_ROUTE(1, "rspeaker", 1.0) @@ -1668,7 +1673,8 @@ MACHINE_CONFIG_START(mac_state::macpb160) MCFG_VIDEO_START_OVERRIDE(mac_state,macprtb) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_ASC_ADD("asc", C15M, ASC, WRITELINE(*this, mac_state, mac_asc_irq)) MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) MCFG_SOUND_ROUTE(1, "rspeaker", 1.0) @@ -1878,7 +1884,8 @@ MACHINE_CONFIG_START(mac_state::pwrmac) MCFG_VIDEO_RESET_OVERRIDE(mac_state,macrbv) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_AWACS_ADD("awacs", 44100) MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) MCFG_SOUND_ROUTE(1, "rspeaker", 1.0) @@ -1944,7 +1951,8 @@ MACHINE_CONFIG_START(mac_state::macqd700) MCFG_PALETTE_ADD("palette", 256) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_ASC_ADD("asc", C15M, EASC, WRITELINE(*this, mac_state, mac_asc_irq)) MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) MCFG_SOUND_ROUTE(1, "rspeaker", 1.0) diff --git a/src/mame/drivers/mac128.cpp b/src/mame/drivers/mac128.cpp index 5723630b2b2..d78822eb3fd 100644 --- a/src/mame/drivers/mac128.cpp +++ b/src/mame/drivers/mac128.cpp @@ -1344,7 +1344,7 @@ MACHINE_CONFIG_START(mac128_state::mac512ke) MCFG_TIMER_DRIVER_ADD_SCANLINE("scantimer", mac128_state, mac_scanline, "screen", 0, 1) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD(DAC_TAG, DAC_8BIT_PWM, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) // 2 x ls161 MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, DAC_TAG, 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, DAC_TAG, -1.0, DAC_VREF_NEG_INPUT) diff --git a/src/mame/drivers/macpci.cpp b/src/mame/drivers/macpci.cpp index 2dfdbdf54a2..47ec05aef51 100644 --- a/src/mame/drivers/macpci.cpp +++ b/src/mame/drivers/macpci.cpp @@ -107,7 +107,8 @@ MACHINE_CONFIG_START(macpci_state::pippin) MCFG_PALETTE_ADD_MONOCHROME("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD( "cdda", CDDA ) MCFG_SOUND_ROUTE( 0, "lspeaker", 1.00 ) diff --git a/src/mame/drivers/macrossp.cpp b/src/mame/drivers/macrossp.cpp index dfa688351ca..e5699880fd3 100644 --- a/src/mame/drivers/macrossp.cpp +++ b/src/mame/drivers/macrossp.cpp @@ -567,7 +567,8 @@ MACHINE_CONFIG_START(macrossp_state::macrossp) MCFG_PALETTE_FORMAT(RGBX) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_16_ADD("soundlatch") diff --git a/src/mame/drivers/madalien.cpp b/src/mame/drivers/madalien.cpp index fd802f00054..30832523f5f 100644 --- a/src/mame/drivers/madalien.cpp +++ b/src/mame/drivers/madalien.cpp @@ -163,7 +163,7 @@ MACHINE_CONFIG_START(madalien_state::madalien) madalien_video(config); /* audio hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", 0)) // 7400 at 3A used as R/S latch diff --git a/src/mame/drivers/madmotor.cpp b/src/mame/drivers/madmotor.cpp index 094dd56f4e6..49e09c3ac4d 100644 --- a/src/mame/drivers/madmotor.cpp +++ b/src/mame/drivers/madmotor.cpp @@ -307,7 +307,7 @@ MACHINE_CONFIG_START(madmotor_state::madmotor) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", 0)) diff --git a/src/mame/drivers/magic10.cpp b/src/mame/drivers/magic10.cpp index 4cce76d668b..618c8b827bb 100644 --- a/src/mame/drivers/magic10.cpp +++ b/src/mame/drivers/magic10.cpp @@ -718,7 +718,7 @@ MACHINE_CONFIG_START(magic10_state::magic10) MCFG_GFXDECODE_ADD("gfxdecode", "palette", magic10) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, 1056000, okim6295_device::PIN7_HIGH) /* clock frequency & pin 7 not verified */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) MACHINE_CONFIG_END diff --git a/src/mame/drivers/magicard.cpp b/src/mame/drivers/magicard.cpp index 25a73efcef4..901fbb87424 100644 --- a/src/mame/drivers/magicard.cpp +++ b/src/mame/drivers/magicard.cpp @@ -1008,7 +1008,7 @@ MACHINE_CONFIG_START(magicard_state::magicard) MCFG_PALETTE_ADD("palette", 0x100) MCFG_RAMDAC_ADD("ramdac", ramdac_map, "palette") - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("saa", SAA1099, CLOCK_B) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) MACHINE_CONFIG_END diff --git a/src/mame/drivers/magicfly.cpp b/src/mame/drivers/magicfly.cpp index c6717591c4a..274cec7ef46 100644 --- a/src/mame/drivers/magicfly.cpp +++ b/src/mame/drivers/magicfly.cpp @@ -964,7 +964,7 @@ MACHINE_CONFIG_START(magicfly_state::magicfly) MCFG_MC6845_OUT_VSYNC_CB(INPUTLINE("maincpu", INPUT_LINE_NMI)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) diff --git a/src/mame/drivers/magictg.cpp b/src/mame/drivers/magictg.cpp index 4fb281d9c7b..4732daa0267 100644 --- a/src/mame/drivers/magictg.cpp +++ b/src/mame/drivers/magictg.cpp @@ -921,7 +921,8 @@ MACHINE_CONFIG_START(magictg_state::magictg) MCFG_DEVICE_DATA_MAP(adsp_data_map) MCFG_DEVICE_IO_MAP(adsp_io_map) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("dac1", DMADAC) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 1.0) diff --git a/src/mame/drivers/magmax.cpp b/src/mame/drivers/magmax.cpp index 531ad0efb8f..26e9aae5386 100644 --- a/src/mame/drivers/magmax.cpp +++ b/src/mame/drivers/magmax.cpp @@ -356,7 +356,7 @@ MACHINE_CONFIG_START(magmax_state::magmax) MCFG_PALETTE_INIT_OWNER(magmax_state, magmax) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay1", AY8910, XTAL(20'000'000)/16) /* verified on pcb */ MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(*this, magmax_state, ay8910_portA_0_w)) /*write port A*/ diff --git a/src/mame/drivers/magnum.cpp b/src/mame/drivers/magnum.cpp index cd890d2e4a6..6a9fd73d32e 100644 --- a/src/mame/drivers/magnum.cpp +++ b/src/mame/drivers/magnum.cpp @@ -314,7 +314,7 @@ MACHINE_CONFIG_START(magnum_state::magnum) MCFG_PALETTE_ADD_MONOCHROME_INVERTED("palette") - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("beep", BEEP, 500) /// frequency is guessed MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.50) MACHINE_CONFIG_END diff --git a/src/mame/drivers/magreel.cpp b/src/mame/drivers/magreel.cpp index fd1a9e01a51..f89bc91b608 100644 --- a/src/mame/drivers/magreel.cpp +++ b/src/mame/drivers/magreel.cpp @@ -140,7 +140,7 @@ MACHINE_CONFIG_START(magreel_state::magreel) // MCFG_PALETTE_INIT_OWNER(magreel_state, magreel) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MACHINE_CONFIG_END diff --git a/src/mame/drivers/mainevt.cpp b/src/mame/drivers/mainevt.cpp index 03ca77e0731..c929000b19f 100644 --- a/src/mame/drivers/mainevt.cpp +++ b/src/mame/drivers/mainevt.cpp @@ -444,7 +444,7 @@ MACHINE_CONFIG_START(mainevt_state::mainevt) MCFG_K051960_CB(mainevt_state, mainevt_sprite_callback) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -494,7 +494,7 @@ MACHINE_CONFIG_START(mainevt_state::devstors) MCFG_K051733_ADD("k051733") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/mainsnk.cpp b/src/mame/drivers/mainsnk.cpp index 7bb9db9880b..f516349cc79 100644 --- a/src/mame/drivers/mainsnk.cpp +++ b/src/mame/drivers/mainsnk.cpp @@ -399,7 +399,7 @@ MACHINE_CONFIG_START(mainsnk_state::mainsnk) MCFG_PALETTE_INIT_OWNER(mainsnk_state, mainsnk) MCFG_PALETTE_ENABLE_SHADOWS() - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) diff --git a/src/mame/drivers/majorpkr.cpp b/src/mame/drivers/majorpkr.cpp index 7c38f27a1f8..66c92c7f671 100644 --- a/src/mame/drivers/majorpkr.cpp +++ b/src/mame/drivers/majorpkr.cpp @@ -1034,7 +1034,7 @@ MACHINE_CONFIG_START(majorpkr_state::majorpkr) MCFG_MC6845_CHAR_WIDTH(16) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, OKI_CLOCK, okim6295_device::PIN7_HIGH) // clock frequency & pin 7 verified. MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) MACHINE_CONFIG_END diff --git a/src/mame/drivers/malzak.cpp b/src/mame/drivers/malzak.cpp index aab4cf86ed3..8673e5a1985 100644 --- a/src/mame/drivers/malzak.cpp +++ b/src/mame/drivers/malzak.cpp @@ -333,7 +333,7 @@ MACHINE_CONFIG_START(malzak_state::malzak) MCFG_SAA5050_SCREEN_SIZE(42, 24, 64) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("sn1", SN76477) MCFG_SN76477_NOISE_PARAMS(0, 0, 0) // noise + filter: N/C diff --git a/src/mame/drivers/manohman.cpp b/src/mame/drivers/manohman.cpp index ef720a1bf44..fdde89ac6c8 100644 --- a/src/mame/drivers/manohman.cpp +++ b/src/mame/drivers/manohman.cpp @@ -258,7 +258,7 @@ MACHINE_CONFIG_START(manohman_state::manohman) MCFG_NVRAM_ADD_NO_FILL("nvram") // KM6264BL-10 x2 + MAX696CFL + battery - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("saa", SAA1099, XTAL(8'000'000) / 2) // clock not verified MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.10) MACHINE_CONFIG_END diff --git a/src/mame/drivers/mappy.cpp b/src/mame/drivers/mappy.cpp index 2034331ba32..d4f034d68a6 100644 --- a/src/mame/drivers/mappy.cpp +++ b/src/mame/drivers/mappy.cpp @@ -1357,7 +1357,7 @@ MACHINE_CONFIG_START(mappy_state::superpac_common) MCFG_VIDEO_START_OVERRIDE(mappy_state,superpac) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("namco", NAMCO_15XX, 18432000/768) MCFG_NAMCO_AUDIO_VOICES(8) @@ -1485,7 +1485,7 @@ MACHINE_CONFIG_START(mappy_state::phozon) MCFG_VIDEO_START_OVERRIDE(mappy_state,phozon) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("namco", NAMCO_15XX, 18432000/768) MCFG_NAMCO_AUDIO_VOICES(8) @@ -1535,7 +1535,7 @@ MACHINE_CONFIG_START(mappy_state::mappy_common) MCFG_VIDEO_START_OVERRIDE(mappy_state,mappy) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("namco", NAMCO_15XX, 18432000/768) MCFG_NAMCO_AUDIO_VOICES(8) diff --git a/src/mame/drivers/marineb.cpp b/src/mame/drivers/marineb.cpp index 8017c964c69..214782dc479 100644 --- a/src/mame/drivers/marineb.cpp +++ b/src/mame/drivers/marineb.cpp @@ -566,7 +566,7 @@ MACHINE_CONFIG_START(marineb_state::marineb) MCFG_PALETTE_INIT_OWNER(marineb_state, marineb) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay1", AY8910, SOUND_CLOCK) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) MACHINE_CONFIG_END diff --git a/src/mame/drivers/marinedt.cpp b/src/mame/drivers/marinedt.cpp index 4fc03e91f0c..3fd6f987ed5 100644 --- a/src/mame/drivers/marinedt.cpp +++ b/src/mame/drivers/marinedt.cpp @@ -646,7 +646,7 @@ MACHINE_CONFIG_START(marinedt_state::marinedt) MCFG_PALETTE_INIT_OWNER(marinedt_state, marinedt) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); // MCFG_DEVICE_ADD("aysnd", AY8910, MAIN_CLOCK/4) // MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30) MACHINE_CONFIG_END diff --git a/src/mame/drivers/markham.cpp b/src/mame/drivers/markham.cpp index 3c6b50249e9..3f3d504fb88 100644 --- a/src/mame/drivers/markham.cpp +++ b/src/mame/drivers/markham.cpp @@ -207,7 +207,7 @@ MACHINE_CONFIG_START(markham_state::markham) MCFG_PALETTE_INIT_OWNER(markham_state, markham) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("sn1", SN76496, 8000000/2) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75) diff --git a/src/mame/drivers/marywu.cpp b/src/mame/drivers/marywu.cpp index 41841a766e1..ba917b4c3e2 100644 --- a/src/mame/drivers/marywu.cpp +++ b/src/mame/drivers/marywu.cpp @@ -198,7 +198,7 @@ MACHINE_CONFIG_START(marywu_state::marywu) MCFG_DEFAULT_LAYOUT(layout_marywu) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay1", AY8910, XTAL(10'738'635)) /* should it be perhaps a fraction of the XTAL clock ? */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(*this, marywu_state, ay1_port_a_w)) diff --git a/src/mame/drivers/mastboy.cpp b/src/mame/drivers/mastboy.cpp index 4d0e2ad1643..07097ccc22c 100644 --- a/src/mame/drivers/mastboy.cpp +++ b/src/mame/drivers/mastboy.cpp @@ -842,7 +842,7 @@ MACHINE_CONFIG_START(mastboy_state::mastboy) MCFG_PALETTE_ADD("palette", 0x100) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SAA1099_ADD("saa", 6000000 ) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/mastboyo.cpp b/src/mame/drivers/mastboyo.cpp index 4e816489f39..9d617a9cebd 100644 --- a/src/mame/drivers/mastboyo.cpp +++ b/src/mame/drivers/mastboyo.cpp @@ -208,7 +208,7 @@ MACHINE_CONFIG_START(mastboyo_state::mastboyo) MCFG_PALETTE_INIT_OWNER(mastboyo_state, mastboyo) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, 20_MHz_XTAL/4) MCFG_AY8910_PORT_A_READ_CB(IOPORT("IN0")) // DSW diff --git a/src/mame/drivers/matmania.cpp b/src/mame/drivers/matmania.cpp index af5941a1be5..8e54b1368f7 100644 --- a/src/mame/drivers/matmania.cpp +++ b/src/mame/drivers/matmania.cpp @@ -326,7 +326,7 @@ MACHINE_CONFIG_START(matmania_state::matmania) MCFG_PALETTE_INIT_OWNER(matmania_state, matmania) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -370,7 +370,7 @@ MACHINE_CONFIG_START(matmania_state::maniach) MCFG_PALETTE_INIT_OWNER(matmania_state, matmania) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/maxaflex.cpp b/src/mame/drivers/maxaflex.cpp index 6604e0a7ad2..1b55adaf6a8 100644 --- a/src/mame/drivers/maxaflex.cpp +++ b/src/mame/drivers/maxaflex.cpp @@ -361,7 +361,7 @@ MACHINE_CONFIG_START(maxaflex_state::maxaflex) MCFG_DEFAULT_LAYOUT(layout_maxaflex) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("pokey", POKEY, pokey_device::FREQ_17_EXACT) MCFG_POKEY_INTERRUPT_CB(maxaflex_state, interrupt_cb) diff --git a/src/mame/drivers/maygay1b.cpp b/src/mame/drivers/maygay1b.cpp index af30d4ade4f..8d3b7d09817 100644 --- a/src/mame/drivers/maygay1b.cpp +++ b/src/mame/drivers/maygay1b.cpp @@ -793,7 +793,8 @@ MACHINE_CONFIG_START(maygay1b_state::maygay_m1) MCFG_ADDRESSABLE_LATCH_Q6_OUT_CB(WRITELINE(*this, maygay1b_state, srsel_w)) // Srsel MCFG_S16LF01_ADD("vfd",0) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("aysnd", YM2149, M1_MASTER_CLOCK) MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(*this, maygay1b_state, m1_meter_w)) MCFG_AY8910_PORT_B_WRITE_CB(WRITE8(*this, maygay1b_state, m1_lockout_w)) diff --git a/src/mame/drivers/maygayep.cpp b/src/mame/drivers/maygayep.cpp index 5f1d9de6496..4f0580be455 100644 --- a/src/mame/drivers/maygayep.cpp +++ b/src/mame/drivers/maygayep.cpp @@ -110,7 +110,7 @@ MACHINE_CONFIG_START(maygayep_state::maygayep) MCFG_DEVICE_ADD("maincpu", H83002, 16000000 ) MCFG_DEVICE_PROGRAM_MAP( maygayep_map ) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymz", YMZ280B, 10000000 ) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/maygayv1.cpp b/src/mame/drivers/maygayv1.cpp index c34b853ae87..b9e08f87cb0 100644 --- a/src/mame/drivers/maygayv1.cpp +++ b/src/mame/drivers/maygayv1.cpp @@ -909,7 +909,7 @@ MACHINE_CONFIG_START(maygayv1_state::maygayv1) MCFG_I8279_OUT_DISP_CB(WRITE8(*this, maygayv1_state, lamp_data_w)) // display A&B MCFG_I8279_IN_RL_CB(READ8(*this, maygayv1_state, kbd_r)) // kbd RL lines - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd",YM2413, MASTER_CLOCK / 4) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.8) diff --git a/src/mame/drivers/mazerbla.cpp b/src/mame/drivers/mazerbla.cpp index 376535cb5ef..b80486da48e 100644 --- a/src/mame/drivers/mazerbla.cpp +++ b/src/mame/drivers/mazerbla.cpp @@ -1046,7 +1046,7 @@ MACHINE_CONFIG_START(mazerbla_state::greatgun) MCFG_PALETTE_INIT_OWNER(mazerbla_state, mazerbla) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay1", AY8910, SOUND_CLOCK / 8) MCFG_AY8910_PORT_B_READ_CB(READ8("soundlatch", generic_latch_8_device, read)) diff --git a/src/mame/drivers/mbc200.cpp b/src/mame/drivers/mbc200.cpp index a301b8fa359..ee03ea7655e 100644 --- a/src/mame/drivers/mbc200.cpp +++ b/src/mame/drivers/mbc200.cpp @@ -326,7 +326,7 @@ MACHINE_CONFIG_START(mbc200_state::mbc200) MCFG_MC6845_UPDATE_ROW_CB(mbc200_state, update_row) // sound - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, 1000) // frequency unknown MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) diff --git a/src/mame/drivers/mbc55x.cpp b/src/mame/drivers/mbc55x.cpp index dd556833ea3..94c88f3fbc3 100644 --- a/src/mame/drivers/mbc55x.cpp +++ b/src/mame/drivers/mbc55x.cpp @@ -264,9 +264,8 @@ MACHINE_CONFIG_START(mbc55x_state::mbc55x) MCFG_RAM_EXTRA_OPTIONS("128K,192K,256K,320K,384K,448K,512K,576K,640K") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO(MONO_TAG) - MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) - MCFG_SOUND_ROUTE(ALL_OUTPUTS,MONO_TAG, 0.75) + SPEAKER(config, MONO_TAG).front_center(); + SPEAKER_SOUND(config, "speaker").add_route(ALL_OUTPUTS, MONO_TAG, 0.75); /* Devices */ MCFG_DEVICE_ADD(I8251A_KB_TAG, I8251, 0) diff --git a/src/mame/drivers/mbee.cpp b/src/mame/drivers/mbee.cpp index 9b27b908743..003d0a098b9 100644 --- a/src/mame/drivers/mbee.cpp +++ b/src/mame/drivers/mbee.cpp @@ -676,7 +676,7 @@ MACHINE_CONFIG_START(mbee_state::mbee) MCFG_VIDEO_START_OVERRIDE(mbee_state, mono) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.05) MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) @@ -735,7 +735,7 @@ MACHINE_CONFIG_START(mbee_state::mbeeic) MCFG_VIDEO_START_OVERRIDE(mbee_state, standard) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.05) MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) diff --git a/src/mame/drivers/mc10.cpp b/src/mame/drivers/mc10.cpp index 5b99ee313c0..cc9965e7bd8 100644 --- a/src/mame/drivers/mc10.cpp +++ b/src/mame/drivers/mc10.cpp @@ -522,7 +522,7 @@ MACHINE_CONFIG_START(mc10_state::mc10) MCFG_MC6847_INPUT_CALLBACK(READ8(*this, mc10_state, mc6847_videoram_r)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.0625) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) @@ -564,7 +564,7 @@ MACHINE_CONFIG_START(mc10_state::alice32) MCFG_TIMER_DRIVER_ADD_SCANLINE("alice32_sl", mc10_state, alice32_scanline, "screen", 0, 10) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.0625) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) diff --git a/src/mame/drivers/mc1000.cpp b/src/mame/drivers/mc1000.cpp index de828400681..508dc493225 100644 --- a/src/mame/drivers/mc1000.cpp +++ b/src/mame/drivers/mc1000.cpp @@ -564,7 +564,7 @@ MACHINE_CONFIG_START(mc1000_state::mc1000) MCFG_MC6847_INPUT_CALLBACK(READ8(*this, mc1000_state, videoram_r)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD(AY8910_TAG, AY8910, 3579545/2) MCFG_AY8910_OUTPUT_TYPE(AY8910_SINGLE_OUTPUT) MCFG_AY8910_RES_LOADS(RES_K(2.2), 0, 0) diff --git a/src/mame/drivers/mc1502.cpp b/src/mame/drivers/mc1502.cpp index 8129735299c..5034a49bc4d 100644 --- a/src/mame/drivers/mc1502.cpp +++ b/src/mame/drivers/mc1502.cpp @@ -296,7 +296,7 @@ MACHINE_CONFIG_START(mc1502_state::mc1502) MCFG_DEVICE_ADD("isa1", ISA8_SLOT, 0, "isa", mc1502_isa8_cards, "fdc", false) MCFG_DEVICE_ADD("isa2", ISA8_SLOT, 0, "isa", mc1502_isa8_cards, "rom", false) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80) diff --git a/src/mame/drivers/mcatadv.cpp b/src/mame/drivers/mcatadv.cpp index 3d8c2c81420..a8cbce60fda 100644 --- a/src/mame/drivers/mcatadv.cpp +++ b/src/mame/drivers/mcatadv.cpp @@ -465,7 +465,7 @@ MACHINE_CONFIG_START(mcatadv_state::mcatadv) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("soundcpu", INPUT_LINE_NMI)) diff --git a/src/mame/drivers/mcr.cpp b/src/mame/drivers/mcr.cpp index 790c4fd12e8..16f166aed71 100644 --- a/src/mame/drivers/mcr.cpp +++ b/src/mame/drivers/mcr.cpp @@ -1782,7 +1782,8 @@ MACHINE_CONFIG_START(mcr_state::mcr_90009) MCFG_PALETTE_FORMAT(xxxxRRRRBBBBGGGG) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ssio", MIDWAY_SSIO) MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) MCFG_SOUND_ROUTE(1, "rspeaker", 1.0) diff --git a/src/mame/drivers/mcr3.cpp b/src/mame/drivers/mcr3.cpp index ac2ab174d01..a735c98fea6 100644 --- a/src/mame/drivers/mcr3.cpp +++ b/src/mame/drivers/mcr3.cpp @@ -1097,7 +1097,8 @@ MACHINE_CONFIG_START(mcr3_state::mcrmono) MCFG_NVRAM_ADD_0FILL("nvram") // sound hardware - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); /* video hardware */ MCFG_SCREEN_ADD("screen", RASTER) diff --git a/src/mame/drivers/mcr68.cpp b/src/mame/drivers/mcr68.cpp index 773e8a88a9d..1d0ef70164a 100644 --- a/src/mame/drivers/mcr68.cpp +++ b/src/mame/drivers/mcr68.cpp @@ -927,7 +927,7 @@ MACHINE_CONFIG_START(mcr68_state::mcr68) MCFG_VIDEO_START_OVERRIDE(mcr68_state,mcr68) /* sound hardware -- determined by specific machine */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MACHINE_CONFIG_END diff --git a/src/mame/drivers/meadows.cpp b/src/mame/drivers/meadows.cpp index 739e8eb7aef..d6fb5580a37 100644 --- a/src/mame/drivers/meadows.cpp +++ b/src/mame/drivers/meadows.cpp @@ -646,7 +646,7 @@ MACHINE_CONFIG_START(meadows_state::meadows) MCFG_PALETTE_ADD_MONOCHROME("palette") /* audio hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) // unknown DAC MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT) @@ -707,7 +707,7 @@ MACHINE_CONFIG_START(meadows_state::bowl3d) MCFG_PALETTE_ADD_MONOCHROME("palette") /* audio hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) // unknown DAC MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT) diff --git a/src/mame/drivers/mediagx.cpp b/src/mame/drivers/mediagx.cpp index 49c5a76201d..7c0a115c3a2 100644 --- a/src/mame/drivers/mediagx.cpp +++ b/src/mame/drivers/mediagx.cpp @@ -912,7 +912,8 @@ MACHINE_CONFIG_START(mediagx_state::mediagx) MCFG_PALETTE_ADD("palette", 256) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("dac1", DMADAC) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 1.0) diff --git a/src/mame/drivers/megasys1.cpp b/src/mame/drivers/megasys1.cpp index 9f280acf1f5..a0efc824159 100644 --- a/src/mame/drivers/megasys1.cpp +++ b/src/mame/drivers/megasys1.cpp @@ -1716,7 +1716,8 @@ MACHINE_CONFIG_START(megasys1_state::system_A) MCFG_MEGASYS1_TILEMAP_ADD("scroll2", "palette", 256*2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_16_ADD("soundlatch") MCFG_GENERIC_LATCH_16_ADD("soundlatch2") @@ -1820,7 +1821,8 @@ MACHINE_CONFIG_START(megasys1_state::system_Bbl) MCFG_MEGASYS1_TILEMAP_ADD("scroll2", "palette", 256*2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); /* just the one OKI, used for sound and music */ MCFG_DEVICE_ADD("oki1", OKIM6295, OKI4_SOUND_CLOCK, okim6295_device::PIN7_HIGH) @@ -1898,7 +1900,7 @@ MACHINE_CONFIG_START(megasys1_state::system_D) MCFG_MEGASYS1_TILEMAP_ADD("scroll1", "palette", 256*1) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki1", OKIM6295, SYS_D_CPU_CLOCK/4, okim6295_device::PIN7_HIGH) /* 2MHz (8MHz / 4) */ MCFG_DEVICE_ADDRESS_MAP(0, megasys1D_oki_map) @@ -1949,7 +1951,7 @@ MACHINE_CONFIG_START(megasys1_state::system_Z) MCFG_MEGASYS1_TILEMAP_ADD("scroll1", "palette", 256*2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch_z") diff --git a/src/mame/drivers/megazone.cpp b/src/mame/drivers/megazone.cpp index c791ac102e7..d60f1c11834 100644 --- a/src/mame/drivers/megazone.cpp +++ b/src/mame/drivers/megazone.cpp @@ -340,7 +340,7 @@ MACHINE_CONFIG_START(megazone_state::megazone) MCFG_PALETTE_INIT_OWNER(megazone_state, megazone) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/meijinsn.cpp b/src/mame/drivers/meijinsn.cpp index 0c2c8a634b9..c8cc3560a30 100644 --- a/src/mame/drivers/meijinsn.cpp +++ b/src/mame/drivers/meijinsn.cpp @@ -384,7 +384,7 @@ MACHINE_CONFIG_START(meijinsn_state::meijinsn) MCFG_PALETTE_INIT_OWNER(meijinsn_state, meijinsn) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/mekd2.cpp b/src/mame/drivers/mekd2.cpp index 5d3716a4fd7..0efda01cc51 100644 --- a/src/mame/drivers/mekd2.cpp +++ b/src/mame/drivers/mekd2.cpp @@ -381,7 +381,7 @@ MACHINE_CONFIG_START(mekd2_state::mekd2) MCFG_DEFAULT_LAYOUT(layout_mekd2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mame/drivers/mephisto.cpp b/src/mame/drivers/mephisto.cpp index 7e48c098c56..26787254d5b 100644 --- a/src/mame/drivers/mephisto.cpp +++ b/src/mame/drivers/mephisto.cpp @@ -312,7 +312,7 @@ MACHINE_CONFIG_START(mephisto_state::mephisto) MCFG_ADDRESSABLE_LATCH_Q7_OUT_CB(WRITELINE(*this, mephisto_state, write_led7)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, 3250) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/mephisto_montec.cpp b/src/mame/drivers/mephisto_montec.cpp index 021b73a34b6..fbb8a7777d8 100644 --- a/src/mame/drivers/mephisto_montec.cpp +++ b/src/mame/drivers/mephisto_montec.cpp @@ -461,7 +461,7 @@ MACHINE_CONFIG_START(mephisto_montec_state::montec) MCFG_NVRAM_ADD_0FILL("nvram") - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, 3250) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/mephistp.cpp b/src/mame/drivers/mephistp.cpp index c5508529d3a..d33e51acf15 100644 --- a/src/mame/drivers/mephistp.cpp +++ b/src/mame/drivers/mephistp.cpp @@ -184,7 +184,7 @@ MACHINE_CONFIG_START(mephisto_pinball_state::mephisto) MCFG_MCS51_PORT_P3_OUT_CB(WRITE8(*this, mephisto_pinball_state, t0_t1_w)) MCFG_MCS51_SERIAL_RX_CB(NOOP) // from MUART - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, XTAL(12'000'000)/8) MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(*this, mephisto_pinball_state, ay8910_columns_w)) diff --git a/src/mame/drivers/merit.cpp b/src/mame/drivers/merit.cpp index 75a0a48cee1..978392d4461 100644 --- a/src/mame/drivers/merit.cpp +++ b/src/mame/drivers/merit.cpp @@ -1425,7 +1425,7 @@ MACHINE_CONFIG_START(merit_state::pitboss) MCFG_MC6845_OUT_VSYNC_CB(INPUTLINE("maincpu", 0)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8912, CRTC_CLOCK) MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(*this, merit_state, led2_w)) diff --git a/src/mame/drivers/meritm.cpp b/src/mame/drivers/meritm.cpp index e15812c78e3..d028b1423c0 100644 --- a/src/mame/drivers/meritm.cpp +++ b/src/mame/drivers/meritm.cpp @@ -1144,7 +1144,7 @@ MACHINE_CONFIG_START(meritm_state::meritm_crt250) MCFG_SCREEN_UPDATE_DRIVER(meritm_state, screen_update_meritm) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8930, SYSTEM_CLK/12) MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW")) /* Port A read */ MCFG_AY8910_PORT_B_WRITE_CB(WRITE8(*this, meritm_state, meritm_ay8930_port_b_w)) /* Port B write */ diff --git a/src/mame/drivers/mermaid.cpp b/src/mame/drivers/mermaid.cpp index dca2f08d22e..8d659cefc9b 100644 --- a/src/mame/drivers/mermaid.cpp +++ b/src/mame/drivers/mermaid.cpp @@ -456,7 +456,7 @@ MACHINE_CONFIG_START(mermaid_state::mermaid) MCFG_PALETTE_INIT_OWNER(mermaid_state, mermaid) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay1", AY8910, 1500000) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mame/drivers/metlclsh.cpp b/src/mame/drivers/metlclsh.cpp index 108dec22e54..70260960bc8 100644 --- a/src/mame/drivers/metlclsh.cpp +++ b/src/mame/drivers/metlclsh.cpp @@ -301,7 +301,7 @@ MACHINE_CONFIG_START(metlclsh_state::metlclsh) MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ym1", YM2203, 1500000) MCFG_SOUND_ROUTE(0, "mono", 0.10) diff --git a/src/mame/drivers/metlfrzr.cpp b/src/mame/drivers/metlfrzr.cpp index 33bb0bde88c..86e8c8110a4 100644 --- a/src/mame/drivers/metlfrzr.cpp +++ b/src/mame/drivers/metlfrzr.cpp @@ -388,7 +388,7 @@ MACHINE_CONFIG_START(metlfrzr_state::metlfrzr) MCFG_SCREEN_PALETTE("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2151, XTAL(14'318'181) / 4) /* 3.579545 MHz */ MCFG_YM2151_IRQ_HANDLER(WRITELINE("t5182", t5182_device, ym2151_irq_handler)) diff --git a/src/mame/drivers/metro.cpp b/src/mame/drivers/metro.cpp index 85af7a5fd57..4ad6cf79c7b 100644 --- a/src/mame/drivers/metro.cpp +++ b/src/mame/drivers/metro.cpp @@ -3160,7 +3160,7 @@ MACHINE_CONFIG_START(metro_state::msgogo) MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, metro_state, metro_vblank_irq)) // timing is off, shaking sprites in intro /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymf", YMF278B, YMF278B_STD_CLOCK) MCFG_DEVICE_ADDRESS_MAP(0, ymf278_map) @@ -3254,7 +3254,7 @@ MACHINE_CONFIG_START(metro_state::daitorid) MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, metro_state, metro_vblank_irq)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -3294,7 +3294,7 @@ MACHINE_CONFIG_START(metro_state::dharma) MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, metro_state, metro_vblank_irq)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -3321,7 +3321,7 @@ MACHINE_CONFIG_START(metro_state::karatour) MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, metro_state, karatour_vblank_irq)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -3349,7 +3349,7 @@ MACHINE_CONFIG_START(metro_state::sankokushi) MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, metro_state, karatour_vblank_irq)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -3377,7 +3377,7 @@ MACHINE_CONFIG_START(metro_state::lastfort) MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, metro_state, metro_vblank_irq)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -3403,7 +3403,7 @@ MACHINE_CONFIG_START(metro_state::lastforg) MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, metro_state, karatour_vblank_irq)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -3428,7 +3428,7 @@ MACHINE_CONFIG_START(metro_state::dokyusei) MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, metro_state, metro_vblank_irq)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, 1056000, okim6295_device::PIN7_HIGH) // clock frequency & pin 7 not verified MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) @@ -3455,7 +3455,7 @@ MACHINE_CONFIG_START(metro_state::dokyusp) MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, metro_state, metro_vblank_irq)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, 2112000, okim6295_device::PIN7_HIGH) // clock frequency & pin 7 not verified MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) @@ -3483,7 +3483,7 @@ MACHINE_CONFIG_START(metro_state::gakusai) MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, metro_state, metro_vblank_irq)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, 2112000, okim6295_device::PIN7_HIGH) // clock frequency & pin 7 not verified MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) @@ -3512,7 +3512,7 @@ MACHINE_CONFIG_START(metro_state::gakusai2) MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, metro_state, metro_vblank_irq)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, 2112000, okim6295_device::PIN7_HIGH) // clock frequency & pin 7 not verified MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) @@ -3538,7 +3538,7 @@ MACHINE_CONFIG_START(metro_state::pangpoms) MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, metro_state, metro_vblank_irq)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -3566,7 +3566,7 @@ MACHINE_CONFIG_START(metro_state::poitto) MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, metro_state, metro_vblank_irq)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -3594,7 +3594,7 @@ MACHINE_CONFIG_START(metro_state::pururun) MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, metro_state, metro_vblank_irq)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -3622,7 +3622,7 @@ MACHINE_CONFIG_START(metro_state::skyalert) MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, metro_state, metro_vblank_irq)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -3650,7 +3650,7 @@ MACHINE_CONFIG_START(metro_state::toride2g) MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, metro_state, metro_vblank_irq)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -3678,7 +3678,7 @@ MACHINE_CONFIG_START(metro_state::mouja) MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, metro_state, metro_vblank_irq)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, 16_MHz_XTAL/1024*132, okim6295_device::PIN7_HIGH) // clock frequency & pin 7 not verified MCFG_DEVICE_ADDRESS_MAP(0, mouja_okimap) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) @@ -3706,7 +3706,7 @@ MACHINE_CONFIG_START(metro_state::vmetal) MCFG_I4100_TILEMAP_YOFFSETS(-16,-16,-16) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, 1_MHz_XTAL, okim6295_device::PIN7_HIGH) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) @@ -3757,7 +3757,8 @@ MACHINE_CONFIG_START(metro_state::blzntrnd) /* sound hardware */ // HUM-002 PCB Configuration : Stereo output with second speaker connector - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) @@ -3784,7 +3785,7 @@ MACHINE_CONFIG_START(metro_state::gstrik2) // HUM-003 PCB Configuration : Mono output only MCFG_DEVICE_REMOVE("lspeaker") MCFG_DEVICE_REMOVE("rspeaker") - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_REPLACE("ymsnd", YM2610, 16_MHz_XTAL/2) MCFG_YM2610_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) @@ -3816,7 +3817,7 @@ MACHINE_CONFIG_START(metro_state::puzzlet) MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, metro_state, puzzlet_vblank_irq)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, 20_MHz_XTAL/5, okim6295_device::PIN7_LOW) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/mexico86.cpp b/src/mame/drivers/mexico86.cpp index 4c50e6bcc14..b50c770ec6f 100644 --- a/src/mame/drivers/mexico86.cpp +++ b/src/mame/drivers/mexico86.cpp @@ -460,7 +460,7 @@ MACHINE_CONFIG_START(mexico86_state::mexico86) MCFG_PALETTE_ADD_RRRRGGGGBBBB_PROMS("palette", "proms", 256) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2203, 3000000) MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW0")) diff --git a/src/mame/drivers/meyc8080.cpp b/src/mame/drivers/meyc8080.cpp index 55d86691364..9a9dc907874 100644 --- a/src/mame/drivers/meyc8080.cpp +++ b/src/mame/drivers/meyc8080.cpp @@ -599,7 +599,7 @@ MACHINE_CONFIG_START(meyc8080_state::meyc8080) MCFG_SCREEN_UPDATE_DRIVER(meyc8080_state, screen_update_meyc8080) /* audio hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_2BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.66) // unknown DAC MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT) diff --git a/src/mame/drivers/meyc8088.cpp b/src/mame/drivers/meyc8088.cpp index 50f9bb3985f..7e0bc79ddbd 100644 --- a/src/mame/drivers/meyc8088.cpp +++ b/src/mame/drivers/meyc8088.cpp @@ -382,7 +382,7 @@ MACHINE_CONFIG_START(meyc8088_state::meyc8088) MCFG_PALETTE_INIT_OWNER(meyc8088_state, meyc8088) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) diff --git a/src/mame/drivers/mgavegas.cpp b/src/mame/drivers/mgavegas.cpp index 838c5124b14..b85f8b7dac4 100644 --- a/src/mame/drivers/mgavegas.cpp +++ b/src/mame/drivers/mgavegas.cpp @@ -602,7 +602,7 @@ MACHINE_CONFIG_START(mgavegas_state::mgavegas) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, AY_CLK) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.3) MCFG_AY8910_PORT_A_READ_CB(READ8(*this, mgavegas_state, ay8910_a_r)) diff --git a/src/mame/drivers/mhavoc.cpp b/src/mame/drivers/mhavoc.cpp index fa69a69df31..b55767ee06b 100644 --- a/src/mame/drivers/mhavoc.cpp +++ b/src/mame/drivers/mhavoc.cpp @@ -556,7 +556,7 @@ MACHINE_CONFIG_START(mhavoc_state::mhavoc) MCFG_AVGDVG_VECTOR("vector") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); /* FIXME: Outputs 1,2,3 are tied together * This signal and Output 4 are processed separately. diff --git a/src/mame/drivers/micro3d.cpp b/src/mame/drivers/micro3d.cpp index 516274617f2..733cdae9255 100644 --- a/src/mame/drivers/micro3d.cpp +++ b/src/mame/drivers/micro3d.cpp @@ -378,7 +378,8 @@ MACHINE_CONFIG_START(micro3d_state::micro3d) MCFG_ADC0844_CH1_CB(IOPORT("THROTTLE")) MCFG_ADC0844_CH2_CB(READ8(*this, micro3d_state, adc_volume_r)) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); UPD7759(config, m_upd7759) .add_route(ALL_OUTPUTS, "lspeaker", 0.35) diff --git a/src/mame/drivers/micronic.cpp b/src/mame/drivers/micronic.cpp index bfa5c494cc8..14fc4ae2352 100644 --- a/src/mame/drivers/micronic.cpp +++ b/src/mame/drivers/micronic.cpp @@ -372,7 +372,7 @@ MACHINE_CONFIG_START(micronic_state::micronic) MCFG_DEVICE_ADD(HD61830_TAG, HD61830, XTAL(4'915'200)/2/2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO( "mono" ) + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD( "beeper", BEEP, 0 ) MCFG_SOUND_ROUTE( ALL_OUTPUTS, "mono", 1.00 ) diff --git a/src/mame/drivers/micropin.cpp b/src/mame/drivers/micropin.cpp index 0d4ac2c7e72..18fbd983932 100644 --- a/src/mame/drivers/micropin.cpp +++ b/src/mame/drivers/micropin.cpp @@ -308,7 +308,7 @@ MACHINE_CONFIG_START(micropin_state::micropin) /* Sound */ genpin_audio(config); - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, 387) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/microtan.cpp b/src/mame/drivers/microtan.cpp index c1847759071..218cf79c733 100644 --- a/src/mame/drivers/microtan.cpp +++ b/src/mame/drivers/microtan.cpp @@ -231,7 +231,7 @@ MACHINE_CONFIG_START(microtan_state::microtan) MCFG_PALETTE_ADD_MONOCHROME("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) MCFG_DEVICE_ADD("ay8910.1", AY8910, 1000000) diff --git a/src/mame/drivers/microvsn.cpp b/src/mame/drivers/microvsn.cpp index 245864f2280..e891a1d23bf 100644 --- a/src/mame/drivers/microvsn.cpp +++ b/src/mame/drivers/microvsn.cpp @@ -667,7 +667,7 @@ MACHINE_CONFIG_START(microvision_state::microvision) MCFG_DEFAULT_LAYOUT(layout_lcd) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_2BIT_BINARY_WEIGHTED_ONES_COMPLEMENT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) // unknown DAC MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT) diff --git a/src/mame/drivers/midas.cpp b/src/mame/drivers/midas.cpp index b2f80e648a3..3e1ab396c45 100644 --- a/src/mame/drivers/midas.cpp +++ b/src/mame/drivers/midas.cpp @@ -650,7 +650,8 @@ MACHINE_CONFIG_START(midas_state::livequiz) MCFG_PALETTE_FORMAT(XRGB) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymz", YMZ280B, XTAL(16'934'400)) MCFG_SOUND_ROUTE(0, "lspeaker", 0.80) MCFG_SOUND_ROUTE(1, "rspeaker", 0.80) @@ -683,7 +684,8 @@ MACHINE_CONFIG_START(midas_state::hammer) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymz", YMZ280B, XTAL(16'934'400)) MCFG_SOUND_ROUTE(0, "lspeaker", 0.80) MCFG_SOUND_ROUTE(1, "rspeaker", 0.80) diff --git a/src/mame/drivers/midtunit.cpp b/src/mame/drivers/midtunit.cpp index 67a51269282..a3c874e96fc 100644 --- a/src/mame/drivers/midtunit.cpp +++ b/src/mame/drivers/midtunit.cpp @@ -626,7 +626,7 @@ MACHINE_CONFIG_START(midtunit_state::tunit_adpcm) tunit_core(config); /* basic machine hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("adpcm", WILLIAMS_ADPCM_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 1.0) MACHINE_CONFIG_END diff --git a/src/mame/drivers/midyunit.cpp b/src/mame/drivers/midyunit.cpp index ba1ac08d07a..09730b3803b 100644 --- a/src/mame/drivers/midyunit.cpp +++ b/src/mame/drivers/midyunit.cpp @@ -1127,7 +1127,8 @@ MACHINE_CONFIG_START(midyunit_state::zunit) MCFG_VIDEO_START_OVERRIDE(midyunit_state,midzunit) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("narcsnd", WILLIAMS_NARC_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 1.0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 1.0) @@ -1168,7 +1169,7 @@ MACHINE_CONFIG_START(midyunit_state::yunit_core) MCFG_SCREEN_PALETTE("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MACHINE_CONFIG_END diff --git a/src/mame/drivers/mikie.cpp b/src/mame/drivers/mikie.cpp index 1fc6df3e2ea..bbc402c6de4 100644 --- a/src/mame/drivers/mikie.cpp +++ b/src/mame/drivers/mikie.cpp @@ -293,7 +293,7 @@ MACHINE_CONFIG_START(mikie_state::mikie) MCFG_PALETTE_INIT_OWNER(mikie_state, mikie) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/mikro80.cpp b/src/mame/drivers/mikro80.cpp index 326ca3c52a6..117ef167a9d 100644 --- a/src/mame/drivers/mikro80.cpp +++ b/src/mame/drivers/mikro80.cpp @@ -187,7 +187,7 @@ MACHINE_CONFIG_START(mikro80_state::mikro80) MCFG_GFXDECODE_ADD("gfxdecode", "palette", mikro80) MCFG_PALETTE_ADD_MONOCHROME("palette") - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) diff --git a/src/mame/drivers/mikrosha.cpp b/src/mame/drivers/mikrosha.cpp index aa006ad2de1..accb19619fc 100644 --- a/src/mame/drivers/mikrosha.cpp +++ b/src/mame/drivers/mikrosha.cpp @@ -244,7 +244,7 @@ MACHINE_CONFIG_START(mikrosha_state::mikrosha) MCFG_PALETTE_ADD("palette", 3) MCFG_PALETTE_INIT_OWNER(mikrosha_state,radio86) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mame/drivers/mil4000.cpp b/src/mame/drivers/mil4000.cpp index b9d12248c1c..46eb7739357 100644 --- a/src/mame/drivers/mil4000.cpp +++ b/src/mame/drivers/mil4000.cpp @@ -580,7 +580,7 @@ MACHINE_CONFIG_START(mil4000_state::mil4000) MCFG_GFXDECODE_ADD("gfxdecode", "palette", mil4000) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, 1000000, okim6295_device::PIN7_HIGH) // frequency from 1000 kHz resonator. pin 7 high not verified. MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) MACHINE_CONFIG_END diff --git a/src/mame/drivers/milton6805.cpp b/src/mame/drivers/milton6805.cpp index d0e0c7750b9..30bf556dffe 100644 --- a/src/mame/drivers/milton6805.cpp +++ b/src/mame/drivers/milton6805.cpp @@ -127,7 +127,7 @@ MACHINE_CONFIG_START(milton_state::milton) MCFG_DEVICE_ADD("grom4", TMC0430, 3120000 / 8) downcast(*device).set_region_and_ident("groms", 0x2000, 1); - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("sp0250", SP0250, 3120000) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 1.0) MACHINE_CONFIG_END diff --git a/src/mame/drivers/mini2440.cpp b/src/mame/drivers/mini2440.cpp index efc38f87cee..b87efc3f9da 100644 --- a/src/mame/drivers/mini2440.cpp +++ b/src/mame/drivers/mini2440.cpp @@ -237,7 +237,8 @@ MACHINE_CONFIG_START(mini2440_state::mini2440) MCFG_SCREEN_UPDATE_DEVICE("s3c2440", s3c2440_device, screen_update) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ldac", UDA1341TS, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 1.0) // uda1341ts.u12 MCFG_DEVICE_ADD("rdac", UDA1341TS, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 1.0) // uda1341ts.u12 MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) diff --git a/src/mame/drivers/miniboy7.cpp b/src/mame/drivers/miniboy7.cpp index 643928b3dd8..1714e3a9888 100644 --- a/src/mame/drivers/miniboy7.cpp +++ b/src/mame/drivers/miniboy7.cpp @@ -539,7 +539,7 @@ MACHINE_CONFIG_START(miniboy7_state::miniboy7) MCFG_MC6845_OUT_VSYNC_CB(WRITELINE("pia0", pia6821_device, ca1_w)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay8910", AY8910, MASTER_CLOCK / 8) /* guess */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75) MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(*this, miniboy7_state, ay_pa_w)) diff --git a/src/mame/drivers/mirage.cpp b/src/mame/drivers/mirage.cpp index bb7b3682ca7..cc63251c686 100644 --- a/src/mame/drivers/mirage.cpp +++ b/src/mame/drivers/mirage.cpp @@ -334,7 +334,7 @@ MACHINE_CONFIG_START(miragemj_state::mirage) MCFG_DECO_SPRITE_GFXDECODE("gfxdecode") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki_bgm", OKIM6295, 2000000, okim6295_device::PIN7_HIGH) // clock frequency & pin 7 not verified MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30) diff --git a/src/mame/drivers/mirax.cpp b/src/mame/drivers/mirax.cpp index 1673dd61493..22fa17d4bc7 100644 --- a/src/mame/drivers/mirax.cpp +++ b/src/mame/drivers/mirax.cpp @@ -509,7 +509,7 @@ MACHINE_CONFIG_START(mirax_state::mirax) MCFG_PALETTE_INIT_OWNER(mirax_state, mirax) MCFG_GFXDECODE_ADD("gfxdecode", "palette", mirax) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/missb2.cpp b/src/mame/drivers/missb2.cpp index 080d63f5f19..d075492a178 100644 --- a/src/mame/drivers/missb2.cpp +++ b/src/mame/drivers/missb2.cpp @@ -502,7 +502,7 @@ MACHINE_CONFIG_START(missb2_state::missb2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_INPUT_MERGER_ALL_HIGH("soundnmi") MCFG_INPUT_MERGER_OUTPUT_HANDLER(INPUTLINE("audiocpu", INPUT_LINE_NMI)) diff --git a/src/mame/drivers/missile.cpp b/src/mame/drivers/missile.cpp index 5a9064e506b..fc8fcd1fd26 100644 --- a/src/mame/drivers/missile.cpp +++ b/src/mame/drivers/missile.cpp @@ -1159,7 +1159,7 @@ MACHINE_CONFIG_START(missile_state::missile) MCFG_SCREEN_PALETTE("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("pokey", POKEY, MASTER_CLOCK/8) MCFG_POKEY_ALLPOT_R_CB(IOPORT("R8")) diff --git a/src/mame/drivers/mitchell.cpp b/src/mame/drivers/mitchell.cpp index 52399b41ec0..10a2fe9431c 100644 --- a/src/mame/drivers/mitchell.cpp +++ b/src/mame/drivers/mitchell.cpp @@ -1191,7 +1191,7 @@ MACHINE_CONFIG_START(mitchell_state::mgakuen) MCFG_VIDEO_START_OVERRIDE(mitchell_state,pang) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, XTAL(16'000'000)/16, okim6295_device::PIN7_HIGH) /* probably same clock as the other mitchell hardware games */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) @@ -1232,7 +1232,7 @@ MACHINE_CONFIG_START(mitchell_state::pang) MCFG_VIDEO_START_OVERRIDE(mitchell_state,pang) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, XTAL(16'000'000)/16, okim6295_device::PIN7_HIGH) /* verified on pcb */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30) @@ -1350,7 +1350,7 @@ MACHINE_CONFIG_START(mitchell_state::mstworld) MCFG_VIDEO_START_OVERRIDE(mitchell_state,pang) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -1387,7 +1387,7 @@ MACHINE_CONFIG_START(mitchell_state::marukin) MCFG_VIDEO_START_OVERRIDE(mitchell_state,pang) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, XTAL(16'000'000)/16, okim6295_device::PIN7_HIGH) /* verified on pcb */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30) @@ -1442,7 +1442,7 @@ MACHINE_CONFIG_START(mitchell_state::pkladiesbl) MCFG_VIDEO_START_OVERRIDE(mitchell_state,pang) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, XTAL(16'000'000)/16, okim6295_device::PIN7_HIGH) /* It should be a OKIM5205 with a 384khz resonator */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/mjkjidai.cpp b/src/mame/drivers/mjkjidai.cpp index 9055b4d093b..2eefdc583e8 100644 --- a/src/mame/drivers/mjkjidai.cpp +++ b/src/mame/drivers/mjkjidai.cpp @@ -330,7 +330,7 @@ MACHINE_CONFIG_START(mjkjidai_state::mjkjidai) MCFG_PALETTE_ADD_RRRRGGGGBBBB_PROMS("palette", "proms", 0x100) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("sn1", SN76489, 10000000/4) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/mjsenpu.cpp b/src/mame/drivers/mjsenpu.cpp index 5ec0dba7d5c..d9f4cfaa32c 100644 --- a/src/mame/drivers/mjsenpu.cpp +++ b/src/mame/drivers/mjsenpu.cpp @@ -483,7 +483,7 @@ MACHINE_CONFIG_START(mjsenpu_state::mjsenpu) MCFG_PALETTE_ADD("palette", 0x100) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, 1000000, okim6295_device::PIN7_HIGH) /* 1 Mhz? */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) diff --git a/src/mame/drivers/mjsister.cpp b/src/mame/drivers/mjsister.cpp index c1e50541826..819897fa4e9 100644 --- a/src/mame/drivers/mjsister.cpp +++ b/src/mame/drivers/mjsister.cpp @@ -525,7 +525,7 @@ MACHINE_CONFIG_START(mjsister_state::mjsister) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, MCLK/8) MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW1")) diff --git a/src/mame/drivers/mk14.cpp b/src/mame/drivers/mk14.cpp index 59b462e5125..b4b17f8bc34 100644 --- a/src/mame/drivers/mk14.cpp +++ b/src/mame/drivers/mk14.cpp @@ -210,7 +210,7 @@ MACHINE_CONFIG_START(mk14_state::mk14) MCFG_DEFAULT_LAYOUT(layout_mk14) // sound - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.05) MCFG_DEVICE_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) diff --git a/src/mame/drivers/mk2.cpp b/src/mame/drivers/mk2.cpp index 1cda40105f9..eb0912ed8da 100644 --- a/src/mame/drivers/mk2.cpp +++ b/src/mame/drivers/mk2.cpp @@ -210,7 +210,7 @@ MACHINE_CONFIG_START(mk2_state::mk2) MCFG_MOS6530_OUT_PB_CB(WRITE8(*this, mk2_state, mk2_write_b)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/mkit09.cpp b/src/mame/drivers/mkit09.cpp index 4b8a13954e5..8a3537c36ca 100644 --- a/src/mame/drivers/mkit09.cpp +++ b/src/mame/drivers/mkit09.cpp @@ -204,7 +204,7 @@ MACHINE_CONFIG_START(mkit09_state::mkit09) MCFG_DEFAULT_LAYOUT(layout_mkit09) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) @@ -229,7 +229,7 @@ MACHINE_CONFIG_START(mkit09_state::mkit09a) MCFG_DEFAULT_LAYOUT(layout_mkit09) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mame/drivers/mlanding.cpp b/src/mame/drivers/mlanding.cpp index e2de86ef911..b33f5e5fb8d 100644 --- a/src/mame/drivers/mlanding.cpp +++ b/src/mame/drivers/mlanding.cpp @@ -970,7 +970,7 @@ MACHINE_CONFIG_START(mlanding_state::mlanding) MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2151, 4000000) MCFG_YM2151_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) diff --git a/src/mame/drivers/mmagic.cpp b/src/mame/drivers/mmagic.cpp index c680d4a50b3..4a3eb8c2819 100644 --- a/src/mame/drivers/mmagic.cpp +++ b/src/mame/drivers/mmagic.cpp @@ -318,7 +318,7 @@ MACHINE_CONFIG_START(mmagic_state::mmagic) MCFG_PALETTE_ADD_3BIT_RGB("palette") // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("samples", SAMPLES) MCFG_SAMPLES_CHANNELS(1) MCFG_SAMPLES_NAMES(mmagic_sample_names) diff --git a/src/mame/drivers/mmm.cpp b/src/mame/drivers/mmm.cpp index ca572e9864f..29484b48538 100644 --- a/src/mame/drivers/mmm.cpp +++ b/src/mame/drivers/mmm.cpp @@ -182,7 +182,7 @@ MACHINE_CONFIG_START(mmm_state::mmm) MCFG_Z80CTC_INTR_CB(INPUTLINE("maincpu", INPUT_LINE_IRQ0)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, 1000000) MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(*this, mmm_state, ay_porta_w)) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30) diff --git a/src/mame/drivers/model1.cpp b/src/mame/drivers/model1.cpp index 2d3ad3ddd2d..b6c8c9365a6 100644 --- a/src/mame/drivers/model1.cpp +++ b/src/mame/drivers/model1.cpp @@ -1672,7 +1672,8 @@ MACHINE_CONFIG_START(model1_state::swa) MCFG_MODEL1IO_AN5_CB(IOPORT("STICK2Y")) MCFG_MODEL1IO_OUTPUT_CB(WRITE8(*this, model1_state, swa_outputs_w)) - MCFG_SPEAKER_STANDARD_STEREO("dleft", "dright") + SPEAKER(config, "dleft").front_left(); + SPEAKER(config, "dright").front_right(); MCFG_DSBZ80_ADD(DSBZ80_TAG) MCFG_SOUND_ROUTE(0, "dleft", 1.0) MCFG_SOUND_ROUTE(1, "dright", 1.0) diff --git a/src/mame/drivers/model2.cpp b/src/mame/drivers/model2.cpp index 29932d28e64..f705ba7a8ad 100644 --- a/src/mame/drivers/model2.cpp +++ b/src/mame/drivers/model2.cpp @@ -2399,7 +2399,8 @@ MACHINE_CONFIG_START(model2_state::model2_scsp) MCFG_DEVICE_ADD("audiocpu", M68000, 12000000) MCFG_DEVICE_PROGRAM_MAP(model2_snd) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("scsp", SCSP) MCFG_SCSP_IRQ_CB(WRITE8(*this, model2_state,scsp_irq)) diff --git a/src/mame/drivers/model3.cpp b/src/mame/drivers/model3.cpp index 49de87bc3d7..e88e75f90cf 100644 --- a/src/mame/drivers/model3.cpp +++ b/src/mame/drivers/model3.cpp @@ -5774,7 +5774,8 @@ MACHINE_CONFIG_START(model3_state::model3_10) MCFG_GFXDECODE_ADD("gfxdecode", "palette", empty) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("scsp1", SCSP) MCFG_SCSP_IRQ_CB(WRITE8(*this, model3_state, scsp_irq)) MCFG_SOUND_ROUTE(0, "lspeaker", 2.0) @@ -5820,7 +5821,8 @@ MACHINE_CONFIG_START(model3_state::model3_15) MCFG_GFXDECODE_ADD("gfxdecode", "palette", empty) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("scsp1", SCSP) MCFG_SCSP_IRQ_CB(WRITE8(*this, model3_state, scsp_irq)) MCFG_SOUND_ROUTE(0, "lspeaker", 2.0) @@ -5882,7 +5884,8 @@ MACHINE_CONFIG_START(model3_state::model3_20) MCFG_GFXDECODE_ADD("gfxdecode", "palette", empty) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("scsp1", SCSP) MCFG_SCSP_IRQ_CB(WRITE8(*this, model3_state, scsp_irq)) MCFG_SOUND_ROUTE(0, "lspeaker", 2.0) @@ -5946,7 +5949,8 @@ MACHINE_CONFIG_START(model3_state::model3_21) MCFG_PALETTE_ADD_RRRRRGGGGGBBBBB("palette") MCFG_GFXDECODE_ADD("gfxdecode", "palette", empty) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("scsp1", SCSP) MCFG_SCSP_IRQ_CB(WRITE8(*this, model3_state, scsp_irq)) MCFG_SOUND_ROUTE(0, "lspeaker", 2.0) diff --git a/src/mame/drivers/mogura.cpp b/src/mame/drivers/mogura.cpp index 6301db597a8..a43a31acd3f 100644 --- a/src/mame/drivers/mogura.cpp +++ b/src/mame/drivers/mogura.cpp @@ -229,7 +229,8 @@ MACHINE_CONFIG_START(mogura_state::mogura) MCFG_PALETTE_INIT_OWNER(mogura_state, mogura) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ldac", DAC_4BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.25) // unknown DAC MCFG_DEVICE_ADD("rdac", DAC_4BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 0.25) // unknown DAC MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) diff --git a/src/mame/drivers/mole.cpp b/src/mame/drivers/mole.cpp index 689f0fda35f..26c359bf5b1 100644 --- a/src/mame/drivers/mole.cpp +++ b/src/mame/drivers/mole.cpp @@ -340,7 +340,7 @@ MACHINE_CONFIG_START(mole_state::mole) MCFG_PALETTE_ADD_3BIT_RBG("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, 2000000) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/molecular.cpp b/src/mame/drivers/molecular.cpp index 43e1ce423a4..41e1999da09 100644 --- a/src/mame/drivers/molecular.cpp +++ b/src/mame/drivers/molecular.cpp @@ -325,7 +325,7 @@ MACHINE_CONFIG_START(molecula_state::molecula) MCFG_PALETTE_INIT_OWNER(molecula_state, molecula) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); // MCFG_DEVICE_ADD("aysnd", AY8910, MAIN_CLOCK/4) // MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30) MACHINE_CONFIG_END diff --git a/src/mame/drivers/momoko.cpp b/src/mame/drivers/momoko.cpp index f22a7baa2ac..72f98109887 100644 --- a/src/mame/drivers/momoko.cpp +++ b/src/mame/drivers/momoko.cpp @@ -282,7 +282,7 @@ MACHINE_CONFIG_START(momoko_state::momoko) MCFG_PALETTE_ENDIANNESS(ENDIANNESS_BIG) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/monty.cpp b/src/mame/drivers/monty.cpp index 88840cfdca4..375e10998a5 100644 --- a/src/mame/drivers/monty.cpp +++ b/src/mame/drivers/monty.cpp @@ -281,7 +281,7 @@ MACHINE_CONFIG_START(monty_state::monty) MCFG_SCREEN_UPDATE_DRIVER(monty_state, lcd_update) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/moo.cpp b/src/mame/drivers/moo.cpp index d998af7862e..307641b8d8a 100644 --- a/src/mame/drivers/moo.cpp +++ b/src/mame/drivers/moo.cpp @@ -543,7 +543,8 @@ MACHINE_CONFIG_START(moo_state::moo) MCFG_DEVICE_ADD("k054338", K054338, 0) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_K054321_ADD("k054321", "lspeaker", "rspeaker") @@ -599,7 +600,8 @@ MACHINE_CONFIG_START(moo_state::moobl) MCFG_DEVICE_ADD("k054338", K054338, 0) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("oki", OKIM6295, 1056000, okim6295_device::PIN7_HIGH) // clock frequency & pin 7 not verified MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 1.0) diff --git a/src/mame/drivers/mosaic.cpp b/src/mame/drivers/mosaic.cpp index a336d59cbd7..ea1d1678775 100644 --- a/src/mame/drivers/mosaic.cpp +++ b/src/mame/drivers/mosaic.cpp @@ -300,7 +300,7 @@ MACHINE_CONFIG_START(mosaic_state::mosaic) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2203, XTAL(12'288'000)/4) /* 3.072MHz or 3.579545MHz (14.31818MHz/4)? */ MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW")) diff --git a/src/mame/drivers/mouser.cpp b/src/mame/drivers/mouser.cpp index c93d2c2b151..9068110f92d 100644 --- a/src/mame/drivers/mouser.cpp +++ b/src/mame/drivers/mouser.cpp @@ -225,7 +225,7 @@ MACHINE_CONFIG_START(mouser_state::mouser) MCFG_PALETTE_INIT_OWNER(mouser_state, mouser) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay1", AY8910, 4000000/2) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/mpf1.cpp b/src/mame/drivers/mpf1.cpp index f4b49c2b579..f74690bdc29 100644 --- a/src/mame/drivers/mpf1.cpp +++ b/src/mame/drivers/mpf1.cpp @@ -383,7 +383,7 @@ MACHINE_CONFIG_START(mpf1_state::mpf1) MCFG_DEFAULT_LAYOUT(layout_mpf1) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) @@ -417,7 +417,7 @@ MACHINE_CONFIG_START(mpf1_state::mpf1b) MCFG_DEFAULT_LAYOUT(layout_mpf1b) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) @@ -454,7 +454,7 @@ MACHINE_CONFIG_START(mpf1_state::mpf1p) MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_ENABLED) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mame/drivers/mpu12wbk.cpp b/src/mame/drivers/mpu12wbk.cpp index 2630c7622ed..32904657a57 100644 --- a/src/mame/drivers/mpu12wbk.cpp +++ b/src/mame/drivers/mpu12wbk.cpp @@ -513,7 +513,7 @@ MACHINE_CONFIG_START(mpu12wbk_state::mpu12wbk) MCFG_MC6845_OUT_VSYNC_CB(INPUTLINE("maincpu", INPUT_LINE_NMI)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay8910", AY8910, MASTER_CLOCK/8) /* guess */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) diff --git a/src/mame/drivers/mpu4dealem.cpp b/src/mame/drivers/mpu4dealem.cpp index 994458f642f..1ebb716d074 100644 --- a/src/mame/drivers/mpu4dealem.cpp +++ b/src/mame/drivers/mpu4dealem.cpp @@ -206,7 +206,7 @@ MACHINE_CONFIG_START(mpu4dealem_state::dealem) mpu4_common(config); - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay8913",AY8913, MPU4_MASTER_CLOCK/4) MCFG_AY8910_OUTPUT_TYPE(AY8910_SINGLE_OUTPUT) MCFG_AY8910_RES_LOADS(820, 0, 0) diff --git a/src/mame/drivers/mpu4vid.cpp b/src/mame/drivers/mpu4vid.cpp index 7ac03061564..cb45e2b0984 100644 --- a/src/mame/drivers/mpu4vid.cpp +++ b/src/mame/drivers/mpu4vid.cpp @@ -1320,7 +1320,8 @@ MACHINE_CONFIG_START(mpu4vid_state::mpu4_vid) MCFG_PTM6840_O3_CB(WRITELINE(*this, mpu4vid_state, vid_o3_callback)) MCFG_PTM6840_IRQ_CB(WRITELINE(*this, mpu4vid_state, cpu1_ptm_irq)) /* Present on all video cards */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_SAA1099_ADD("saa", 8000000) MCFG_SOUND_ROUTE(0, "lspeaker", 0.5) MCFG_SOUND_ROUTE(1, "rspeaker", 0.5) diff --git a/src/mame/drivers/mpu5.cpp b/src/mame/drivers/mpu5.cpp index 75d0b7660f6..ce2bd383616 100644 --- a/src/mame/drivers/mpu5.cpp +++ b/src/mame/drivers/mpu5.cpp @@ -553,7 +553,8 @@ MACHINE_CONFIG_START(mpu5_state::mpu5) MCFG_DEFAULT_LAYOUT(layout_mpu5) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); /* unknown sound */ MACHINE_CONFIG_END diff --git a/src/mame/drivers/mquake.cpp b/src/mame/drivers/mquake.cpp index 3e6c3b020d4..440581a783d 100644 --- a/src/mame/drivers/mquake.cpp +++ b/src/mame/drivers/mquake.cpp @@ -335,7 +335,8 @@ MACHINE_CONFIG_START(mquake_state::mquake) MCFG_VIDEO_START_OVERRIDE(mquake_state,amiga) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("amiga", PAULA_8364, amiga_state::CLK_C1_NTSC) MCFG_SOUND_ROUTE(0, "lspeaker", 0.50) diff --git a/src/mame/drivers/mrdo.cpp b/src/mame/drivers/mrdo.cpp index 5da9f1374df..c88399719c0 100644 --- a/src/mame/drivers/mrdo.cpp +++ b/src/mame/drivers/mrdo.cpp @@ -190,7 +190,7 @@ MACHINE_CONFIG_START(mrdo_state::mrdo) MCFG_PALETTE_INIT_OWNER(mrdo_state, mrdo) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("u8106_1", U8106, MAIN_CLOCK/2) /* sn76489-equivalent?, Verified */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/mrflea.cpp b/src/mame/drivers/mrflea.cpp index 41c4b328efa..ef71e67d242 100644 --- a/src/mame/drivers/mrflea.cpp +++ b/src/mame/drivers/mrflea.cpp @@ -299,7 +299,7 @@ MACHINE_CONFIG_START(mrflea_state::mrflea) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay1", AY8910, 2000000) MCFG_AY8910_PORT_A_READ_CB(IOPORT("IN1")) diff --git a/src/mame/drivers/mrgame.cpp b/src/mame/drivers/mrgame.cpp index 25222d5a74e..fa832b5185e 100644 --- a/src/mame/drivers/mrgame.cpp +++ b/src/mame/drivers/mrgame.cpp @@ -503,7 +503,8 @@ MACHINE_CONFIG_START(mrgame_state::mrgame) MCFG_GFXDECODE_ADD("gfxdecode", "palette", mrgame) /* Sound */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ldac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.25) // unknown DAC MCFG_DEVICE_ADD("rdac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 0.25) // unknown DAC MCFG_DEVICE_ADD("dacvol", DAC_8BIT_R2R, 0) // unknown DAC diff --git a/src/mame/drivers/mrjong.cpp b/src/mame/drivers/mrjong.cpp index af808707b59..9e3b31edefc 100644 --- a/src/mame/drivers/mrjong.cpp +++ b/src/mame/drivers/mrjong.cpp @@ -208,7 +208,7 @@ MACHINE_CONFIG_START(mrjong_state::mrjong) MCFG_PALETTE_INIT_OWNER(mrjong_state, mrjong) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("sn1", SN76489, 15468000/6) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/ms0515.cpp b/src/mame/drivers/ms0515.cpp index 43c1ab54a77..f2772b84b7c 100644 --- a/src/mame/drivers/ms0515.cpp +++ b/src/mame/drivers/ms0515.cpp @@ -582,7 +582,7 @@ MACHINE_CONFIG_START(ms0515_state::ms0515) MCFG_PIT8253_CLK2(XTAL(2'000'000)) MCFG_PIT8253_OUT2_HANDLER(WRITELINE(*this, ms0515_state, pit8253_out2_changed)) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.45) diff --git a/src/mame/drivers/ms32.cpp b/src/mame/drivers/ms32.cpp index 53a1fd34e1c..d7b99177c2d 100644 --- a/src/mame/drivers/ms32.cpp +++ b/src/mame/drivers/ms32.cpp @@ -1728,7 +1728,8 @@ MACHINE_CONFIG_START(ms32_state::ms32) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) diff --git a/src/mame/drivers/msisaac.cpp b/src/mame/drivers/msisaac.cpp index 24241c89f1b..2bf2bf27c19 100644 --- a/src/mame/drivers/msisaac.cpp +++ b/src/mame/drivers/msisaac.cpp @@ -479,7 +479,7 @@ MACHINE_CONFIG_START(msisaac_state::msisaac) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_TA7630_ADD("ta7630") diff --git a/src/mame/drivers/msx.cpp b/src/mame/drivers/msx.cpp index e5295bcc7a7..6d12981e0a1 100644 --- a/src/mame/drivers/msx.cpp +++ b/src/mame/drivers/msx.cpp @@ -1360,7 +1360,7 @@ MACHINE_CONFIG_START(msx_state::msx) MCFG_I8255_OUT_PORTC_CB(WRITE8(*this, msx_state, msx_ppi_port_c_w)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.1) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) @@ -1513,7 +1513,7 @@ MACHINE_CONFIG_START(msx_state::msx2) MCFG_V99X8_SCREEN_ADD_NTSC("screen", "v9938", XTAL(21'477'272)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.1) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) @@ -1571,7 +1571,7 @@ MACHINE_CONFIG_START(msx_state::msx2p) MCFG_V99X8_SCREEN_ADD_NTSC("screen", "v9958", XTAL(21'477'272)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.1) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) diff --git a/src/mame/drivers/mtx.cpp b/src/mame/drivers/mtx.cpp index d11adfd920d..77702fca809 100644 --- a/src/mame/drivers/mtx.cpp +++ b/src/mame/drivers/mtx.cpp @@ -302,7 +302,7 @@ MACHINE_CONFIG_START(mtx_state::mtx512) MCFG_SCREEN_UPDATE_DEVICE( "tms9929a", tms9929a_device, screen_update ) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD(SN76489A_TAG, SN76489A, XTAL(4'000'000)) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) diff --git a/src/mame/drivers/mugsmash.cpp b/src/mame/drivers/mugsmash.cpp index 1f0058a6cd4..3ad03c3487c 100644 --- a/src/mame/drivers/mugsmash.cpp +++ b/src/mame/drivers/mugsmash.cpp @@ -422,7 +422,8 @@ MACHINE_CONFIG_START(mugsmash_state::mugsmash) MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) diff --git a/src/mame/drivers/multfish.cpp b/src/mame/drivers/multfish.cpp index 5d0fc32c812..e917766ee51 100644 --- a/src/mame/drivers/multfish.cpp +++ b/src/mame/drivers/multfish.cpp @@ -1045,7 +1045,7 @@ MACHINE_CONFIG_START(igrosoft_gamble_state::igrosoft_gamble) MCFG_PALETTE_ADD("palette", 0x1000) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, 6000000/4) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30) diff --git a/src/mame/drivers/multi8.cpp b/src/mame/drivers/multi8.cpp index 96e3c0fa815..7d77ff67689 100644 --- a/src/mame/drivers/multi8.cpp +++ b/src/mame/drivers/multi8.cpp @@ -582,7 +582,7 @@ MACHINE_CONFIG_START(multi8_state::multi8) MCFG_GFXDECODE_ADD("gfxdecode", "palette", multi8) /* Audio */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8912, 1500000) //unknown clock / divider MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(*this, multi8_state, ym2203_porta_w)) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/multigam.cpp b/src/mame/drivers/multigam.cpp index f44b5c92145..65d676b8177 100644 --- a/src/mame/drivers/multigam.cpp +++ b/src/mame/drivers/multigam.cpp @@ -1218,7 +1218,7 @@ MACHINE_CONFIG_START(multigam_state::multigam) MCFG_PPU2C0X_INT_CALLBACK(INPUTLINE("maincpu", INPUT_LINE_NMI)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MACHINE_CONFIG_END MACHINE_CONFIG_START(multigam_state::multigm3) diff --git a/src/mame/drivers/munchmo.cpp b/src/mame/drivers/munchmo.cpp index ae48787fc6a..2bc0cb0b688 100644 --- a/src/mame/drivers/munchmo.cpp +++ b/src/mame/drivers/munchmo.cpp @@ -352,7 +352,7 @@ MACHINE_CONFIG_START(munchmo_state::mnchmobl) MCFG_PALETTE_INIT_OWNER(munchmo_state, munchmo) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(ASSERTLINE("audiocpu", 0)) diff --git a/src/mame/drivers/murogem.cpp b/src/mame/drivers/murogem.cpp index 83d2a2a574f..da875a4496f 100644 --- a/src/mame/drivers/murogem.cpp +++ b/src/mame/drivers/murogem.cpp @@ -272,7 +272,7 @@ MACHINE_CONFIG_START(murogem_state::murogem) MCFG_MC6845_CHAR_WIDTH(8) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.375) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) diff --git a/src/mame/drivers/murogmbl.cpp b/src/mame/drivers/murogmbl.cpp index 479a69dfc9d..aca307eaf71 100644 --- a/src/mame/drivers/murogmbl.cpp +++ b/src/mame/drivers/murogmbl.cpp @@ -355,7 +355,7 @@ MACHINE_CONFIG_START(murogmbl_state::murogmbl) MCFG_PALETTE_ADD("palette", 0x100) MCFG_PALETTE_INIT_OWNER(murogmbl_state, murogmbl) - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) // unknown DAC MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT) @@ -381,7 +381,7 @@ MACHINE_CONFIG_START(slotunbl_state::slotunbl) MCFG_PALETTE_ADD("palette", 0x100) MCFG_PALETTE_INIT_OWNER(slotunbl_state, slotunbl) - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) // unknown DAC MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT) diff --git a/src/mame/drivers/mustache.cpp b/src/mame/drivers/mustache.cpp index 52dfae4e28f..9e9a1a6377a 100644 --- a/src/mame/drivers/mustache.cpp +++ b/src/mame/drivers/mustache.cpp @@ -205,7 +205,7 @@ MACHINE_CONFIG_START(mustache_state::mustache) MCFG_PALETTE_ADD_RRRRGGGGBBBB_PROMS("palette", "proms", 256) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2151, YM_CLOCK) MCFG_YM2151_IRQ_HANDLER(WRITELINE("t5182", t5182_device, ym2151_irq_handler)) diff --git a/src/mame/drivers/mwarr.cpp b/src/mame/drivers/mwarr.cpp index 9d5b0fdfa8c..6fe280c812b 100644 --- a/src/mame/drivers/mwarr.cpp +++ b/src/mame/drivers/mwarr.cpp @@ -589,7 +589,7 @@ MACHINE_CONFIG_START(mwarr_state::mwarr) MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki1", OKIM6295, SOUND_CLOCK/48 , okim6295_device::PIN7_HIGH) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/myb3k.cpp b/src/mame/drivers/myb3k.cpp index 875f73de434..7c798b69fca 100644 --- a/src/mame/drivers/myb3k.cpp +++ b/src/mame/drivers/myb3k.cpp @@ -1012,7 +1012,7 @@ MACHINE_CONFIG_START(myb3k_state::myb3k) MCFG_CENTRONICS_OUTPUT_LATCH_ADD ("cent_data_out", "centronics") /* Sound */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) diff --git a/src/mame/drivers/mycom.cpp b/src/mame/drivers/mycom.cpp index 211fb77aeb0..f3c9d24a8a2 100644 --- a/src/mame/drivers/mycom.cpp +++ b/src/mame/drivers/mycom.cpp @@ -541,7 +541,7 @@ MACHINE_CONFIG_START(mycom_state::mycom) MCFG_MC6845_CHAR_WIDTH(8) MCFG_MC6845_UPDATE_ROW_CB(mycom_state, crtc_update_row) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.05) diff --git a/src/mame/drivers/mystston.cpp b/src/mame/drivers/mystston.cpp index f5825eb0468..1a3c1b2a866 100644 --- a/src/mame/drivers/mystston.cpp +++ b/src/mame/drivers/mystston.cpp @@ -202,7 +202,7 @@ MACHINE_CONFIG_START(mystston_state::mystston) mystston_video(config); /* audio hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay1", AY8910, AY8910_CLOCK) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30) diff --git a/src/mame/drivers/mystwarr.cpp b/src/mame/drivers/mystwarr.cpp index 824531b8dbb..1ea3cc4d565 100644 --- a/src/mame/drivers/mystwarr.cpp +++ b/src/mame/drivers/mystwarr.cpp @@ -994,7 +994,8 @@ MACHINE_CONFIG_START(mystwarr_state::mystwarr) MCFG_VIDEO_START_OVERRIDE(mystwarr_state, mystwarr) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_K054321_ADD("k054321", "lspeaker", "rspeaker") diff --git a/src/mame/drivers/myvision.cpp b/src/mame/drivers/myvision.cpp index d98b73630a0..c378c19a001 100644 --- a/src/mame/drivers/myvision.cpp +++ b/src/mame/drivers/myvision.cpp @@ -226,7 +226,7 @@ MACHINE_CONFIG_START(myvision_state::myvision) MCFG_SCREEN_UPDATE_DEVICE( "tms9918", tms9918a_device, screen_update ) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay8910", AY8910, XTAL(10'738'635)/3/2) /* Exact model and clock not verified */ MCFG_AY8910_PORT_A_READ_CB(READ8(*this, myvision_state, ay_port_a_r)) MCFG_AY8910_PORT_B_READ_CB(READ8(*this, myvision_state, ay_port_b_r)) diff --git a/src/mame/drivers/mz2000.cpp b/src/mame/drivers/mz2000.cpp index f2a69f7ab71..b57ae7f001b 100644 --- a/src/mame/drivers/mz2000.cpp +++ b/src/mame/drivers/mz2000.cpp @@ -925,7 +925,7 @@ MACHINE_CONFIG_START(mz2000_state::mz2000) MCFG_GFXDECODE_ADD("gfxdecode", "palette", mz2000) MCFG_PALETTE_ADD_3BIT_BRG("palette") - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mame/drivers/mz2500.cpp b/src/mame/drivers/mz2500.cpp index 40572af00ce..3e19f699231 100644 --- a/src/mame/drivers/mz2500.cpp +++ b/src/mame/drivers/mz2500.cpp @@ -2139,7 +2139,7 @@ MACHINE_CONFIG_START(mz2500_state::mz2500) MCFG_GFXDECODE_ADD("gfxdecode", "palette", mz2500) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ym", YM2203, 2000000) //unknown clock / divider MCFG_AY8910_PORT_A_READ_CB(READ8(*this, mz2500_state, opn_porta_r)) // read A diff --git a/src/mame/drivers/mz3500.cpp b/src/mame/drivers/mz3500.cpp index 5c58a5695c7..fb725ce679c 100644 --- a/src/mame/drivers/mz3500.cpp +++ b/src/mame/drivers/mz3500.cpp @@ -861,7 +861,7 @@ MACHINE_CONFIG_START(mz3500_state::mz3500) MCFG_PALETTE_ADD_3BIT_BRG("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, 2400) MCFG_SOUND_ROUTE(ALL_OUTPUTS,"mono",0.15) diff --git a/src/mame/drivers/mz700.cpp b/src/mame/drivers/mz700.cpp index 05b4ae525ba..eda092ad40b 100644 --- a/src/mame/drivers/mz700.cpp +++ b/src/mame/drivers/mz700.cpp @@ -397,7 +397,7 @@ MACHINE_CONFIG_START(mz_state::mz700) MCFG_GFXDECODE_ADD("gfxdecode", "palette", mz700) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.05) MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) diff --git a/src/mame/drivers/mz80.cpp b/src/mame/drivers/mz80.cpp index 234769caf39..7fc34aee344 100644 --- a/src/mame/drivers/mz80.cpp +++ b/src/mame/drivers/mz80.cpp @@ -297,7 +297,7 @@ MACHINE_CONFIG_START(mz80_state::mz80k) MCFG_PALETTE_ADD_MONOCHROME("palette") /* Audio */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.05) MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) diff --git a/src/mame/drivers/n64.cpp b/src/mame/drivers/n64.cpp index bb05a3057dd..9470c69c63b 100644 --- a/src/mame/drivers/n64.cpp +++ b/src/mame/drivers/n64.cpp @@ -462,7 +462,8 @@ MACHINE_CONFIG_START(n64_mess_state::n64) MCFG_PALETTE_ADD("palette", 0x1000) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("dac2", DMADAC) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 1.0) diff --git a/src/mame/drivers/nakajies.cpp b/src/mame/drivers/nakajies.cpp index e1471531172..e140d19ba5d 100644 --- a/src/mame/drivers/nakajies.cpp +++ b/src/mame/drivers/nakajies.cpp @@ -763,7 +763,7 @@ MACHINE_CONFIG_START(nakajies_state::nakajies210) MCFG_DEFAULT_LAYOUT(layout_lcd) /* sound */ - MCFG_SPEAKER_STANDARD_MONO( "mono" ) + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD( "speaker", SPEAKER_SOUND ) MCFG_SOUND_ROUTE( ALL_OUTPUTS, "mono", 1.00 ) diff --git a/src/mame/drivers/namcofl.cpp b/src/mame/drivers/namcofl.cpp index 6ad00f8c438..b318582af1c 100644 --- a/src/mame/drivers/namcofl.cpp +++ b/src/mame/drivers/namcofl.cpp @@ -612,7 +612,8 @@ MACHINE_CONFIG_START(namcofl_state::namcofl) MCFG_VIDEO_START_OVERRIDE(namcofl_state,namcofl) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_C352_ADD("c352", 48384000/2, 288) MCFG_SOUND_ROUTE(0, "lspeaker", 1.00) MCFG_SOUND_ROUTE(1, "rspeaker", 1.00) diff --git a/src/mame/drivers/namcona1.cpp b/src/mame/drivers/namcona1.cpp index 232c7a02525..80d80925a79 100644 --- a/src/mame/drivers/namcona1.cpp +++ b/src/mame/drivers/namcona1.cpp @@ -988,7 +988,8 @@ MACHINE_CONFIG_START(namcona1_state::namcona1) MCFG_GFXDECODE_ADD("gfxdecode", "palette", namcona1) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_C140_ADD("c140", 44100) MCFG_C140_BANK_TYPE(ASIC219) diff --git a/src/mame/drivers/namconb1.cpp b/src/mame/drivers/namconb1.cpp index d6cbae41459..655e61bf447 100644 --- a/src/mame/drivers/namconb1.cpp +++ b/src/mame/drivers/namconb1.cpp @@ -1102,7 +1102,8 @@ MACHINE_CONFIG_START(namconb1_state::namconb1) MCFG_VIDEO_START_OVERRIDE(namconb1_state,namconb1) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_C352_ADD("c352", MASTER_CLOCK/2, 288) MCFG_SOUND_ROUTE(0, "lspeaker", 1.00) MCFG_SOUND_ROUTE(1, "rspeaker", 1.00) @@ -1142,7 +1143,8 @@ MACHINE_CONFIG_START(namconb1_state::namconb2) MCFG_VIDEO_START_OVERRIDE(namconb1_state,namconb2) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_C352_ADD("c352", MASTER_CLOCK/2, 288) MCFG_SOUND_ROUTE(0, "lspeaker", 1.00) MCFG_SOUND_ROUTE(1, "rspeaker", 1.00) diff --git a/src/mame/drivers/namcond1.cpp b/src/mame/drivers/namcond1.cpp index 0079764c5c2..886ea4c0e37 100644 --- a/src/mame/drivers/namcond1.cpp +++ b/src/mame/drivers/namcond1.cpp @@ -380,7 +380,8 @@ MACHINE_CONFIG_START(namcond1_state::namcond1) MCFG_PALETTE_ADD("palette", 256) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_C352_ADD("c352", XTAL(49'152'000)/2, 288) MCFG_SOUND_ROUTE(0, "lspeaker", 1.00) diff --git a/src/mame/drivers/namcos1.cpp b/src/mame/drivers/namcos1.cpp index f256770ed17..7defb1c3c7d 100644 --- a/src/mame/drivers/namcos1.cpp +++ b/src/mame/drivers/namcos1.cpp @@ -1076,7 +1076,8 @@ MACHINE_CONFIG_START(namcos1_state::ns1) MCFG_GFX_PALETTE("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2151, 3579580) MCFG_YM2151_IRQ_HANDLER(INPUTLINE("audiocpu", M6809_FIRQ_LINE)) diff --git a/src/mame/drivers/namcos10.cpp b/src/mame/drivers/namcos10.cpp index b730472baea..e5083e60f57 100644 --- a/src/mame/drivers/namcos10.cpp +++ b/src/mame/drivers/namcos10.cpp @@ -937,7 +937,8 @@ MACHINE_CONFIG_START(namcos10_state::namcos10_memm) MCFG_PSXGPU_ADD( "maincpu", "gpu", CXD8561CQ, 0x200000, XTAL(53'693'175) ) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MACHINE_CONFIG_END MACHINE_CONFIG_START(namcos10_state::namcos10_memn) @@ -961,7 +962,8 @@ MACHINE_CONFIG_START(namcos10_state::namcos10_memn) MCFG_PSXGPU_ADD( "maincpu", "gpu", CXD8561CQ, 0x200000, XTAL(53'693'175) ) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MACHINE_CONFIG_END MACHINE_CONFIG_START(namcos10_state::ns10_mrdrilr2) diff --git a/src/mame/drivers/namcos11.cpp b/src/mame/drivers/namcos11.cpp index 14e5691ddb6..59e77048609 100644 --- a/src/mame/drivers/namcos11.cpp +++ b/src/mame/drivers/namcos11.cpp @@ -624,7 +624,8 @@ MACHINE_CONFIG_START(namcos11_state::coh110) MCFG_PSXGPU_ADD( "maincpu", "gpu", CXD8561Q, 0x200000, XTAL(53'693'175) ) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_C352_ADD("c352", 25401600, 288) MCFG_SOUND_ROUTE(0, "lspeaker", 1.00) diff --git a/src/mame/drivers/namcos12.cpp b/src/mame/drivers/namcos12.cpp index b66e05242ee..7e877f97311 100644 --- a/src/mame/drivers/namcos12.cpp +++ b/src/mame/drivers/namcos12.cpp @@ -1739,7 +1739,8 @@ MACHINE_CONFIG_START(namcos12_state::namcos12_mobo) MCFG_AT28C16_ADD("at28c16", nullptr) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_C352_ADD("c352", 25401600, 288) MCFG_SOUND_ROUTE(0, "lspeaker", 1.00) diff --git a/src/mame/drivers/namcos2.cpp b/src/mame/drivers/namcos2.cpp index c82b771cc0b..59c5db9c0ac 100644 --- a/src/mame/drivers/namcos2.cpp +++ b/src/mame/drivers/namcos2.cpp @@ -1770,7 +1770,8 @@ MACHINE_CONFIG_START(namcos2_state::base) MCFG_PALETTE_ADD("palette", 0x2000) MCFG_PALETTE_ENABLE_SHADOWS() - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_C140_ADD("c140", C140_SOUND_CLOCK) /* 21.333kHz */ MCFG_C140_BANK_TYPE(SYSTEM2) @@ -1850,7 +1851,8 @@ MACHINE_CONFIG_START(namcos2_state::gollygho) MCFG_PALETTE_ADD("palette", 0x2000) MCFG_PALETTE_ENABLE_SHADOWS() - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_C140_ADD("c140", C140_SOUND_CLOCK) /* 21.333kHz */ MCFG_C140_BANK_TYPE(SYSTEM2) @@ -1905,7 +1907,8 @@ MACHINE_CONFIG_START(namcos2_state::finallap) MCFG_NAMCO_C45_ROAD_ADD("c45_road") MCFG_GFX_PALETTE("palette") - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_C140_ADD("c140", C140_SOUND_CLOCK) /* 21.333kHz */ MCFG_C140_BANK_TYPE(SYSTEM2) @@ -1957,7 +1960,8 @@ MACHINE_CONFIG_START(namcos2_state::sgunner) MCFG_VIDEO_START_OVERRIDE(namcos2_state, sgunner) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_C140_ADD("c140", C140_SOUND_CLOCK) /* 21.333kHz */ MCFG_C140_BANK_TYPE(SYSTEM2) @@ -2014,7 +2018,8 @@ MACHINE_CONFIG_START(namcos2_state::sgunner2) MCFG_VIDEO_START_OVERRIDE(namcos2_state, sgunner) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_C140_ADD("c140", C140_SOUND_CLOCK) /* 21.333kHz */ MCFG_C140_BANK_TYPE(SYSTEM2) @@ -2069,7 +2074,8 @@ MACHINE_CONFIG_START(namcos2_state::luckywld) MCFG_NAMCO_C45_ROAD_ADD("c45_road") MCFG_GFX_PALETTE("palette") - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_C140_ADD("c140", C140_SOUND_CLOCK) /* 21.333kHz */ MCFG_C140_BANK_TYPE(SYSTEM2) @@ -2121,7 +2127,8 @@ MACHINE_CONFIG_START(namcos2_state::metlhawk) MCFG_VIDEO_START_OVERRIDE(namcos2_state, metlhawk) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_C140_ADD("c140", C140_SOUND_CLOCK) /* 21.333kHz */ MCFG_C140_BANK_TYPE(SYSTEM2) diff --git a/src/mame/drivers/namcos21.cpp b/src/mame/drivers/namcos21.cpp index 1cf3743fe9f..0c084092be6 100644 --- a/src/mame/drivers/namcos21.cpp +++ b/src/mame/drivers/namcos21.cpp @@ -1966,7 +1966,8 @@ MACHINE_CONFIG_START(namcos21_state::namcos21) MCFG_VIDEO_START_OVERRIDE(namcos21_state,namcos21) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_C140_ADD("c140", 8000000/374) MCFG_C140_BANK_TYPE(SYSTEM21) @@ -2027,7 +2028,8 @@ MACHINE_CONFIG_START(namcos21_state::driveyes) MCFG_VIDEO_START_OVERRIDE(namcos21_state,namcos21) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_C140_ADD("c140", 8000000/374) MCFG_C140_BANK_TYPE(SYSTEM21) @@ -2090,7 +2092,8 @@ MACHINE_CONFIG_START(namcos21_state::winrun) MCFG_VIDEO_START_OVERRIDE(namcos21_state,namcos21) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_C140_ADD("c140", 8000000/374) MCFG_C140_BANK_TYPE(SYSTEM21) diff --git a/src/mame/drivers/namcos22.cpp b/src/mame/drivers/namcos22.cpp index 40f0d0f7ee8..11e8993886c 100644 --- a/src/mame/drivers/namcos22.cpp +++ b/src/mame/drivers/namcos22.cpp @@ -3799,7 +3799,8 @@ MACHINE_CONFIG_START(namcos22_state::namcos22) MCFG_GFXDECODE_ADD("gfxdecode", "palette", namcos22) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_C352_ADD("c352", SS22_MASTER_CLOCK/2, 288) MCFG_SOUND_ROUTE(0, "lspeaker", 1.00) @@ -3809,7 +3810,8 @@ MACHINE_CONFIG_END MACHINE_CONFIG_START(namcos22_state::cybrcomm) namcos22(config); - MCFG_SPEAKER_STANDARD_STEREO("rear_left","rear_right") + SPEAKER(config, "rear_left").front_left(); + SPEAKER(config, "rear_right").front_right(); MCFG_DEVICE_MODIFY("c352") MCFG_SOUND_ROUTE(2, "rear_left", 1.00) @@ -3865,7 +3867,8 @@ MACHINE_CONFIG_START(namcos22_state::namcos22s) MCFG_GFXDECODE_ADD("gfxdecode", "palette", super) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_C352_ADD("c352", SS22_MASTER_CLOCK/2, 288) MCFG_SOUND_ROUTE(0, "lspeaker", 1.00) @@ -3875,7 +3878,7 @@ MACHINE_CONFIG_END MACHINE_CONFIG_START(namcos22_state::airco22b) namcos22s(config); - MCFG_SPEAKER_STANDARD_MONO("bodysonic") + SPEAKER(config, "bodysonic").front_center(); MCFG_DEVICE_MODIFY("c352") MCFG_SOUND_ROUTE(2, "bodysonic", 0.50) @@ -3902,7 +3905,7 @@ MACHINE_CONFIG_END MACHINE_CONFIG_START(namcos22_state::cybrcycc) namcos22s(config); - MCFG_SPEAKER_STANDARD_MONO("tank") + SPEAKER(config, "tank").front_center(); MCFG_DEVICE_MODIFY("c352") MCFG_SOUND_ROUTE(2, "tank", 1.00) @@ -3911,8 +3914,8 @@ MACHINE_CONFIG_END MACHINE_CONFIG_START(namcos22_state::dirtdash) namcos22s(config); - MCFG_SPEAKER_STANDARD_MONO("road") - MCFG_SPEAKER_STANDARD_MONO("under") + SPEAKER(config, "road").front_center(); + SPEAKER(config, "under").front_center(); MCFG_DEVICE_MODIFY("c352") MCFG_SOUND_ROUTE(2, "road", 1.00) @@ -3930,8 +3933,8 @@ MACHINE_CONFIG_END MACHINE_CONFIG_START(namcos22_state::tokyowar) namcos22s(config); - MCFG_SPEAKER_STANDARD_MONO("seat") - MCFG_SPEAKER_STANDARD_MONO("vibration") + SPEAKER(config, "seat").front_center(); + SPEAKER(config, "vibration").front_center(); MCFG_DEVICE_MODIFY("c352") MCFG_SOUND_ROUTE(3, "seat", 1.00) diff --git a/src/mame/drivers/namcos23.cpp b/src/mame/drivers/namcos23.cpp index 86f414b184e..2b4df9ed28d 100644 --- a/src/mame/drivers/namcos23.cpp +++ b/src/mame/drivers/namcos23.cpp @@ -3617,7 +3617,8 @@ MACHINE_CONFIG_START(namcos23_state::gorgon) MCFG_VIDEO_START_OVERRIDE(namcos23_state,s23) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_C352_ADD("c352", C352CLOCK, C352DIV) MCFG_SOUND_ROUTE(0, "lspeaker", 1.00) @@ -3683,7 +3684,8 @@ MACHINE_CONFIG_START(namcos23_state::s23) MCFG_VIDEO_START_OVERRIDE(namcos23_state,s23) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_C352_ADD("c352", C352CLOCK, C352DIV) MCFG_SOUND_ROUTE(0, "rspeaker", 1.00) @@ -3762,7 +3764,8 @@ MACHINE_CONFIG_START(namcos23_state::ss23) MCFG_VIDEO_START_OVERRIDE(namcos23_state,s23) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_C352_ADD("c352", C352CLOCK, C352DIV) MCFG_SOUND_ROUTE(0, "rspeaker", 1.00) diff --git a/src/mame/drivers/namcos86.cpp b/src/mame/drivers/namcos86.cpp index 6e0d69d06b4..33396910548 100644 --- a/src/mame/drivers/namcos86.cpp +++ b/src/mame/drivers/namcos86.cpp @@ -1092,7 +1092,7 @@ MACHINE_CONFIG_START(namcos86_state::hopmappy) MCFG_PALETTE_INIT_OWNER(namcos86_state, namcos86) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2151, 3579580) MCFG_SOUND_ROUTE(0, "mono", 0.0) diff --git a/src/mame/drivers/naomi.cpp b/src/mame/drivers/naomi.cpp index c2f3e331e85..869ee9cd4e4 100644 --- a/src/mame/drivers/naomi.cpp +++ b/src/mame/drivers/naomi.cpp @@ -2701,7 +2701,8 @@ MACHINE_CONFIG_START(dc_state::naomi_aw_base) MCFG_PALETTE_ADD("palette", 0x1000) MCFG_POWERVR2_ADD("powervr2", WRITE8(*this, dc_state, pvr_irq)) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("aica", AICA, 0) MCFG_AICA_MASTER MCFG_AICA_IRQ_CB(WRITELINE(*this, dc_state, aica_irq)) diff --git a/src/mame/drivers/naughtyb.cpp b/src/mame/drivers/naughtyb.cpp index d1db25ce37c..df2a76c5f11 100644 --- a/src/mame/drivers/naughtyb.cpp +++ b/src/mame/drivers/naughtyb.cpp @@ -429,7 +429,7 @@ MACHINE_CONFIG_START(naughtyb_state::naughtyb) /* sound hardware */ /* uses the TMS3615NS for sound */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_TMS36XX_ADD("tms", 350) MCFG_TMS36XX_TYPE(TMS3615) @@ -466,7 +466,7 @@ MACHINE_CONFIG_START(naughtyb_state::popflame) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_TMS36XX_ADD("tms", 350) MCFG_TMS36XX_TYPE(TMS3615) diff --git a/src/mame/drivers/nbmj8688.cpp b/src/mame/drivers/nbmj8688.cpp index d252a52c2be..00c12b8f441 100644 --- a/src/mame/drivers/nbmj8688.cpp +++ b/src/mame/drivers/nbmj8688.cpp @@ -2480,7 +2480,7 @@ MACHINE_CONFIG_START(nbmj8688_state::NBMJDRV_4096) MCFG_VIDEO_START_OVERRIDE(nbmj8688_state,mbmj8688_pure_12bit) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("psg", AY8910, 1250000) MCFG_AY8910_PORT_A_READ_CB(READ8(*this, nbmj8688_state, dipsw1_r)) // DIPSW-A read @@ -2673,7 +2673,7 @@ MACHINE_CONFIG_START(nbmj8688_state::mbmj_p16bit_LCD) MCFG_VIDEO_START_OVERRIDE(nbmj8688_state,mbmj8688_pure_16bit_LCD) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("psg", AY8910, 1250000) MCFG_AY8910_PORT_A_READ_CB(READ8(*this, nbmj8688_state, dipsw1_r)) // DIPSW-A read diff --git a/src/mame/drivers/nbmj8891.cpp b/src/mame/drivers/nbmj8891.cpp index fcb928d16a1..f4951b06bff 100644 --- a/src/mame/drivers/nbmj8891.cpp +++ b/src/mame/drivers/nbmj8891.cpp @@ -2224,7 +2224,7 @@ MACHINE_CONFIG_START(nbmj8891_state::gionbana) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("fmsnd", YM3812, 2500000) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) diff --git a/src/mame/drivers/nbmj8900.cpp b/src/mame/drivers/nbmj8900.cpp index 3f55a7f8bb9..32b2e73a000 100644 --- a/src/mame/drivers/nbmj8900.cpp +++ b/src/mame/drivers/nbmj8900.cpp @@ -328,7 +328,7 @@ MACHINE_CONFIG_START(nbmj8900_state::ohpaipee) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("ymsnd", YM3812, 2500000) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.7) diff --git a/src/mame/drivers/nbmj8991.cpp b/src/mame/drivers/nbmj8991.cpp index 64c02e436de..142e241cf5e 100644 --- a/src/mame/drivers/nbmj8991.cpp +++ b/src/mame/drivers/nbmj8991.cpp @@ -1351,7 +1351,7 @@ MACHINE_CONFIG_START(nbmj8991_state::nbmjdrv1) // galkoku MCFG_PALETTE_ADD("palette", 256) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("fmsnd", YM3812, 25000000/10) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.7) @@ -1388,7 +1388,7 @@ MACHINE_CONFIG_START(nbmj8991_state::nbmjdrv2) // pstadium MCFG_PALETTE_ADD("palette", 256) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/nbmj9195.cpp b/src/mame/drivers/nbmj9195.cpp index 1045f59ad40..fd3216dec28 100644 --- a/src/mame/drivers/nbmj9195.cpp +++ b/src/mame/drivers/nbmj9195.cpp @@ -2562,7 +2562,7 @@ MACHINE_CONFIG_START(nbmj9195_state::NBMJDRV1_base) MCFG_PALETTE_ADD("palette", 256) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/nc.cpp b/src/mame/drivers/nc.cpp index 036816f3c24..2347bac272f 100644 --- a/src/mame/drivers/nc.cpp +++ b/src/mame/drivers/nc.cpp @@ -1421,7 +1421,7 @@ MACHINE_CONFIG_START(nc_state::nc100) MCFG_DEFAULT_LAYOUT(layout_lcd) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beep.1", BEEP, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) MCFG_DEVICE_ADD("beep.2", BEEP, 0) diff --git a/src/mame/drivers/nemesis.cpp b/src/mame/drivers/nemesis.cpp index 6e25c246d0f..8f4900df475 100644 --- a/src/mame/drivers/nemesis.cpp +++ b/src/mame/drivers/nemesis.cpp @@ -1495,7 +1495,7 @@ MACHINE_CONFIG_START(nemesis_state::nemesis) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -1564,7 +1564,7 @@ MACHINE_CONFIG_START(nemesis_state::gx400) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -1635,7 +1635,7 @@ MACHINE_CONFIG_START(nemesis_state::konamigt) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -1704,7 +1704,7 @@ MACHINE_CONFIG_START(nemesis_state::rf2_gx400) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -1766,7 +1766,8 @@ MACHINE_CONFIG_START(nemesis_state::salamand) MCFG_PALETTE_MEMBITS(8) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -1817,7 +1818,8 @@ MACHINE_CONFIG_START(nemesis_state::blkpnthr) MCFG_PALETTE_MEMBITS(8) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -1863,7 +1865,8 @@ MACHINE_CONFIG_START(nemesis_state::citybomb) MCFG_PALETTE_MEMBITS(8) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -1913,7 +1916,8 @@ MACHINE_CONFIG_START(nemesis_state::nyanpani) MCFG_PALETTE_MEMBITS(8) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -1967,7 +1971,8 @@ MACHINE_CONFIG_START(nemesis_state::hcrash) MCFG_PALETTE_MEMBITS(8) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -2728,7 +2733,7 @@ MACHINE_CONFIG_START(nemesis_state::bubsys) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/neogeo.cpp b/src/mame/drivers/neogeo.cpp index 9ccee33e219..ea4e6f8b6da 100644 --- a/src/mame/drivers/neogeo.cpp +++ b/src/mame/drivers/neogeo.cpp @@ -1934,7 +1934,8 @@ MACHINE_CONFIG_END MACHINE_CONFIG_START(neogeo_base_state::neogeo_stereo) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_MODIFY("ymsnd") MCFG_SOUND_ROUTE(0, "lspeaker", 0.28) @@ -1964,7 +1965,7 @@ MACHINE_CONFIG_END MACHINE_CONFIG_START(ngarcade_base_state::neogeo_mono) - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_MODIFY("ymsnd") MCFG_SOUND_ROUTE(0, "speaker", 0.28) diff --git a/src/mame/drivers/neoprint.cpp b/src/mame/drivers/neoprint.cpp index b5831f98dea..cb4bf27ae89 100644 --- a/src/mame/drivers/neoprint.cpp +++ b/src/mame/drivers/neoprint.cpp @@ -521,7 +521,8 @@ MACHINE_CONFIG_START(neoprint_state::neoprint) MCFG_PALETTE_ADD("palette", 0x10000) MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -566,7 +567,8 @@ MACHINE_CONFIG_START(neoprint_state::nprsp) MCFG_PALETTE_ADD("palette", 0x10000) MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/neptunp2.cpp b/src/mame/drivers/neptunp2.cpp index 6e5bdad61ad..aa7c6089699 100644 --- a/src/mame/drivers/neptunp2.cpp +++ b/src/mame/drivers/neptunp2.cpp @@ -118,7 +118,7 @@ MACHINE_CONFIG_START(neptunp2_state::neptunp2) MCFG_PALETTE_ADD("palette", 512) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MACHINE_CONFIG_END diff --git a/src/mame/drivers/nes.cpp b/src/mame/drivers/nes.cpp index 3149481a1b6..3d409f8b9c3 100644 --- a/src/mame/drivers/nes.cpp +++ b/src/mame/drivers/nes.cpp @@ -70,7 +70,7 @@ MACHINE_CONFIG_START(nes_state::nes) MCFG_PPU2C0X_INT_CALLBACK(INPUTLINE("maincpu", INPUT_LINE_NMI)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); // note APU sound level here was specified as 0.90, not 0.50 like the others // not sure how to adjust it when it's inside the CPU? diff --git a/src/mame/drivers/nes_vt.cpp b/src/mame/drivers/nes_vt.cpp index fea931ced72..950baf28649 100644 --- a/src/mame/drivers/nes_vt.cpp +++ b/src/mame/drivers/nes_vt.cpp @@ -1382,7 +1382,7 @@ MACHINE_CONFIG_START(nes_vt_state::nes_vt) //MCFG_NESCTRL_BRIGHTPIXEL_CB(nes_state, bright_pixel) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); /* this should actually be a custom *almost* doubled up APU, however requires more thought than just using 2 APUs as registers in the 2nd one affect the PCM channel mode but the diff --git a/src/mame/drivers/news.cpp b/src/mame/drivers/news.cpp index 4f8418f2c16..b323f215139 100644 --- a/src/mame/drivers/news.cpp +++ b/src/mame/drivers/news.cpp @@ -152,7 +152,7 @@ MACHINE_CONFIG_START(news_state::news) MCFG_PALETTE_ENDIANNESS(ENDIANNESS_BIG) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, 1056000, okim6295_device::PIN7_HIGH) // clock frequency & pin 7 not verified MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/ngp.cpp b/src/mame/drivers/ngp.cpp index 0a26c2ce5b2..bcaee771231 100644 --- a/src/mame/drivers/ngp.cpp +++ b/src/mame/drivers/ngp.cpp @@ -841,7 +841,8 @@ MACHINE_CONFIG_START(ngp_state::ngp_common) MCFG_DEFAULT_LAYOUT(layout_lcd) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO( "lspeaker","rspeaker" ) + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD( "t6w28", T6W28, 6.144_MHz_XTAL/2 ) MCFG_SOUND_ROUTE( 0, "lspeaker", 0.50 ) diff --git a/src/mame/drivers/nightgal.cpp b/src/mame/drivers/nightgal.cpp index 8552f07a6a8..602b09be10a 100644 --- a/src/mame/drivers/nightgal.cpp +++ b/src/mame/drivers/nightgal.cpp @@ -812,7 +812,7 @@ MACHINE_CONFIG_START(nightgal_state::royalqn) MCFG_PALETTE_INIT_OWNER(nightgal_state, nightgal) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, MASTER_CLOCK / 8) MCFG_AY8910_PORT_A_READ_CB(READ8(*this, nightgal_state, input_1p_r)) diff --git a/src/mame/drivers/ninjakd2.cpp b/src/mame/drivers/ninjakd2.cpp index 3e4f0f2c13c..d898cfacb75 100644 --- a/src/mame/drivers/ninjakd2.cpp +++ b/src/mame/drivers/ninjakd2.cpp @@ -955,7 +955,7 @@ MACHINE_CONFIG_START(ninjakd2_state::ninjakd2_core) MCFG_PALETTE_ENDIANNESS(ENDIANNESS_BIG) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/ninjaw.cpp b/src/mame/drivers/ninjaw.cpp index 97ce74a7549..d482445233b 100644 --- a/src/mame/drivers/ninjaw.cpp +++ b/src/mame/drivers/ninjaw.cpp @@ -830,7 +830,8 @@ MACHINE_CONFIG_START(ninjaw_state::ninjaw) MCFG_TC0110PCR_PALETTE("palette3") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2610, 16000000/2) MCFG_YM2610_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) @@ -948,7 +949,8 @@ MACHINE_CONFIG_START(ninjaw_state::darius2) MCFG_TC0110PCR_PALETTE("palette3") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2610, 16000000/2) MCFG_YM2610_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) diff --git a/src/mame/drivers/nitedrvr.cpp b/src/mame/drivers/nitedrvr.cpp index 61143b73e4b..0be22c8462d 100644 --- a/src/mame/drivers/nitedrvr.cpp +++ b/src/mame/drivers/nitedrvr.cpp @@ -166,7 +166,7 @@ MACHINE_CONFIG_START(nitedrvr_state::nitedrvr) MCFG_PALETTE_ADD_MONOCHROME("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("discrete", DISCRETE, nitedrvr_discrete) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/nmg5.cpp b/src/mame/drivers/nmg5.cpp index f10dc55dae3..3771de3bbcd 100644 --- a/src/mame/drivers/nmg5.cpp +++ b/src/mame/drivers/nmg5.cpp @@ -1023,7 +1023,7 @@ MACHINE_CONFIG_START(nmg5_state::nmg5) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/nmk16.cpp b/src/mame/drivers/nmk16.cpp index c18d55fe2ba..ae7a852d462 100644 --- a/src/mame/drivers/nmk16.cpp +++ b/src/mame/drivers/nmk16.cpp @@ -3866,7 +3866,7 @@ MACHINE_CONFIG_START(nmk16_state::tharrier) MCFG_VIDEO_START_OVERRIDE(nmk16_state,macross) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_8_ADD("soundlatch2") @@ -3906,7 +3906,7 @@ MACHINE_CONFIG_START(nmk16_state::mustang) MCFG_VIDEO_START_OVERRIDE(nmk16_state,macross) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_NMK004_ADD("nmk004", 8000000) MCFG_NMK004_RESET_CB(INPUTLINE("maincpu", INPUT_LINE_RESET)) @@ -3949,7 +3949,7 @@ MACHINE_CONFIG_START(nmk16_state::mustangb) MCFG_VIDEO_START_OVERRIDE(nmk16_state,macross) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM3812, 14318180/4) MCFG_YM3812_IRQ_HANDLER(WRITELINE("seibu_sound", seibu_sound_device, fm_irqhandler)) @@ -3987,7 +3987,7 @@ MACHINE_CONFIG_START(nmk16_state::bioship) MCFG_VIDEO_START_OVERRIDE(nmk16_state,bioship) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_NMK004_ADD("nmk004", 8000000) MCFG_NMK004_RESET_CB(INPUTLINE("maincpu", INPUT_LINE_RESET)) @@ -4027,7 +4027,7 @@ MACHINE_CONFIG_START(nmk16_state::vandyke) MCFG_VIDEO_START_OVERRIDE(nmk16_state,macross) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_NMK004_ADD("nmk004", 8000000) MCFG_NMK004_RESET_CB(INPUTLINE("maincpu", INPUT_LINE_RESET)) @@ -4070,7 +4070,7 @@ MACHINE_CONFIG_START(nmk16_state::vandykeb) MCFG_VIDEO_START_OVERRIDE(nmk16_state,macross) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki1", OKIM6295, 16000000/16, okim6295_device::PIN7_LOW) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.20) @@ -4096,7 +4096,7 @@ MACHINE_CONFIG_START(nmk16_state::acrobatm) MCFG_VIDEO_START_OVERRIDE(nmk16_state,macross) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_NMK004_ADD("nmk004", 8000000) MCFG_NMK004_RESET_CB(INPUTLINE("maincpu", INPUT_LINE_RESET)) @@ -4140,7 +4140,7 @@ MACHINE_CONFIG_START(nmk16_state::tdragonb) /* bootleg using Raiden sound har MCFG_VIDEO_START_OVERRIDE(nmk16_state,macross) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM3812, 14318180/4) MCFG_YM3812_IRQ_HANDLER(WRITELINE("seibu_sound", seibu_sound_device, fm_irqhandler)) @@ -4175,7 +4175,7 @@ MACHINE_CONFIG_START(nmk16_state::tdragon) MCFG_VIDEO_START_OVERRIDE(nmk16_state,macross) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_NMK004_ADD("nmk004", 8000000) MCFG_NMK004_RESET_CB(INPUTLINE("maincpu", INPUT_LINE_RESET)) @@ -4223,7 +4223,7 @@ MACHINE_CONFIG_START(nmk16_state::ssmissin) MCFG_VIDEO_START_OVERRIDE(nmk16_state,macross) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", 0)) @@ -4252,7 +4252,7 @@ MACHINE_CONFIG_START(nmk16_state::strahl) MCFG_VIDEO_START_OVERRIDE(nmk16_state,strahl) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_NMK004_ADD("nmk004", 8000000) MCFG_NMK004_RESET_CB(INPUTLINE("maincpu", INPUT_LINE_RESET)) @@ -4292,7 +4292,7 @@ MACHINE_CONFIG_START(nmk16_state::hachamf) MCFG_VIDEO_START_OVERRIDE(nmk16_state,macross) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_NMK004_ADD("nmk004", 8000000) MCFG_NMK004_RESET_CB(INPUTLINE("maincpu", INPUT_LINE_RESET)) @@ -4338,7 +4338,7 @@ MACHINE_CONFIG_START(nmk16_state::macross) MCFG_VIDEO_START_OVERRIDE(nmk16_state,macross) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_NMK004_ADD("nmk004", 8000000) MCFG_NMK004_RESET_CB(INPUTLINE("maincpu", INPUT_LINE_RESET)) @@ -4378,7 +4378,7 @@ MACHINE_CONFIG_START(nmk16_state::blkheart) MCFG_VIDEO_START_OVERRIDE(nmk16_state,macross) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_NMK004_ADD("nmk004", 8000000) MCFG_NMK004_RESET_CB(INPUTLINE("maincpu", INPUT_LINE_RESET)) @@ -4417,7 +4417,7 @@ MACHINE_CONFIG_START(nmk16_state::gunnail) MCFG_VIDEO_START_OVERRIDE(nmk16_state,gunnail) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_NMK004_ADD("nmk004", XTAL(16'000'000)/2) /* verified on pcb */ MCFG_NMK004_RESET_CB(INPUTLINE("maincpu", INPUT_LINE_RESET)) @@ -4461,7 +4461,7 @@ MACHINE_CONFIG_START(nmk16_state::macross2) MCFG_VIDEO_START_OVERRIDE(nmk16_state,macross2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_8_ADD("soundlatch2") @@ -4507,7 +4507,7 @@ MACHINE_CONFIG_START(nmk16_state::tdragon2) MCFG_VIDEO_START_OVERRIDE(nmk16_state,macross2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_8_ADD("soundlatch2") @@ -4560,7 +4560,7 @@ MACHINE_CONFIG_START(nmk16_state::raphero) MCFG_VIDEO_START_OVERRIDE(nmk16_state,raphero) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_8_ADD("soundlatch2") @@ -4602,7 +4602,7 @@ MACHINE_CONFIG_START(nmk16_state::bjtwin) MCFG_VIDEO_START_OVERRIDE(nmk16_state,bjtwin) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki1", OKIM6295, 16000000/4, okim6295_device::PIN7_LOW) /* verified on pcb */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.20) @@ -4664,7 +4664,7 @@ MACHINE_CONFIG_START(nmk16_state::manybloc) MCFG_VIDEO_START_OVERRIDE(nmk16_state,macross) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_8_ADD("soundlatch2") @@ -5176,7 +5176,8 @@ MACHINE_CONFIG_START(nmk16_state::stagger1) MCFG_VIDEO_START_OVERRIDE(nmk16_state,afega) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", 0)) @@ -5266,7 +5267,7 @@ MACHINE_CONFIG_START(nmk16_state::firehawk) MCFG_VIDEO_START_OVERRIDE(nmk16_state,firehawk) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", 0)) @@ -5307,7 +5308,7 @@ MACHINE_CONFIG_START(nmk16_state::twinactn) MCFG_VIDEO_START_OVERRIDE(nmk16_state,macross) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", 0)) diff --git a/src/mame/drivers/nmkmedal.cpp b/src/mame/drivers/nmkmedal.cpp index 513327f21f7..dc3821a12c7 100644 --- a/src/mame/drivers/nmkmedal.cpp +++ b/src/mame/drivers/nmkmedal.cpp @@ -59,7 +59,7 @@ MACHINE_CONFIG_START(nmkmedal_state::trocana) MCFG_DEVICE_ADD("maincpu", TMP90841, 16500000 / 2) // actually TMP90C041AN MCFG_DEVICE_PROGRAM_MAP(mem_map) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6376, 16500000 / 16) // actually MSM6650 MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) MACHINE_CONFIG_END diff --git a/src/mame/drivers/norautp.cpp b/src/mame/drivers/norautp.cpp index da9672cf969..7abaf94fbce 100644 --- a/src/mame/drivers/norautp.cpp +++ b/src/mame/drivers/norautp.cpp @@ -1285,7 +1285,7 @@ MACHINE_CONFIG_START(norautp_state::noraut_base) MCFG_PALETTE_INIT_OWNER(norautp_state, norautp) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("discrete", DISCRETE, norautp_discrete) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) MACHINE_CONFIG_END diff --git a/src/mame/drivers/notechan.cpp b/src/mame/drivers/notechan.cpp index 7bd227a383c..fb307172c1f 100644 --- a/src/mame/drivers/notechan.cpp +++ b/src/mame/drivers/notechan.cpp @@ -508,7 +508,7 @@ MACHINE_CONFIG_START(notechan_state::notechan) /* NO VIDEO */ /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, SND_CLOCK, okim6295_device::PIN7_HIGH) // match the real sounds MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 1.0) diff --git a/src/mame/drivers/notetaker.cpp b/src/mame/drivers/notetaker.cpp index 91e4d317573..67baa7cedf1 100644 --- a/src/mame/drivers/notetaker.cpp +++ b/src/mame/drivers/notetaker.cpp @@ -854,7 +854,8 @@ MACHINE_CONFIG_START(notetaker_state::notetakr) MCFG_FLOPPY_DRIVE_ADD("wd1791:0", notetaker_floppies, "525dd", floppy_image_device::default_floppy_formats) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); // TODO: hook DAC up to two HA2425 (sample and hold) chips and hook those up to the speakers MCFG_DEVICE_ADD("dac", DAC1200, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.5) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 0.5) // unknown DAC MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) diff --git a/src/mame/drivers/nova2001.cpp b/src/mame/drivers/nova2001.cpp index 3bff2515e6b..c4c61cca061 100644 --- a/src/mame/drivers/nova2001.cpp +++ b/src/mame/drivers/nova2001.cpp @@ -671,7 +671,7 @@ MACHINE_CONFIG_START(nova2001_state::nova2001) MCFG_VIDEO_START_OVERRIDE(nova2001_state,nova2001) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay1", AY8910, MAIN_CLOCK/6) // 2 MHz verified on schematics MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(*this, nova2001_state, nova2001_scroll_x_w)) @@ -715,7 +715,7 @@ MACHINE_CONFIG_START(nova2001_state::ninjakun) MCFG_VIDEO_START_OVERRIDE(nova2001_state,ninjakun) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay1", AY8910, MAIN_CLOCK/4) // 3 MHz MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW1")) @@ -752,7 +752,7 @@ MACHINE_CONFIG_START(nova2001_state::pkunwar) MCFG_VIDEO_START_OVERRIDE(nova2001_state,pkunwar) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay1", AY8910, MAIN_CLOCK/8) // 1.5MHz (correct?) MCFG_AY8910_PORT_A_READ_CB(IOPORT("IN0")) @@ -794,7 +794,7 @@ MACHINE_CONFIG_START(nova2001_state::raiders5) MCFG_VIDEO_START_OVERRIDE(nova2001_state,raiders5) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay1", AY8910, MAIN_CLOCK/8) // 1.5MHz MCFG_AY8910_PORT_A_READ_CB(IOPORT("IN0")) diff --git a/src/mame/drivers/novag6502.cpp b/src/mame/drivers/novag6502.cpp index f38a0df4169..f26cdc8c07c 100644 --- a/src/mame/drivers/novag6502.cpp +++ b/src/mame/drivers/novag6502.cpp @@ -878,7 +878,7 @@ MACHINE_CONFIG_START(novag6502_state::supercon) MCFG_DEFAULT_LAYOUT(layout_novag_supercon) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, 1024) // guessed MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -902,7 +902,7 @@ MACHINE_CONFIG_START(novag6502_state::cforte) MCFG_DEFAULT_LAYOUT(layout_novag_cforte) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, 32.768_kHz_XTAL/32) // 1024Hz MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -949,7 +949,7 @@ MACHINE_CONFIG_START(novag6502_state::sexpert) MCFG_DEFAULT_LAYOUT(layout_novag_sexpert) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, 32.768_kHz_XTAL/32) // 1024Hz MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END diff --git a/src/mame/drivers/novag68k.cpp b/src/mame/drivers/novag68k.cpp index 9a41f11e15e..11594afd51b 100644 --- a/src/mame/drivers/novag68k.cpp +++ b/src/mame/drivers/novag68k.cpp @@ -266,7 +266,7 @@ MACHINE_CONFIG_START(novag68k_state::diablo68k) MCFG_DEFAULT_LAYOUT(layout_novag_diablo68k) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, 32.768_kHz_XTAL/32) // 1024Hz MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END diff --git a/src/mame/drivers/novagmcs48.cpp b/src/mame/drivers/novagmcs48.cpp index a7de38af76a..b0ff173ccbf 100644 --- a/src/mame/drivers/novagmcs48.cpp +++ b/src/mame/drivers/novagmcs48.cpp @@ -156,7 +156,7 @@ MACHINE_CONFIG_START(novagmcs48_state::presto) MCFG_DEFAULT_LAYOUT(layout_novag_presto) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) diff --git a/src/mame/drivers/nsm.cpp b/src/mame/drivers/nsm.cpp index b6f8c1f9d12..acbe76cea9d 100644 --- a/src/mame/drivers/nsm.cpp +++ b/src/mame/drivers/nsm.cpp @@ -133,7 +133,8 @@ MACHINE_CONFIG_START(nsm_state::nsm) MCFG_DEFAULT_LAYOUT(layout_nsm) /* Sound */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ay1", AY8912, 11052000/8) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.75) MCFG_DEVICE_ADD("ay2", AY8912, 11052000/8) diff --git a/src/mame/drivers/nss.cpp b/src/mame/drivers/nss.cpp index 21e83165d3c..cd460820efa 100644 --- a/src/mame/drivers/nss.cpp +++ b/src/mame/drivers/nss.cpp @@ -851,7 +851,8 @@ MACHINE_CONFIG_START(nss_state::nss) MCFG_M6M80011AP_ADD("m6m80011ap") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("spc700", SNES_SOUND) MCFG_SOUND_ROUTE(0, "lspeaker", 1.00) MCFG_SOUND_ROUTE(1, "rspeaker", 1.00) diff --git a/src/mame/drivers/nwk-tr.cpp b/src/mame/drivers/nwk-tr.cpp index 6bc9813c891..f68205c78e1 100644 --- a/src/mame/drivers/nwk-tr.cpp +++ b/src/mame/drivers/nwk-tr.cpp @@ -888,7 +888,8 @@ MACHINE_CONFIG_START(nwktr_state::nwktr) MCFG_K001604_ROZ_OFFSET(0) // correct? MCFG_K001604_PALETTE("palette") - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_K056800_ADD("k056800", XTAL(16'934'400)) MCFG_K056800_INT_HANDLER(INPUTLINE("audiocpu", M68K_IRQ_2)) diff --git a/src/mame/drivers/nycaptor.cpp b/src/mame/drivers/nycaptor.cpp index 7e95342636d..931ff7a394d 100644 --- a/src/mame/drivers/nycaptor.cpp +++ b/src/mame/drivers/nycaptor.cpp @@ -767,7 +767,7 @@ MACHINE_CONFIG_START(nycaptor_state::nycaptor) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(WRITELINE("soundnmi", input_merger_device, in_w<0>)) @@ -841,7 +841,7 @@ MACHINE_CONFIG_START(nycaptor_state::cyclshtg) MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR) - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(WRITELINE("soundnmi", input_merger_device, in_w<0>)) @@ -910,7 +910,7 @@ MACHINE_CONFIG_START(nycaptor_state::bronx) MCFG_PALETTE_ADD("palette", 512) MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR) - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(WRITELINE("soundnmi", input_merger_device, in_w<0>)) diff --git a/src/mame/drivers/nyny.cpp b/src/mame/drivers/nyny.cpp index f185af5aa2e..451eb2dc6ca 100644 --- a/src/mame/drivers/nyny.cpp +++ b/src/mame/drivers/nyny.cpp @@ -645,7 +645,7 @@ MACHINE_CONFIG_START(nyny_state::nyny) MCFG_PIA_IRQB_HANDLER(WRITELINE(*this, nyny_state,main_cpu_irq)) /* audio hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_8_ADD("soundlatch2") diff --git a/src/mame/drivers/octopus.cpp b/src/mame/drivers/octopus.cpp index 51086e32d22..0af6643c9d4 100644 --- a/src/mame/drivers/octopus.cpp +++ b/src/mame/drivers/octopus.cpp @@ -970,7 +970,7 @@ MACHINE_CONFIG_START(octopus_state::octopus) MCFG_PIT8253_CLK2(2457500) // speaker frequency MCFG_PIT8253_OUT2_HANDLER(WRITELINE(*this, octopus_state,spk_freq_w)) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/odyssey2.cpp b/src/mame/drivers/odyssey2.cpp index e6fdd1a0067..c008738b44a 100644 --- a/src/mame/drivers/odyssey2.cpp +++ b/src/mame/drivers/odyssey2.cpp @@ -694,7 +694,7 @@ MACHINE_CONFIG_START(odyssey2_state::odyssey2) MCFG_PALETTE_INIT_OWNER(odyssey2_state, odyssey2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_I8244_ADD( "i8244", XTAL(7'159'090)/2 * 2, "screen", INPUTLINE( "maincpu", 0 ), WRITE16( *this, odyssey2_state, scanline_postprocess ) ) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.40) @@ -720,7 +720,7 @@ MACHINE_CONFIG_START(odyssey2_state::videopac) MCFG_PALETTE_INIT_OWNER(odyssey2_state, odyssey2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_I8245_ADD( "i8244", XTAL(17'734'470)/5 * 2, "screen", INPUTLINE( "maincpu", 0 ), WRITE16( *this, odyssey2_state, scanline_postprocess ) ) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.40) @@ -758,7 +758,7 @@ MACHINE_CONFIG_START(g7400_state::g7400) MCFG_EF9340_1_ADD( "ef9340_1", 3540000, "screen" ) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_I8245_ADD( "i8244", 3540000 * 2, "screen", INPUTLINE( "maincpu", 0 ), WRITE16( *this, g7400_state, scanline_postprocess ) ) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.40) @@ -799,7 +799,7 @@ MACHINE_CONFIG_START(g7400_state::odyssey3) MCFG_EF9340_1_ADD( "ef9340_1", 3540000, "screen" ) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_I8244_ADD( "i8244", 3540000 * 2, "screen", INPUTLINE( "maincpu", 0 ), WRITE16( *this, g7400_state, scanline_postprocess ) ) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.40) diff --git a/src/mame/drivers/offtwall.cpp b/src/mame/drivers/offtwall.cpp index a86eaa42fd3..3f66a6b6e07 100644 --- a/src/mame/drivers/offtwall.cpp +++ b/src/mame/drivers/offtwall.cpp @@ -364,7 +364,7 @@ MACHINE_CONFIG_START(offtwall_state::offtwall) MCFG_SCREEN_PALETTE("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_ATARI_JSA_III_ADD("jsa", INPUTLINE("maincpu", M68K_IRQ_6)) MCFG_ATARI_JSA_TEST_PORT("260010", 6) diff --git a/src/mame/drivers/ohmygod.cpp b/src/mame/drivers/ohmygod.cpp index 77876cd338e..85222479887 100644 --- a/src/mame/drivers/ohmygod.cpp +++ b/src/mame/drivers/ohmygod.cpp @@ -346,7 +346,7 @@ MACHINE_CONFIG_START(ohmygod_state::ohmygod) MCFG_PALETTE_FORMAT(xGGGGGRRRRRBBBBB) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, 14000000/8, okim6295_device::PIN7_HIGH) MCFG_DEVICE_ADDRESS_MAP(0, oki_map) diff --git a/src/mame/drivers/ojankohs.cpp b/src/mame/drivers/ojankohs.cpp index 35fa4e506dd..de15ccf635c 100644 --- a/src/mame/drivers/ojankohs.cpp +++ b/src/mame/drivers/ojankohs.cpp @@ -740,7 +740,7 @@ MACHINE_CONFIG_START(ojankohs_state::ojankohs) MCFG_VIDEO_START_OVERRIDE(ojankohs_state,ojankohs) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", YM2149, 12000000/6) MCFG_AY8910_PORT_A_READ_CB(READ8(*this, ojankohs_state, ojankohs_dipsw1_r)) @@ -780,7 +780,7 @@ MACHINE_CONFIG_START(ojankohs_state::ojankoy) MCFG_VIDEO_START_OVERRIDE(ojankohs_state,ojankoy) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, 12000000/8) MCFG_AY8910_PORT_A_READ_CB(IOPORT("dsw1")) @@ -821,7 +821,7 @@ MACHINE_CONFIG_START(ojankohs_state::ccasino) MCFG_VIDEO_START_OVERRIDE(ojankohs_state,ccasino) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, 12000000/8) MCFG_AY8910_PORT_A_READ_CB(IOPORT("dsw1")) @@ -859,7 +859,7 @@ MACHINE_CONFIG_START(ojankohs_state::ojankoc) MCFG_VIDEO_START_OVERRIDE(ojankohs_state,ojankoc) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, 8000000/4) MCFG_AY8910_PORT_A_READ_CB(IOPORT("dsw1")) diff --git a/src/mame/drivers/olibochu.cpp b/src/mame/drivers/olibochu.cpp index 8c206b35af7..11534d25b1b 100644 --- a/src/mame/drivers/olibochu.cpp +++ b/src/mame/drivers/olibochu.cpp @@ -490,7 +490,7 @@ MACHINE_CONFIG_START(olibochu_state::olibochu) MCFG_PALETTE_INIT_OWNER(olibochu_state, olibochu) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/omegrace.cpp b/src/mame/drivers/omegrace.cpp index 331fb19100f..a479c8264fe 100644 --- a/src/mame/drivers/omegrace.cpp +++ b/src/mame/drivers/omegrace.cpp @@ -542,7 +542,7 @@ MACHINE_CONFIG_START(omegrace_state::omegrace) MCFG_AVGDVG_VECTOR("vector") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/ondra.cpp b/src/mame/drivers/ondra.cpp index d275f9b8a2a..6aa0a83eb60 100644 --- a/src/mame/drivers/ondra.cpp +++ b/src/mame/drivers/ondra.cpp @@ -141,7 +141,7 @@ MACHINE_CONFIG_START(ondra_state::ondra) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mame/drivers/oneshot.cpp b/src/mame/drivers/oneshot.cpp index 040f8e8a9f9..6785f0244e7 100644 --- a/src/mame/drivers/oneshot.cpp +++ b/src/mame/drivers/oneshot.cpp @@ -386,7 +386,7 @@ MACHINE_CONFIG_START(oneshot_state::oneshot) MCFG_PALETTE_ADD("palette", 0x400) MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/onetwo.cpp b/src/mame/drivers/onetwo.cpp index 2e8564acf62..7f50c6f2751 100644 --- a/src/mame/drivers/onetwo.cpp +++ b/src/mame/drivers/onetwo.cpp @@ -385,7 +385,7 @@ MACHINE_CONFIG_START(onetwo_state::onetwo) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) diff --git a/src/mame/drivers/opwolf.cpp b/src/mame/drivers/opwolf.cpp index 29f4edc0a94..c6755abadab 100644 --- a/src/mame/drivers/opwolf.cpp +++ b/src/mame/drivers/opwolf.cpp @@ -820,7 +820,8 @@ MACHINE_CONFIG_START(opwolf_state::opwolf) MCFG_PC090OJ_PALETTE("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2151, SOUND_CPU_CLOCK) /* 4 MHz */ MCFG_YM2151_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) @@ -897,7 +898,8 @@ MACHINE_CONFIG_START(opwolf_state::opwolfb) /* OSC clocks unknown for the bootle MCFG_PC090OJ_PALETTE("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2151, SOUND_CPU_CLOCK) MCFG_YM2151_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) diff --git a/src/mame/drivers/orao.cpp b/src/mame/drivers/orao.cpp index 81a86f2f96c..0b1e849e832 100644 --- a/src/mame/drivers/orao.cpp +++ b/src/mame/drivers/orao.cpp @@ -188,7 +188,7 @@ MACHINE_CONFIG_START(orao_state::orao) /* audio hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") diff --git a/src/mame/drivers/orbit.cpp b/src/mame/drivers/orbit.cpp index 335ae5e6180..b4329bb44ec 100644 --- a/src/mame/drivers/orbit.cpp +++ b/src/mame/drivers/orbit.cpp @@ -300,7 +300,8 @@ MACHINE_CONFIG_START(orbit_state::orbit) MCFG_PALETTE_ADD_MONOCHROME("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("discrete", DISCRETE, orbit_discrete) MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) diff --git a/src/mame/drivers/oric.cpp b/src/mame/drivers/oric.cpp index 594ec4265fa..f05f0f1b28c 100644 --- a/src/mame/drivers/oric.cpp +++ b/src/mame/drivers/oric.cpp @@ -789,7 +789,7 @@ MACHINE_CONFIG_START(oric_state::oric) MCFG_PALETTE_ADD_3BIT_RGB("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MCFG_DEVICE_ADD("ay8912", AY8912, XTAL(12'000'000)/12) diff --git a/src/mame/drivers/orion.cpp b/src/mame/drivers/orion.cpp index e406596ecaf..19297b94ce7 100644 --- a/src/mame/drivers/orion.cpp +++ b/src/mame/drivers/orion.cpp @@ -125,7 +125,7 @@ MACHINE_CONFIG_START(orion_state::orion128) MCFG_VIDEO_START_OVERRIDE(orion_state,orion128) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) @@ -201,7 +201,7 @@ MACHINE_CONFIG_START(orion_state::orionz80) MCFG_MC146818_ADD( "rtc", XTAL(4'194'304) ) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") @@ -277,7 +277,7 @@ MACHINE_CONFIG_START(orion_state::orionpro) MCFG_VIDEO_START_OVERRIDE(orion_state,orion128) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") diff --git a/src/mame/drivers/osbexec.cpp b/src/mame/drivers/osbexec.cpp index f02b3f9a860..3202033c0f8 100644 --- a/src/mame/drivers/osbexec.cpp +++ b/src/mame/drivers/osbexec.cpp @@ -577,7 +577,7 @@ MACHINE_CONFIG_START(osbexec_state::osbexec) MCFG_SCREEN_PALETTE("palette") MCFG_PALETTE_ADD_MONOCHROME_HIGHLIGHT("palette") - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD(m_speaker, SPEAKER_SOUND) MCFG_SOUND_ROUTE( ALL_OUTPUTS, "mono", 1.00 ) diff --git a/src/mame/drivers/osborne1.cpp b/src/mame/drivers/osborne1.cpp index ce51554daed..fe4ad832f3c 100644 --- a/src/mame/drivers/osborne1.cpp +++ b/src/mame/drivers/osborne1.cpp @@ -297,7 +297,7 @@ MACHINE_CONFIG_START(osborne1_state::osborne1) MCFG_GFXDECODE_ADD(m_gfxdecode, "palette", osborne1) MCFG_PALETTE_ADD_MONOCHROME_HIGHLIGHT("palette") - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD(m_speaker, SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) diff --git a/src/mame/drivers/osi.cpp b/src/mame/drivers/osi.cpp index d3439a12e24..0a18d6aad08 100644 --- a/src/mame/drivers/osi.cpp +++ b/src/mame/drivers/osi.cpp @@ -721,7 +721,7 @@ MACHINE_CONFIG_START(sb2m600_state::osi600) MCFG_GFXDECODE_ADD("gfxdecode", "palette", osi) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD(DISCRETE_TAG, DISCRETE) MCFG_DISCRETE_INTF(osi600_discrete_interface) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) @@ -777,7 +777,7 @@ MACHINE_CONFIG_START(c1p_state::c1p) MCFG_GFXDECODE_ADD("gfxdecode", "palette", osi) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD(DISCRETE_TAG, DISCRETE) MCFG_DISCRETE_INTF(osi600c_discrete_interface) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/othello.cpp b/src/mame/drivers/othello.cpp index b50b34feba4..1b656395a86 100644 --- a/src/mame/drivers/othello.cpp +++ b/src/mame/drivers/othello.cpp @@ -438,7 +438,7 @@ MACHINE_CONFIG_START(othello_state::othello) MCFG_MC6845_UPDATE_ROW_CB(othello_state, crtc_update_row) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/othunder.cpp b/src/mame/drivers/othunder.cpp index 60083bc073e..ab295718053 100644 --- a/src/mame/drivers/othunder.cpp +++ b/src/mame/drivers/othunder.cpp @@ -655,7 +655,7 @@ MACHINE_CONFIG_START(othunder_state::othunder) MCFG_TC0110PCR_PALETTE("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2610, 16000000/2) MCFG_YM2610_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) diff --git a/src/mame/drivers/overdriv.cpp b/src/mame/drivers/overdriv.cpp index 0193a071e65..db0e7f09139 100644 --- a/src/mame/drivers/overdriv.cpp +++ b/src/mame/drivers/overdriv.cpp @@ -380,7 +380,8 @@ MACHINE_CONFIG_START(overdriv_state::overdriv) MCFG_K053252_OFFSETS(13*8, 2*8) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2151, XTAL(3'579'545)) MCFG_SOUND_ROUTE(0, "lspeaker", 0.5) diff --git a/src/mame/drivers/p2000t.cpp b/src/mame/drivers/p2000t.cpp index b804320399a..b97311f1e55 100644 --- a/src/mame/drivers/p2000t.cpp +++ b/src/mame/drivers/p2000t.cpp @@ -242,7 +242,7 @@ MACHINE_CONFIG_START(p2000t_state::p2000t) MCFG_SAA5050_SCREEN_SIZE(40, 24, 80) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -271,7 +271,7 @@ MACHINE_CONFIG_START(p2000m_state::p2000m) MCFG_PALETTE_INIT_OWNER(p2000m_state,p2000m) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END diff --git a/src/mame/drivers/p8k.cpp b/src/mame/drivers/p8k.cpp index 57b34ac95b2..137eca075cb 100644 --- a/src/mame/drivers/p8k.cpp +++ b/src/mame/drivers/p8k.cpp @@ -474,7 +474,7 @@ MACHINE_CONFIG_START(p8k_state::p8k) MCFG_FLOPPY_DRIVE_ADD("i8272:1", p8k_floppies, "525hd", floppy_image_device::default_floppy_formats) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, 3250) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.5) @@ -525,7 +525,7 @@ MACHINE_CONFIG_START(p8k_state::p8k_16) MCFG_Z80PIO_OUT_INT_CB(WRITELINE(*this, p8k_state, p8k_16_daisy_interrupt)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, 3250) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.5) MACHINE_CONFIG_END diff --git a/src/mame/drivers/pachifev.cpp b/src/mame/drivers/pachifev.cpp index e0778b365fb..bd2e9c89086 100644 --- a/src/mame/drivers/pachifev.cpp +++ b/src/mame/drivers/pachifev.cpp @@ -360,7 +360,7 @@ MACHINE_CONFIG_START(pachifev_state::pachifev) MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, pachifev_state, vblank_w)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); #if USE_MSM MCFG_DEVICE_ADD("adpcm", MSM5205, XTAL(384'000)) /* guess */ MCFG_MSM5205_VCLK_CB(WRITELINE(*this, pachifev_state,pf_adpcm_int)) /* interrupt function */ diff --git a/src/mame/drivers/pacland.cpp b/src/mame/drivers/pacland.cpp index 07e2e7271ba..e97d855b7a3 100644 --- a/src/mame/drivers/pacland.cpp +++ b/src/mame/drivers/pacland.cpp @@ -452,7 +452,7 @@ MACHINE_CONFIG_START(pacland_state::pacland) MCFG_PALETTE_INIT_OWNER(pacland_state, pacland) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("namco", NAMCO_CUS30, XTAL(49'152'000)/2/1024) MCFG_NAMCO_AUDIO_VOICES(8) diff --git a/src/mame/drivers/pacman.cpp b/src/mame/drivers/pacman.cpp index c7962ceb1e0..f75f0aa7c44 100644 --- a/src/mame/drivers/pacman.cpp +++ b/src/mame/drivers/pacman.cpp @@ -3555,7 +3555,7 @@ MACHINE_CONFIG_START(pacman_state::pacman) MCFG_VIDEO_START_OVERRIDE(pacman_state,pacman) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("namco", NAMCO, MASTER_CLOCK/6/32) MCFG_NAMCO_AUDIO_VOICES(3) diff --git a/src/mame/drivers/palm.cpp b/src/mame/drivers/palm.cpp index 67f63ca3005..90c6e786642 100644 --- a/src/mame/drivers/palm.cpp +++ b/src/mame/drivers/palm.cpp @@ -199,7 +199,7 @@ MACHINE_CONFIG_START(palm_state::palm) MCFG_DEFAULT_LAYOUT(layout_lcd) /* audio hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) diff --git a/src/mame/drivers/pandoras.cpp b/src/mame/drivers/pandoras.cpp index 06a9c6c496f..e3a2a94f588 100644 --- a/src/mame/drivers/pandoras.cpp +++ b/src/mame/drivers/pandoras.cpp @@ -353,7 +353,7 @@ MACHINE_CONFIG_START(pandoras_state::pandoras) MCFG_PALETTE_INIT_OWNER(pandoras_state, pandoras) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_8_ADD("soundlatch2") diff --git a/src/mame/drivers/panicr.cpp b/src/mame/drivers/panicr.cpp index 3a88559033a..c4979335f9f 100644 --- a/src/mame/drivers/panicr.cpp +++ b/src/mame/drivers/panicr.cpp @@ -632,7 +632,7 @@ MACHINE_CONFIG_START(panicr_state::panicr) MCFG_PALETTE_INIT_OWNER(panicr_state, panicr) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2151, SOUND_CLOCK/4) /* 3.579545 MHz */ MCFG_YM2151_IRQ_HANDLER(WRITELINE("t5182", t5182_device, ym2151_irq_handler)) diff --git a/src/mame/drivers/paradise.cpp b/src/mame/drivers/paradise.cpp index a8f8e8da1b6..10363922e44 100644 --- a/src/mame/drivers/paradise.cpp +++ b/src/mame/drivers/paradise.cpp @@ -754,7 +754,7 @@ MACHINE_CONFIG_START(paradise_state::paradise) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki1", OKIM6295, XTAL(12'000'000)/12, okim6295_device::PIN7_HIGH) /* verified on pcb */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/paranoia.cpp b/src/mame/drivers/paranoia.cpp index 1c8d04b15a2..d40141f6ad5 100644 --- a/src/mame/drivers/paranoia.cpp +++ b/src/mame/drivers/paranoia.cpp @@ -204,7 +204,8 @@ MACHINE_CONFIG_START(paranoia_state::paranoia) MCFG_HUC6270_VRAM_SIZE(0x10000) MCFG_HUC6270_IRQ_CHANGED_CB(INPUTLINE("maincpu", 0)) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker","rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("c6280", C6280, PCE_MAIN_CLOCK/6) MCFG_C6280_CPU("maincpu") MCFG_SOUND_ROUTE(0, "lspeaker", 1.00) diff --git a/src/mame/drivers/parodius.cpp b/src/mame/drivers/parodius.cpp index e5a09b62d14..85f3827dc2f 100644 --- a/src/mame/drivers/parodius.cpp +++ b/src/mame/drivers/parodius.cpp @@ -280,7 +280,8 @@ MACHINE_CONFIG_START(parodius_state::parodius) MCFG_K053251_ADD("k053251") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2151, 3579545) MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) diff --git a/src/mame/drivers/partner.cpp b/src/mame/drivers/partner.cpp index 1ab8b97dc06..815157f846b 100644 --- a/src/mame/drivers/partner.cpp +++ b/src/mame/drivers/partner.cpp @@ -198,7 +198,7 @@ MACHINE_CONFIG_START(partner_state::partner) MCFG_PALETTE_ADD("palette", 3) MCFG_PALETTE_INIT_OWNER(partner_state,radio86) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mame/drivers/pasha2.cpp b/src/mame/drivers/pasha2.cpp index a29ae7e1b0c..22dec7650c0 100644 --- a/src/mame/drivers/pasha2.cpp +++ b/src/mame/drivers/pasha2.cpp @@ -419,7 +419,7 @@ MACHINE_CONFIG_START(pasha2_state::pasha2) MCFG_PALETTE_ADD("palette", 0x200) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki1", OKIM6295, 1000000, okim6295_device::PIN7_HIGH) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/pasopia7.cpp b/src/mame/drivers/pasopia7.cpp index bfbdd47f406..4f65f610628 100644 --- a/src/mame/drivers/pasopia7.cpp +++ b/src/mame/drivers/pasopia7.cpp @@ -927,7 +927,7 @@ MACHINE_CONFIG_START(pasopia7_state::p7_base) /* Audio */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("sn1", SN76489A, 1996800) // unknown clock / divider MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/pass.cpp b/src/mame/drivers/pass.cpp index 205bfa2c048..efcdbe7b24e 100644 --- a/src/mame/drivers/pass.cpp +++ b/src/mame/drivers/pass.cpp @@ -267,7 +267,7 @@ MACHINE_CONFIG_START(pass_state::pass) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/pastelg.cpp b/src/mame/drivers/pastelg.cpp index fe507428301..57f001c79aa 100644 --- a/src/mame/drivers/pastelg.cpp +++ b/src/mame/drivers/pastelg.cpp @@ -423,7 +423,7 @@ MACHINE_CONFIG_START(pastelg_state::pastelg) MCFG_PALETTE_INIT_OWNER(pastelg_state, pastelg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, 1250000) MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSWB")) @@ -482,7 +482,7 @@ MACHINE_CONFIG_START(pastelg_state::threeds) MCFG_PALETTE_INIT_OWNER(pastelg_state, pastelg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, 1250000) MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSWB")) diff --git a/src/mame/drivers/patapata.cpp b/src/mame/drivers/patapata.cpp index 69323aa18a1..152c9fbef5e 100644 --- a/src/mame/drivers/patapata.cpp +++ b/src/mame/drivers/patapata.cpp @@ -304,7 +304,7 @@ MACHINE_CONFIG_START(patapata_state::patapata) MCFG_PALETTE_ADD("palette", 0x600/2) MCFG_PALETTE_FORMAT(RRRRGGGGBBBBRGBx) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki1", OKIM6295, 16_MHz_XTAL / 4, okim6295_device::PIN7_LOW) // not verified MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.40) diff --git a/src/mame/drivers/pb1000.cpp b/src/mame/drivers/pb1000.cpp index 0583c2a8f11..9435f980be3 100644 --- a/src/mame/drivers/pb1000.cpp +++ b/src/mame/drivers/pb1000.cpp @@ -513,7 +513,7 @@ MACHINE_CONFIG_START(pb1000_state::pb1000) MCFG_NVRAM_ADD_0FILL("nvram2") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO( "mono" ) + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD( "beeper", BEEP, 3250 ) MCFG_SOUND_ROUTE( ALL_OUTPUTS, "mono", 1.00 ) MACHINE_CONFIG_END diff --git a/src/mame/drivers/pbaction.cpp b/src/mame/drivers/pbaction.cpp index 638b2d73fb4..24abf8d1440 100644 --- a/src/mame/drivers/pbaction.cpp +++ b/src/mame/drivers/pbaction.cpp @@ -350,7 +350,7 @@ MACHINE_CONFIG_START(pbaction_state::pbaction) MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/pc100.cpp b/src/mame/drivers/pc100.cpp index 4d8204ef4d2..82cc1493540 100644 --- a/src/mame/drivers/pc100.cpp +++ b/src/mame/drivers/pc100.cpp @@ -554,7 +554,7 @@ MACHINE_CONFIG_START(pc100_state::pc100) MCFG_PALETTE_ADD("palette", 16) MCFG_PALETTE_FORMAT(xxxxxxxBBBGGGRRR) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, 2400) MCFG_SOUND_ROUTE(ALL_OUTPUTS,"mono",0.50) diff --git a/src/mame/drivers/pc1512.cpp b/src/mame/drivers/pc1512.cpp index 2e506e7266e..946dcef69ee 100644 --- a/src/mame/drivers/pc1512.cpp +++ b/src/mame/drivers/pc1512.cpp @@ -1165,7 +1165,7 @@ MACHINE_CONFIG_START(pc1512_state::pc1512) pc1512_video(config); // sound - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80) @@ -1299,7 +1299,7 @@ MACHINE_CONFIG_START(pc1640_state::pc1640) MCFG_DEVICE_IRQ_ACKNOWLEDGE_DEVICE(I8259A2_TAG, pic8259_device, inta_cb) // sound - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80) diff --git a/src/mame/drivers/pc2000.cpp b/src/mame/drivers/pc2000.cpp index eaa346721aa..3bd9744cd7c 100644 --- a/src/mame/drivers/pc2000.cpp +++ b/src/mame/drivers/pc2000.cpp @@ -903,7 +903,7 @@ MACHINE_CONFIG_START(pc2000_state::pc2000) MCFG_HD44780_LCD_SIZE(2, 20) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO( "mono" ) + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD( "beeper", BEEP, 3250 ) MCFG_SOUND_ROUTE( ALL_OUTPUTS, "mono", 1.00 ) diff --git a/src/mame/drivers/pc4.cpp b/src/mame/drivers/pc4.cpp index bdb2b4734c2..165c5667cf2 100644 --- a/src/mame/drivers/pc4.cpp +++ b/src/mame/drivers/pc4.cpp @@ -238,7 +238,7 @@ MACHINE_CONFIG_START(pc4_state::pc4) MCFG_GFXDECODE_ADD("gfxdecode", "palette", pc4) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO( "mono" ) + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD( "beeper", BEEP, 3250 ) MCFG_SOUND_ROUTE( ALL_OUTPUTS, "mono", 1.00 ) diff --git a/src/mame/drivers/pc6001.cpp b/src/mame/drivers/pc6001.cpp index 0bcd3e357b5..6ab55b07326 100644 --- a/src/mame/drivers/pc6001.cpp +++ b/src/mame/drivers/pc6001.cpp @@ -1524,7 +1524,7 @@ MACHINE_CONFIG_START(pc6001_state::pc6001) MCFG_GENERIC_CARTSLOT_ADD("cas_hack", generic_plain_slot, "pc6001_cass") MCFG_GENERIC_EXTENSIONS("cas,p6") - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay8910", AY8910, PC6001_MAIN_CLOCK/4) MCFG_AY8910_PORT_A_READ_CB(IOPORT("P1")) MCFG_AY8910_PORT_B_READ_CB(IOPORT("P2")) diff --git a/src/mame/drivers/pc8001.cpp b/src/mame/drivers/pc8001.cpp index 05ce6187a92..809a8744fd1 100644 --- a/src/mame/drivers/pc8001.cpp +++ b/src/mame/drivers/pc8001.cpp @@ -494,7 +494,7 @@ MACHINE_CONFIG_START(pc8001_state::pc8001) MCFG_SCREEN_VISIBLE_AREA(0, 640-1, 0, 200-1) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, 2000) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) @@ -544,7 +544,7 @@ MACHINE_CONFIG_START(pc8001mk2_state::pc8001mk2) MCFG_SCREEN_VISIBLE_AREA(0, 640-1, 0, 200-1) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, 2000) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mame/drivers/pc8801.cpp b/src/mame/drivers/pc8801.cpp index 1eb0b38fe05..debabfbf380 100644 --- a/src/mame/drivers/pc8801.cpp +++ b/src/mame/drivers/pc8801.cpp @@ -2643,7 +2643,7 @@ MACHINE_CONFIG_START(pc8801_state::pc8801) // MCFG_VIDEO_START_OVERRIDE(pc8801_state,pc8801) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("opn", YM2203, MASTER_CLOCK) MCFG_YM2203_IRQ_HANDLER(WRITELINE(*this, pc8801_state, pc8801_sound_irq)) MCFG_AY8910_PORT_A_READ_CB(READ8(*this, pc8801_state, opn_porta_r)) diff --git a/src/mame/drivers/pc88va.cpp b/src/mame/drivers/pc88va.cpp index a4a5c513098..65b9b6ab951 100644 --- a/src/mame/drivers/pc88va.cpp +++ b/src/mame/drivers/pc88va.cpp @@ -1867,7 +1867,7 @@ MACHINE_CONFIG_START(pc88va_state::pc88va) MCFG_PIT8253_CLK1(8000000) /* BEEP frequency setting */ MCFG_PIT8253_CLK2(8000000) /* RS232C baud rate setting */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ym", YM2203, 3993600) //unknown clock / divider MCFG_SOUND_ROUTE(0, "mono", 0.25) MCFG_SOUND_ROUTE(1, "mono", 0.25) diff --git a/src/mame/drivers/pc9801.cpp b/src/mame/drivers/pc9801.cpp index bbd7cad3074..d4fb21c46ae 100644 --- a/src/mame/drivers/pc9801.cpp +++ b/src/mame/drivers/pc9801.cpp @@ -2258,7 +2258,8 @@ void pc9801_state::cdrom_headphones(device_t *device) } MACHINE_CONFIG_START(pc9801_state::pc9801_ide) - MCFG_SPEAKER_STANDARD_STEREO("lheadphone", "rheadphone") + SPEAKER(config, "lheadphone").front_left(); + SPEAKER(config, "rheadphone").front_right(); MCFG_ATA_INTERFACE_ADD("ide1", ata_devices, "hdd", nullptr, false) MCFG_ATA_INTERFACE_IRQ_HANDLER(WRITELINE("ideirq", input_merger_device, in_w<0>)) MCFG_ATA_INTERFACE_ADD("ide2", pc9801_atapi_devices, "pc9801_cd", nullptr, false) @@ -2347,7 +2348,7 @@ MACHINE_CONFIG_START(pc9801_state::pc9801_common) MCFG_DEVICE_ADDRESS_MAP(0, upd7220_2_map) MCFG_UPD7220_DISPLAY_PIXELS_CALLBACK_OWNER(pc9801_state, hgdc_display_pixels) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, 2400) MCFG_SOUND_ROUTE(ALL_OUTPUTS,"mono",0.15) diff --git a/src/mame/drivers/pcd.cpp b/src/mame/drivers/pcd.cpp index b4f59326ce9..b4e194d44a7 100644 --- a/src/mame/drivers/pcd.cpp +++ b/src/mame/drivers/pcd.cpp @@ -549,7 +549,7 @@ MACHINE_CONFIG_START(pcd_state::pcd) MCFG_RS232_RXD_HANDLER(WRITELINE("usart3", mc2661_device, rx_w)) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/pce.cpp b/src/mame/drivers/pce.cpp index d23d0342e6a..cae42c83624 100644 --- a/src/mame/drivers/pce.cpp +++ b/src/mame/drivers/pce.cpp @@ -340,7 +340,8 @@ MACHINE_CONFIG_START(pce_state::pce_common) MCFG_HUC6270_VRAM_SIZE(0x10000) MCFG_HUC6270_IRQ_CHANGED_CB(INPUTLINE("maincpu", 0)) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD(C6280_TAG, C6280, MAIN_CLOCK/6) MCFG_C6280_CPU("maincpu") MCFG_SOUND_ROUTE( 0, "lspeaker", 1.00 ) @@ -407,7 +408,8 @@ MACHINE_CONFIG_START(pce_state::sgx) MCFG_HUC6202_READ_1_CB(READ8("huc6270_1", huc6270_device, read)) MCFG_HUC6202_WRITE_1_CB(WRITE8("huc6270_1", huc6270_device, write)) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD(C6280_TAG, C6280, MAIN_CLOCK/6) MCFG_C6280_CPU("maincpu") MCFG_SOUND_ROUTE(0, "lspeaker", 1.00) diff --git a/src/mame/drivers/pce220.cpp b/src/mame/drivers/pce220.cpp index 7723dcd370f..f235ee62708 100644 --- a/src/mame/drivers/pce220.cpp +++ b/src/mame/drivers/pce220.cpp @@ -956,7 +956,7 @@ MACHINE_CONFIG_START(pce220_state::pce220) MCFG_DEFAULT_LAYOUT(layout_lcd) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, 3250) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) @@ -992,7 +992,7 @@ MACHINE_CONFIG_START(pcg850v_state::pcg815) MCFG_DEFAULT_LAYOUT(layout_lcd) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, 3250) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) @@ -1028,7 +1028,7 @@ MACHINE_CONFIG_START(pcg850v_state::pcg850v) MCFG_DEFAULT_LAYOUT(layout_lcd) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, 3250) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/pcfx.cpp b/src/mame/drivers/pcfx.cpp index 2d92eafd3dd..5baf5efd001 100644 --- a/src/mame/drivers/pcfx.cpp +++ b/src/mame/drivers/pcfx.cpp @@ -437,11 +437,11 @@ MACHINE_CONFIG_START(pcfx_state::pcfx) MCFG_HUC6261_VDC2("huc6270_b") MCFG_HUC6261_KING("huc6272") - MCFG_HUC6272_ADD( "huc6272", XTAL(21'477'272) ) + MCFG_DEVICE_ADD( "huc6272", HUC6272, XTAL(21'477'272) ) MCFG_HUC6272_IRQ_CHANGED_CB(WRITELINE(*this, pcfx_state, irq13_w)) MCFG_HUC6272_RAINBOW("huc6271") - MCFG_HUC6271_ADD( "huc6271", XTAL(21'477'272) ) + MCFG_DEVICE_ADD( "huc6271", HUC6271, XTAL(21'477'272) ) MCFG_SOFTWARE_LIST_ADD("cd_list", "pcfx") MACHINE_CONFIG_END diff --git a/src/mame/drivers/pcktgal.cpp b/src/mame/drivers/pcktgal.cpp index baa0b6c7a38..684a276e5bb 100644 --- a/src/mame/drivers/pcktgal.cpp +++ b/src/mame/drivers/pcktgal.cpp @@ -254,7 +254,7 @@ MACHINE_CONFIG_START(pcktgal_state::pcktgal) MCFG_DECO_BAC06_GFXDECODE("gfxdecode") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/pcm.cpp b/src/mame/drivers/pcm.cpp index 2f99034f0cc..fc904af7b8c 100644 --- a/src/mame/drivers/pcm.cpp +++ b/src/mame/drivers/pcm.cpp @@ -273,7 +273,7 @@ MACHINE_CONFIG_START(pcm_state::pcm) MCFG_PALETTE_ADD_MONOCHROME("palette") /* Sound */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) diff --git a/src/mame/drivers/pcw.cpp b/src/mame/drivers/pcw.cpp index cff61739843..433491d85a8 100644 --- a/src/mame/drivers/pcw.cpp +++ b/src/mame/drivers/pcw.cpp @@ -1286,7 +1286,7 @@ MACHINE_CONFIG_START(pcw_state::pcw) MCFG_PALETTE_INIT_OWNER(pcw_state, pcw) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, 3750) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) diff --git a/src/mame/drivers/pcw16.cpp b/src/mame/drivers/pcw16.cpp index 9704bc17e6c..7f4ef86a1de 100644 --- a/src/mame/drivers/pcw16.cpp +++ b/src/mame/drivers/pcw16.cpp @@ -1054,7 +1054,7 @@ MACHINE_CONFIG_START(pcw16_state::pcw16) MCFG_PALETTE_INIT_OWNER(pcw16_state, pcw16) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, 3750) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) diff --git a/src/mame/drivers/pegasus.cpp b/src/mame/drivers/pegasus.cpp index 1606b14edb3..7a2e2a99cb9 100644 --- a/src/mame/drivers/pegasus.cpp +++ b/src/mame/drivers/pegasus.cpp @@ -503,7 +503,7 @@ MACHINE_CONFIG_START(pegasus_state::pegasus) MCFG_PALETTE_ADD_MONOCHROME("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.05) diff --git a/src/mame/drivers/pencil2.cpp b/src/mame/drivers/pencil2.cpp index 855c8f78798..4c263c4dc2d 100644 --- a/src/mame/drivers/pencil2.cpp +++ b/src/mame/drivers/pencil2.cpp @@ -321,7 +321,7 @@ MACHINE_CONFIG_START(pencil2_state::pencil2) MCFG_SCREEN_UPDATE_DEVICE( "tms9928a", tms9928a_device, screen_update ) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("sn76489a", SN76489A, XTAL(10'738'635)/3) // guess MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") diff --git a/src/mame/drivers/pengadvb.cpp b/src/mame/drivers/pengadvb.cpp index 08e2bbd2492..2fc0a337c99 100644 --- a/src/mame/drivers/pengadvb.cpp +++ b/src/mame/drivers/pengadvb.cpp @@ -265,7 +265,7 @@ MACHINE_CONFIG_START(pengadvb_state::pengadvb) MCFG_SCREEN_UPDATE_DEVICE("tms9128", tms9128_device, screen_update) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, XTAL(10'738'635)/6) MCFG_AY8910_PORT_A_READ_CB(IOPORT("IN0")) MCFG_AY8910_PORT_B_WRITE_CB(WRITE8(*this, pengadvb_state, pengadvb_psg_port_b_w)) diff --git a/src/mame/drivers/pengo.cpp b/src/mame/drivers/pengo.cpp index ffc89216509..37266974a1d 100644 --- a/src/mame/drivers/pengo.cpp +++ b/src/mame/drivers/pengo.cpp @@ -410,7 +410,7 @@ MACHINE_CONFIG_START(pengo_state::pengo) MCFG_VIDEO_START_OVERRIDE(pengo_state,pengo) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("namco", NAMCO, MASTER_CLOCK/6/32) MCFG_NAMCO_AUDIO_VOICES(3) diff --git a/src/mame/drivers/pentagon.cpp b/src/mame/drivers/pentagon.cpp index a42c2c6f786..68c6de15606 100644 --- a/src/mame/drivers/pentagon.cpp +++ b/src/mame/drivers/pentagon.cpp @@ -291,7 +291,8 @@ MACHINE_CONFIG_START(pentagon_state::pentagon) MCFG_BETA_DISK_ADD(BETA_DISK_TAG) MCFG_GFXDECODE_MODIFY("gfxdecode", pentagon) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_REPLACE("ay8912", AY8912, XTAL(14'000'000) / 8) MCFG_SOUND_ROUTE(0, "lspeaker", 0.50) diff --git a/src/mame/drivers/peplus.cpp b/src/mame/drivers/peplus.cpp index 171d95c96b1..80c67937986 100644 --- a/src/mame/drivers/peplus.cpp +++ b/src/mame/drivers/peplus.cpp @@ -1370,7 +1370,7 @@ MACHINE_CONFIG_START(peplus_state::peplus) MCFG_X2404P_ADD("i2cmem") // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8912, XTAL(20'000'000)/12) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75) diff --git a/src/mame/drivers/pes.cpp b/src/mame/drivers/pes.cpp index fa493d9ccdc..bf4e6c6cdc5 100644 --- a/src/mame/drivers/pes.cpp +++ b/src/mame/drivers/pes.cpp @@ -256,7 +256,7 @@ MACHINE_CONFIG_START(pes_state::pes) MCFG_MCS51_SERIAL_RX_CB(READ8(*this, pes_state, data_to_i8031)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("tms5220", TMS5220C, 720000) /* 720Khz clock, 10khz output */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/pet.cpp b/src/mame/drivers/pet.cpp index ef726da104b..192fe3ca856 100644 --- a/src/mame/drivers/pet.cpp +++ b/src/mame/drivers/pet.cpp @@ -2092,7 +2092,7 @@ MACHINE_CONFIG_START(pet2001b_state::pet4032f) MCFG_MC6845_OUT_VSYNC_CB(WRITELINE(M6520_1_TAG, pia6821_device, cb1_w)) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) @@ -2168,7 +2168,7 @@ MACHINE_CONFIG_START(pet_state::cbm4032f) MCFG_MC6845_OUT_VSYNC_CB(WRITELINE(M6520_1_TAG, pia6821_device, cb1_w)) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) @@ -2257,7 +2257,7 @@ MACHINE_CONFIG_START(pet80_state::pet80) MCFG_PALETTE_ADD_MONOCHROME("palette") // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mame/drivers/peyper.cpp b/src/mame/drivers/peyper.cpp index 9aadca36d86..a8b41bc4a94 100644 --- a/src/mame/drivers/peyper.cpp +++ b/src/mame/drivers/peyper.cpp @@ -616,7 +616,7 @@ MACHINE_CONFIG_START(peyper_state::peyper) /* Sound */ genpin_audio(config); - MCFG_SPEAKER_STANDARD_MONO("ayvol") + SPEAKER(config, "ayvol").front_center(); MCFG_DEVICE_ADD("ay1", AY8910, 2500000) MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(*this, peyper_state, p1a_w)) MCFG_AY8910_PORT_B_WRITE_CB(WRITE8(*this, peyper_state, p1b_w)) diff --git a/src/mame/drivers/pgm.cpp b/src/mame/drivers/pgm.cpp index bc3d5ec9c82..257564267cd 100644 --- a/src/mame/drivers/pgm.cpp +++ b/src/mame/drivers/pgm.cpp @@ -542,7 +542,7 @@ MACHINE_CONFIG_START(pgm_state::pgmbase) MCFG_VIDEO_START_OVERRIDE(pgm_state,pgm) /*sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_8_ADD("soundlatch2") diff --git a/src/mame/drivers/pgm2.cpp b/src/mame/drivers/pgm2.cpp index e9c1b018b7b..4fd6247a2a6 100644 --- a/src/mame/drivers/pgm2.cpp +++ b/src/mame/drivers/pgm2.cpp @@ -806,7 +806,8 @@ MACHINE_CONFIG_START(pgm2_state::pgm2) MCFG_NVRAM_ADD_0FILL("sram") - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymz774", YMZ774, 16384000) // is clock correct ? MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) MCFG_SOUND_ROUTE(1, "rspeaker", 1.0) diff --git a/src/mame/drivers/phc25.cpp b/src/mame/drivers/phc25.cpp index 680ce64a934..a7b59c670c2 100644 --- a/src/mame/drivers/phc25.cpp +++ b/src/mame/drivers/phc25.cpp @@ -315,7 +315,7 @@ MACHINE_CONFIG_START(phc25_state::phc25) MCFG_DEVICE_IO_MAP(phc25_io) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD(AY8910_TAG, AY8910, 1996750) MCFG_AY8910_PORT_A_READ_CB(IOPORT("JOY0")) MCFG_AY8910_PORT_B_READ_CB(IOPORT("JOY1")) diff --git a/src/mame/drivers/phoenix.cpp b/src/mame/drivers/phoenix.cpp index d69ac954459..1e1411ec2d8 100644 --- a/src/mame/drivers/phoenix.cpp +++ b/src/mame/drivers/phoenix.cpp @@ -461,7 +461,7 @@ MACHINE_CONFIG_START(phoenix_state::phoenix) MCFG_VIDEO_START_OVERRIDE(phoenix_state,phoenix) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_TMS36XX_ADD("tms", 372) MCFG_TMS36XX_TYPE(MM6221AA) @@ -535,7 +535,7 @@ MACHINE_CONFIG_START(phoenix_state::survival) MCFG_VIDEO_START_OVERRIDE(phoenix_state,phoenix) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); /* FIXME: check clock */ MCFG_DEVICE_ADD("aysnd", AY8910, 11000000/4) diff --git a/src/mame/drivers/photon.cpp b/src/mame/drivers/photon.cpp index f62f68a919d..1aa0c638895 100644 --- a/src/mame/drivers/photon.cpp +++ b/src/mame/drivers/photon.cpp @@ -232,7 +232,7 @@ MACHINE_CONFIG_START(photon_state::photon) MCFG_I8255_OUT_PORTC_CB(WRITE8(*this, pk8000_base_state, _84_portc_w)) /* audio hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) MACHINE_CONFIG_END diff --git a/src/mame/drivers/photon2.cpp b/src/mame/drivers/photon2.cpp index 1665abde18e..0d8dd1dccc7 100644 --- a/src/mame/drivers/photon2.cpp +++ b/src/mame/drivers/photon2.cpp @@ -374,7 +374,7 @@ MACHINE_CONFIG_START(photon2_state::photon2) MCFG_PALETTE_INIT_OWNER(photon2_state, photon2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/phunsy.cpp b/src/mame/drivers/phunsy.cpp index 4f2d9e46361..86a02788cf5 100644 --- a/src/mame/drivers/phunsy.cpp +++ b/src/mame/drivers/phunsy.cpp @@ -363,7 +363,7 @@ MACHINE_CONFIG_START(phunsy_state::phunsy) MCFG_PALETTE_INIT_OWNER(phunsy_state, phunsy) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) diff --git a/src/mame/drivers/piggypas.cpp b/src/mame/drivers/piggypas.cpp index 706bdbc9121..237c4981af2 100644 --- a/src/mame/drivers/piggypas.cpp +++ b/src/mame/drivers/piggypas.cpp @@ -228,7 +228,7 @@ MACHINE_CONFIG_START(piggypas_state::piggypas) MCFG_HD44780_PIXEL_UPDATE_CB(piggypas_state, piggypas_pixel_update) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, XTAL(8'448'000) / 8, okim6295_device::PIN7_HIGH) // clock and pin 7 not verified MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/pinball2k.cpp b/src/mame/drivers/pinball2k.cpp index 94df7eab2ab..821ee7939f3 100644 --- a/src/mame/drivers/pinball2k.cpp +++ b/src/mame/drivers/pinball2k.cpp @@ -626,7 +626,8 @@ MACHINE_CONFIG_START(pinball2k_state::mediagx) MCFG_PALETTE_ADD("palette", 256) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MACHINE_CONFIG_END diff --git a/src/mame/drivers/pingpong.cpp b/src/mame/drivers/pingpong.cpp index 9988740b5ab..b0c581b1f6f 100644 --- a/src/mame/drivers/pingpong.cpp +++ b/src/mame/drivers/pingpong.cpp @@ -471,7 +471,7 @@ MACHINE_CONFIG_START(pingpong_state::pingpong) MCFG_PALETTE_INIT_OWNER(pingpong_state, pingpong) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("snsnd", SN76496, 18432000/8) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/pinkiri8.cpp b/src/mame/drivers/pinkiri8.cpp index 1f8ebe1aa87..6251c5eb73a 100644 --- a/src/mame/drivers/pinkiri8.cpp +++ b/src/mame/drivers/pinkiri8.cpp @@ -1124,7 +1124,7 @@ MACHINE_CONFIG_START(pinkiri8_state::pinkiri8) MCFG_DEVICE_ADD("janshivdp", JANSHIVDP, 0) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, 1056000, okim6295_device::PIN7_HIGH) // clock frequency & pin 7 not verified MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.5) diff --git a/src/mame/drivers/pipedrm.cpp b/src/mame/drivers/pipedrm.cpp index 4b38fa7b0ac..4689bfcbf94 100644 --- a/src/mame/drivers/pipedrm.cpp +++ b/src/mame/drivers/pipedrm.cpp @@ -617,7 +617,7 @@ MACHINE_CONFIG_START(pipedrm_state::pipedrm) MCFG_VIDEO_START_OVERRIDE(pipedrm_state,pipedrm) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("sub", INPUT_LINE_NMI)) @@ -666,7 +666,7 @@ MACHINE_CONFIG_START(pipedrm_state::hatris) MCFG_VIDEO_START_OVERRIDE(pipedrm_state,hatris) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_SEPARATE_ACKNOWLEDGE(true) diff --git a/src/mame/drivers/pipeline.cpp b/src/mame/drivers/pipeline.cpp index d1e8d6149b9..ce5e4f8afea 100644 --- a/src/mame/drivers/pipeline.cpp +++ b/src/mame/drivers/pipeline.cpp @@ -401,7 +401,7 @@ MACHINE_CONFIG_START(pipeline_state::pipeline) MCFG_PALETTE_ADD("palette", 0x100+0x100) MCFG_PALETTE_INIT_OWNER(pipeline_state, pipeline) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2203, 7372800/4) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.60) diff --git a/src/mame/drivers/pirates.cpp b/src/mame/drivers/pirates.cpp index db0b20e1c80..c085cc6b34d 100644 --- a/src/mame/drivers/pirates.cpp +++ b/src/mame/drivers/pirates.cpp @@ -274,7 +274,7 @@ MACHINE_CONFIG_START(pirates_state::pirates) MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, 1333333, okim6295_device::PIN7_LOW) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/piratesh.cpp b/src/mame/drivers/piratesh.cpp index dc9e5465eb7..49ac34b65e2 100644 --- a/src/mame/drivers/piratesh.cpp +++ b/src/mame/drivers/piratesh.cpp @@ -643,7 +643,8 @@ MACHINE_CONFIG_START(piratesh_state::piratesh) MCFG_VIDEO_START_OVERRIDE(piratesh_state, piratesh) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("k054539", K054539, XTAL(18'432'000)) MCFG_K054539_TIMER_HANDLER(WRITELINE(*this, piratesh_state, k054539_nmi_gen)) diff --git a/src/mame/drivers/pitnrun.cpp b/src/mame/drivers/pitnrun.cpp index b1c1b01ee95..fc932ae3a46 100644 --- a/src/mame/drivers/pitnrun.cpp +++ b/src/mame/drivers/pitnrun.cpp @@ -314,7 +314,7 @@ MACHINE_CONFIG_START(pitnrun_state::pitnrun) MCFG_PALETTE_INIT_OWNER(pitnrun_state, pitnrun) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/pk8000.cpp b/src/mame/drivers/pk8000.cpp index e432fa69c28..a3fe9c08560 100644 --- a/src/mame/drivers/pk8000.cpp +++ b/src/mame/drivers/pk8000.cpp @@ -389,7 +389,7 @@ MACHINE_CONFIG_START(pk8000_state::pk8000) MCFG_I8255_OUT_PORTC_CB(WRITE8(*this, pk8000_base_state, _84_portc_w)) /* audio hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") diff --git a/src/mame/drivers/pk8020.cpp b/src/mame/drivers/pk8020.cpp index f10b6b88309..f8de3af24ce 100644 --- a/src/mame/drivers/pk8020.cpp +++ b/src/mame/drivers/pk8020.cpp @@ -234,7 +234,7 @@ MACHINE_CONFIG_START(pk8020_state::pk8020) MCFG_SOFTWARE_LIST_ADD("flop_list", "korvet_flop") /* audio hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") diff --git a/src/mame/drivers/pkscram.cpp b/src/mame/drivers/pkscram.cpp index b07f1a50871..cc9fc8835a3 100644 --- a/src/mame/drivers/pkscram.cpp +++ b/src/mame/drivers/pkscram.cpp @@ -329,7 +329,7 @@ MACHINE_CONFIG_START(pkscram_state::pkscramble) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2203, 12000000/4) MCFG_YM2203_IRQ_HANDLER(WRITELINE(*this, pkscram_state, irqhandler)) diff --git a/src/mame/drivers/pktgaldx.cpp b/src/mame/drivers/pktgaldx.cpp index 0de0c6baa63..5e3db57e91c 100644 --- a/src/mame/drivers/pktgaldx.cpp +++ b/src/mame/drivers/pktgaldx.cpp @@ -385,7 +385,8 @@ MACHINE_CONFIG_START(pktgaldx_state::pktgaldx) MCFG_DECO146_SET_INTERFACE_SCRAMBLE(8,9, 4,5,6,7 ,1,0,3,2) // hopefully this is correct, nothing else uses this arrangement! /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("oki1", OKIM6295, 32220000/32, okim6295_device::PIN7_HIGH) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.75) @@ -419,7 +420,8 @@ MACHINE_CONFIG_START(pktgaldx_state::pktgaldb) MCFG_GFXDECODE_ADD("gfxdecode", "palette", bootleg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("oki1", OKIM6295, 32220000/32, okim6295_device::PIN7_HIGH) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.75) diff --git a/src/mame/drivers/play_1.cpp b/src/mame/drivers/play_1.cpp index 8d7668356a7..3d1aeed5235 100644 --- a/src/mame/drivers/play_1.cpp +++ b/src/mame/drivers/play_1.cpp @@ -489,7 +489,7 @@ MACHINE_CONFIG_START(play_1_state::play_1) /* Sound */ genpin_audio(config); - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) MCFG_DEVICE_ADD("monotone", CLOCK, 0) // sound device diff --git a/src/mame/drivers/play_2.cpp b/src/mame/drivers/play_2.cpp index 49e3b6d00ec..fb989e04a79 100644 --- a/src/mame/drivers/play_2.cpp +++ b/src/mame/drivers/play_2.cpp @@ -396,7 +396,7 @@ MACHINE_CONFIG_START(play_2_state::play_2) /* Sound */ genpin_audio(config); - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_CDP1863_ADD("1863", 0, XTAL(2'950'000) / 8) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75) MACHINE_CONFIG_END diff --git a/src/mame/drivers/play_3.cpp b/src/mame/drivers/play_3.cpp index 81d2fe3a12a..6e062357feb 100644 --- a/src/mame/drivers/play_3.cpp +++ b/src/mame/drivers/play_3.cpp @@ -514,7 +514,8 @@ MACHINE_CONFIG_START(play_3_state::play_3) MCFG_COSMAC_WAIT_CALLBACK(VCC) MCFG_COSMAC_CLEAR_CALLBACK(READLINE(*this, play_3_state, clear_a_r)) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("aysnd1", AY8910, XTAL(3'579'545) / 2) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.75) MCFG_DEVICE_ADD("aysnd2", AY8910, XTAL(3'579'545) / 2) diff --git a/src/mame/drivers/playch10.cpp b/src/mame/drivers/playch10.cpp index e299ce0b685..90ffa01d06a 100644 --- a/src/mame/drivers/playch10.cpp +++ b/src/mame/drivers/playch10.cpp @@ -693,7 +693,7 @@ MACHINE_CONFIG_START(playch10_state::playch10) MCFG_PPU2C0X_INT_CALLBACK(INPUTLINE("cart", INPUT_LINE_NMI)) MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE(*this, playch10_state, int_detect_w)) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_RP5H01_ADD("rp5h01") MACHINE_CONFIG_END diff --git a/src/mame/drivers/playmark.cpp b/src/mame/drivers/playmark.cpp index 0da4f86b1e1..528e5589ba9 100644 --- a/src/mame/drivers/playmark.cpp +++ b/src/mame/drivers/playmark.cpp @@ -1074,7 +1074,7 @@ MACHINE_CONFIG_START(playmark_state::bigtwin) MCFG_VIDEO_START_OVERRIDE(playmark_state,bigtwin) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, 1000000, okim6295_device::PIN7_HIGH) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -1114,7 +1114,7 @@ MACHINE_CONFIG_START(playmark_state::bigtwinb) MCFG_VIDEO_START_OVERRIDE(playmark_state,bigtwinb) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, 1000000, okim6295_device::PIN7_HIGH) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -1158,7 +1158,7 @@ MACHINE_CONFIG_START(playmark_state::wbeachvl) MCFG_VIDEO_START_OVERRIDE(playmark_state,wbeachvl) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, 1000000, okim6295_device::PIN7_HIGH) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -1198,7 +1198,7 @@ MACHINE_CONFIG_START(playmark_state::excelsr) MCFG_VIDEO_START_OVERRIDE(playmark_state,excelsr) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, XTAL(1'000'000), okim6295_device::PIN7_HIGH) /* 1MHz resonator */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -1239,7 +1239,7 @@ MACHINE_CONFIG_START(playmark_state::hrdtimes) MCFG_VIDEO_START_OVERRIDE(playmark_state,hrdtimes) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, XTAL(1'000'000), okim6295_device::PIN7_HIGH) /* verified on pcb */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -1285,7 +1285,7 @@ MACHINE_CONFIG_START(playmark_state::hotmind) MCFG_TICKET_DISPENSER_ADD("token", attotime::from_msec(350), TICKET_MOTOR_ACTIVE_HIGH, TICKET_STATUS_ACTIVE_HIGH ) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, XTAL(1'000'000), okim6295_device::PIN7_HIGH) /* verified on pcb */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -1330,7 +1330,7 @@ MACHINE_CONFIG_START(playmark_state::luckboomh) MCFG_TICKET_DISPENSER_ADD("token", attotime::from_msec(350), TICKET_MOTOR_ACTIVE_HIGH, TICKET_STATUS_ACTIVE_HIGH ) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, XTAL(1'000'000), okim6295_device::PIN7_HIGH) /* verified on pcb */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/plus4.cpp b/src/mame/drivers/plus4.cpp index f6db8a12c3c..aa4f509a246 100644 --- a/src/mame/drivers/plus4.cpp +++ b/src/mame/drivers/plus4.cpp @@ -907,7 +907,7 @@ MACHINE_CONFIG_START(plus4_state::plus4) MCFG_QUANTUM_PERFECT_CPU(MOS7501_TAG) // video and sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_MOS7360_ADD(MOS7360_TAG, SCREEN_TAG, MOS7501_TAG, 0, ted_videoram_map, WRITELINE(*this, plus4_state, ted_irq_w), READ8(*this, plus4_state, ted_k_r)) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mame/drivers/pluto5.cpp b/src/mame/drivers/pluto5.cpp index 17dbbc0acfc..b913e8d61ce 100644 --- a/src/mame/drivers/pluto5.cpp +++ b/src/mame/drivers/pluto5.cpp @@ -260,7 +260,8 @@ MACHINE_CONFIG_START(pluto5_state::pluto5) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); /* unknown sound */ MACHINE_CONFIG_END diff --git a/src/mame/drivers/plygonet.cpp b/src/mame/drivers/plygonet.cpp index 2d606f7e747..d69d971b5b7 100644 --- a/src/mame/drivers/plygonet.cpp +++ b/src/mame/drivers/plygonet.cpp @@ -588,7 +588,8 @@ MACHINE_CONFIG_START(polygonet_state::plygonet) MCFG_DEVICE_ADD("k053936", K053936, 0) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_K054321_ADD("k054321", "lspeaker", "rspeaker") diff --git a/src/mame/drivers/pmd85.cpp b/src/mame/drivers/pmd85.cpp index b81d13000ca..6e4e7488aaf 100644 --- a/src/mame/drivers/pmd85.cpp +++ b/src/mame/drivers/pmd85.cpp @@ -625,7 +625,7 @@ MACHINE_CONFIG_START(pmd85_state::pmd85) MCFG_PALETTE_ADD_MONOCHROME_HIGHLIGHT("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mame/drivers/pockstat.cpp b/src/mame/drivers/pockstat.cpp index b762eb01b6c..1da81382552 100644 --- a/src/mame/drivers/pockstat.cpp +++ b/src/mame/drivers/pockstat.cpp @@ -990,7 +990,7 @@ MACHINE_CONFIG_START(pockstat_state::pockstat) MCFG_PALETTE_ADD_MONOCHROME("palette") - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_16BIT_R2R_TWOS_COMPLEMENT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) // unknown DAC MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT) diff --git a/src/mame/drivers/pofo.cpp b/src/mame/drivers/pofo.cpp index f9de4f01316..ba311c89964 100644 --- a/src/mame/drivers/pofo.cpp +++ b/src/mame/drivers/pofo.cpp @@ -1044,7 +1044,7 @@ MACHINE_CONFIG_START(portfolio_state::portfolio) MCFG_VIDEO_SET_SCREEN(SCREEN_TAG) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD(PCD3311T_TAG, PCD3311, XTAL(3'578'640)) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mame/drivers/poisk1.cpp b/src/mame/drivers/poisk1.cpp index 7a574cd4556..b39c44b355c 100644 --- a/src/mame/drivers/poisk1.cpp +++ b/src/mame/drivers/poisk1.cpp @@ -692,7 +692,7 @@ MACHINE_CONFIG_START(p1_state::poisk1) MCFG_SOFTWARE_LIST_ADD("flop_list","poisk1_flop") // MCFG_SOFTWARE_LIST_ADD("cass_list","poisk1_cass") - MCFG_SPEAKER_STANDARD_MONO( "mono" ) + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD( "speaker", SPEAKER_SOUND ) MCFG_SOUND_ROUTE( ALL_OUTPUTS, "mono", 1.00 ) diff --git a/src/mame/drivers/pokechmp.cpp b/src/mame/drivers/pokechmp.cpp index cf8294c15af..b0480ca4b88 100644 --- a/src/mame/drivers/pokechmp.cpp +++ b/src/mame/drivers/pokechmp.cpp @@ -251,7 +251,7 @@ MACHINE_CONFIG_START(pokechmp_state::pokechmp) MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/pokemini.cpp b/src/mame/drivers/pokemini.cpp index 3679ca5d821..ea7e40eb132 100644 --- a/src/mame/drivers/pokemini.cpp +++ b/src/mame/drivers/pokemini.cpp @@ -1782,7 +1782,7 @@ MACHINE_CONFIG_START(pokemini_state::pokemini) MCFG_PALETTE_INIT_OWNER(pokemini_state, pokemini) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SPEAKER_LEVELS(3, speaker_levels) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/poker72.cpp b/src/mame/drivers/poker72.cpp index 642dda23496..7fe0240ee01 100644 --- a/src/mame/drivers/poker72.cpp +++ b/src/mame/drivers/poker72.cpp @@ -388,7 +388,7 @@ MACHINE_CONFIG_START(poker72_state::poker72) MCFG_PALETTE_ADD("palette", 0xe00) MCFG_PALETTE_INIT_OWNER(poker72_state, poker72) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay", AY8910, 8000000/8) /* ? Mhz */ MCFG_AY8910_PORT_A_READ_CB(IOPORT("SW2")) diff --git a/src/mame/drivers/polepos.cpp b/src/mame/drivers/polepos.cpp index 270be0775f8..b895fb60991 100644 --- a/src/mame/drivers/polepos.cpp +++ b/src/mame/drivers/polepos.cpp @@ -923,7 +923,8 @@ MACHINE_CONFIG_START(polepos_state::polepos) MCFG_VIDEO_START_OVERRIDE(polepos_state,polepos) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("namco", NAMCO, MASTER_CLOCK/512) MCFG_NAMCO_AUDIO_VOICES(8) @@ -1035,7 +1036,8 @@ MACHINE_CONFIG_START(polepos_state::topracern) MCFG_VIDEO_START_OVERRIDE(polepos_state,polepos) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("namco", NAMCO, MASTER_CLOCK/512) MCFG_NAMCO_AUDIO_VOICES(8) diff --git a/src/mame/drivers/polgar.cpp b/src/mame/drivers/polgar.cpp index 20e911c0c31..f10331e65c4 100644 --- a/src/mame/drivers/polgar.cpp +++ b/src/mame/drivers/polgar.cpp @@ -556,7 +556,7 @@ MACHINE_CONFIG_START(mephisto_modena_state::modena) MCFG_DEFAULT_LAYOUT(layout_mephisto_modena) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, 3250) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) MACHINE_CONFIG_END diff --git a/src/mame/drivers/policetr.cpp b/src/mame/drivers/policetr.cpp index 04b2a3853b9..413daf7f880 100644 --- a/src/mame/drivers/policetr.cpp +++ b/src/mame/drivers/policetr.cpp @@ -422,7 +422,8 @@ MACHINE_CONFIG_START(policetr_state::policetr) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_BSMT2000_ADD("bsmt", MASTER_CLOCK/2) MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) diff --git a/src/mame/drivers/poly.cpp b/src/mame/drivers/poly.cpp index ec286614d03..0a33f09d2cc 100644 --- a/src/mame/drivers/poly.cpp +++ b/src/mame/drivers/poly.cpp @@ -167,7 +167,7 @@ MACHINE_CONFIG_START(poly_state::poly) MCFG_SCREEN_UPDATE_DEVICE("saa5050", saa5050_device, screen_update) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/poly88.cpp b/src/mame/drivers/poly88.cpp index e9eacfb6fed..ad15d5675fd 100644 --- a/src/mame/drivers/poly88.cpp +++ b/src/mame/drivers/poly88.cpp @@ -217,7 +217,7 @@ MACHINE_CONFIG_START(poly88_state::poly88) /* audio hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mame/drivers/polyplay.cpp b/src/mame/drivers/polyplay.cpp index df2ae43c171..bbf701e4568 100644 --- a/src/mame/drivers/polyplay.cpp +++ b/src/mame/drivers/polyplay.cpp @@ -347,7 +347,7 @@ MACHINE_CONFIG_START(polyplay_state::polyplay_zre) MCFG_PALETTE_INIT_OWNER(polyplay_state, polyplay) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker1", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.5) MCFG_DEVICE_ADD("speaker2", SPEAKER_SOUND) diff --git a/src/mame/drivers/pong.cpp b/src/mame/drivers/pong.cpp index e189fd73b68..1851a25ded7 100644 --- a/src/mame/drivers/pong.cpp +++ b/src/mame/drivers/pong.cpp @@ -404,7 +404,7 @@ MACHINE_CONFIG_START(pong_state::pong) MCFG_FIXFREQ_SYNC_THRESHOLD(0.11) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_16BIT_R2R_TWOS_COMPLEMENT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) // unknown DAC MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT) @@ -457,7 +457,7 @@ MACHINE_CONFIG_START(breakout_state::breakout) MCFG_FIXFREQ_GAIN(1.5) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_16BIT_R2R_TWOS_COMPLEMENT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) // unknown DAC MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT) @@ -502,7 +502,7 @@ MACHINE_CONFIG_START(pong_state::pongd) MCFG_FIXFREQ_SYNC_THRESHOLD(0.11) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_16BIT_R2R_TWOS_COMPLEMENT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) // unknown DAC MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT) diff --git a/src/mame/drivers/poolshrk.cpp b/src/mame/drivers/poolshrk.cpp index 9b8a1c4ab06..1e609039ed7 100644 --- a/src/mame/drivers/poolshrk.cpp +++ b/src/mame/drivers/poolshrk.cpp @@ -238,7 +238,7 @@ MACHINE_CONFIG_START(poolshrk_state::poolshrk) MCFG_PALETTE_INIT_OWNER(poolshrk_state, poolshrk) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("discrete", DISCRETE, poolshrk_discrete) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/popeye.cpp b/src/mame/drivers/popeye.cpp index 81e9e8d78bf..ec117d4af4f 100644 --- a/src/mame/drivers/popeye.cpp +++ b/src/mame/drivers/popeye.cpp @@ -608,7 +608,7 @@ MACHINE_CONFIG_START(tnx1_state::config) MCFG_PALETTE_INIT_OWNER(tnx1_state, palette_init) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, XTAL(8'000'000)/4) MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW0")) diff --git a/src/mame/drivers/popobear.cpp b/src/mame/drivers/popobear.cpp index 2a3f1885b31..d2a69757d2b 100644 --- a/src/mame/drivers/popobear.cpp +++ b/src/mame/drivers/popobear.cpp @@ -659,7 +659,7 @@ MACHINE_CONFIG_START(popobear_state::popobear) MCFG_PALETTE_ADD("palette", 256*2) MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GFXDECODE_ADD("gfxdecode", "palette", popobear) diff --git a/src/mame/drivers/popper.cpp b/src/mame/drivers/popper.cpp index 8afc8d1bc6e..046e19a5aca 100644 --- a/src/mame/drivers/popper.cpp +++ b/src/mame/drivers/popper.cpp @@ -554,7 +554,7 @@ MACHINE_CONFIG_START(popper_state::popper) MCFG_PALETTE_INIT_OWNER(popper_state, popper) // audio hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay1", AY8910, XTAL(18'432'000)/3/2/2) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mame/drivers/portrait.cpp b/src/mame/drivers/portrait.cpp index 972b948c2c0..5728abe34da 100644 --- a/src/mame/drivers/portrait.cpp +++ b/src/mame/drivers/portrait.cpp @@ -274,7 +274,7 @@ MACHINE_CONFIG_START(portrait_state::portrait) MCFG_PALETTE_INIT_OWNER(portrait_state, portrait) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/powerbal.cpp b/src/mame/drivers/powerbal.cpp index 2be828e225a..30b55b025c4 100644 --- a/src/mame/drivers/powerbal.cpp +++ b/src/mame/drivers/powerbal.cpp @@ -651,7 +651,7 @@ MACHINE_CONFIG_START(powerbal_state::powerbal) MCFG_VIDEO_START_OVERRIDE(powerbal_state,powerbal) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, 1000000, okim6295_device::PIN7_HIGH) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -687,7 +687,7 @@ MACHINE_CONFIG_START(powerbal_state::magicstk) MCFG_VIDEO_START_OVERRIDE(powerbal_state,powerbal) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, 1000000, okim6295_device::PIN7_HIGH) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/powerins.cpp b/src/mame/drivers/powerins.cpp index 61c8a5fa6c9..2e4e63fb4c4 100644 --- a/src/mame/drivers/powerins.cpp +++ b/src/mame/drivers/powerins.cpp @@ -328,7 +328,7 @@ MACHINE_CONFIG_START(powerins_state::powerins) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/pp01.cpp b/src/mame/drivers/pp01.cpp index b4fba73677f..601011b7117 100644 --- a/src/mame/drivers/pp01.cpp +++ b/src/mame/drivers/pp01.cpp @@ -219,7 +219,7 @@ MACHINE_CONFIG_START(pp01_state::pp01) MCFG_PALETTE_INIT_OWNER(pp01_state, pp01) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) //MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") diff --git a/src/mame/drivers/ppmast93.cpp b/src/mame/drivers/ppmast93.cpp index 6a0d6a3c211..189e66515ba 100644 --- a/src/mame/drivers/ppmast93.cpp +++ b/src/mame/drivers/ppmast93.cpp @@ -395,7 +395,7 @@ MACHINE_CONFIG_START(ppmast93_state::ppmast93) MCFG_PALETTE_ADD_RRRRGGGGBBBB_PROMS("palette", "proms", 0x100) - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/prehisle.cpp b/src/mame/drivers/prehisle.cpp index 20b29439782..a883de7df35 100644 --- a/src/mame/drivers/prehisle.cpp +++ b/src/mame/drivers/prehisle.cpp @@ -225,7 +225,7 @@ MACHINE_CONFIG_START(prehisle_state::prehisle) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/primo.cpp b/src/mame/drivers/primo.cpp index b68714a21db..6ba14d439bc 100644 --- a/src/mame/drivers/primo.cpp +++ b/src/mame/drivers/primo.cpp @@ -264,7 +264,7 @@ MACHINE_CONFIG_START(primo_state::primoa32) MCFG_PALETTE_ADD_MONOCHROME("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) diff --git a/src/mame/drivers/pro80.cpp b/src/mame/drivers/pro80.cpp index c66af84a830..af8e5919964 100644 --- a/src/mame/drivers/pro80.cpp +++ b/src/mame/drivers/pro80.cpp @@ -183,7 +183,7 @@ MACHINE_CONFIG_START(pro80_state::pro80) MCFG_DEFAULT_LAYOUT(layout_pro80) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.05) diff --git a/src/mame/drivers/proconn.cpp b/src/mame/drivers/proconn.cpp index 10f1e3b5441..596d0b8188f 100644 --- a/src/mame/drivers/proconn.cpp +++ b/src/mame/drivers/proconn.cpp @@ -321,7 +321,8 @@ MACHINE_CONFIG_START(proconn_state::proconn) MCFG_DEVICE_ADD("z80sio", Z80SIO, 4000000) /* ?? Mhz */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEFAULT_LAYOUT(layout_proconn) diff --git a/src/mame/drivers/progolf.cpp b/src/mame/drivers/progolf.cpp index 4180c09256a..3b0686942d9 100644 --- a/src/mame/drivers/progolf.cpp +++ b/src/mame/drivers/progolf.cpp @@ -447,7 +447,7 @@ MACHINE_CONFIG_START(progolf_state::progolf) MCFG_MC6845_CHAR_WIDTH(8) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay1", AY8910, 12000000/8) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.23) diff --git a/src/mame/drivers/proteus3.cpp b/src/mame/drivers/proteus3.cpp index c6aab9129e3..933a9f5ca40 100644 --- a/src/mame/drivers/proteus3.cpp +++ b/src/mame/drivers/proteus3.cpp @@ -406,7 +406,7 @@ MACHINE_CONFIG_START(proteus3_state::proteus3) MCFG_ACIA6850_TXD_HANDLER(WRITELINE(*this, proteus3_state, acia1_txdata_w)) MCFG_CASSETTE_ADD("cassette") MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_PLAY | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_ENABLED) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MCFG_TIMER_DRIVER_ADD_PERIODIC("timer_c", proteus3_state, timer_c, attotime::from_hz(4800)) diff --git a/src/mame/drivers/psikyo.cpp b/src/mame/drivers/psikyo.cpp index dd7207ddd61..a8bf20542ce 100644 --- a/src/mame/drivers/psikyo.cpp +++ b/src/mame/drivers/psikyo.cpp @@ -1051,7 +1051,7 @@ MACHINE_CONFIG_START(psikyo_state::sngkace) MCFG_VIDEO_START_OVERRIDE(psikyo_state,sngkace) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2610, XTAL(32'000'000)/4) /* verified on pcb */ MCFG_YM2610_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) @@ -1097,7 +1097,7 @@ MACHINE_CONFIG_START(psikyo_state::gunbird) MCFG_VIDEO_START_OVERRIDE(psikyo_state,psikyo) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2610, 8000000) MCFG_YM2610_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) @@ -1138,7 +1138,7 @@ MACHINE_CONFIG_START(psikyo_state::s1945bl) /* Bootleg hardware based on the unp MCFG_VIDEO_START_OVERRIDE(psikyo_state,psikyo) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, XTAL(16'000'000)/16, okim6295_device::PIN7_LOW) // ?? clock MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -1183,7 +1183,7 @@ MACHINE_CONFIG_START(psikyo_state::s1945) MCFG_VIDEO_START_OVERRIDE(psikyo_state,psikyo) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymf", YMF278B, YMF278B_STD_CLOCK) MCFG_YMF278B_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) diff --git a/src/mame/drivers/psikyo4.cpp b/src/mame/drivers/psikyo4.cpp index d78d0a62fcc..f40c9bb88b4 100644 --- a/src/mame/drivers/psikyo4.cpp +++ b/src/mame/drivers/psikyo4.cpp @@ -688,7 +688,8 @@ MACHINE_CONFIG_START(psikyo4_state::ps4big) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymf", YMF278B, MASTER_CLOCK/2) MCFG_DEVICE_ADDRESS_MAP(0, ps4_ymf_map) diff --git a/src/mame/drivers/psikyosh.cpp b/src/mame/drivers/psikyosh.cpp index bb99d77bbdc..3d598216881 100644 --- a/src/mame/drivers/psikyosh.cpp +++ b/src/mame/drivers/psikyosh.cpp @@ -805,7 +805,7 @@ MACHINE_CONFIG_START(psikyosh_state::psikyo3v1) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymf", YMF278B, MASTER_CLOCK/2) MCFG_YMF278B_IRQ_HANDLER(INPUTLINE("maincpu", 12)) diff --git a/src/mame/drivers/psion.cpp b/src/mame/drivers/psion.cpp index 75d6a7ca916..1e17fe6cffa 100644 --- a/src/mame/drivers/psion.cpp +++ b/src/mame/drivers/psion.cpp @@ -592,7 +592,7 @@ MACHINE_CONFIG_START(psion_state::psion_2lines) MCFG_HD44780_LCD_SIZE(2, 16) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO( "mono" ) + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD( "beeper", BEEP, 3250 ) MCFG_SOUND_ROUTE( ALL_OUTPUTS, "mono", 1.00 ) diff --git a/src/mame/drivers/psx.cpp b/src/mame/drivers/psx.cpp index 9335135e761..4c6e8103f67 100644 --- a/src/mame/drivers/psx.cpp +++ b/src/mame/drivers/psx.cpp @@ -536,7 +536,8 @@ MACHINE_CONFIG_START(psx1_state::psj) MCFG_PSXGPU_ADD( "maincpu", "gpu", CXD8561Q, 0x100000, XTAL(53'693'175) ) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_SPU_ADD( "spu", XTAL(67'737'600)/2 ) MCFG_SOUND_ROUTE( 0, "lspeaker", 1.00 ) MCFG_SOUND_ROUTE( 1, "rspeaker", 1.00 ) @@ -587,7 +588,8 @@ MACHINE_CONFIG_START(psx1_state::pse) MCFG_PSXGPU_ADD( "maincpu", "gpu", CXD8561Q, 0x100000, XTAL(53'693'175) ) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_SPU_ADD( "spu", XTAL(67'737'600)/2 ) MCFG_SOUND_ROUTE( 0, "lspeaker", 1.00 ) MCFG_SOUND_ROUTE( 1, "rspeaker", 1.00 ) diff --git a/src/mame/drivers/psychic5.cpp b/src/mame/drivers/psychic5.cpp index aeaf187cd28..e74b6ce89b8 100644 --- a/src/mame/drivers/psychic5.cpp +++ b/src/mame/drivers/psychic5.cpp @@ -756,7 +756,7 @@ MACHINE_CONFIG_START(psychic5_state::psychic5) MCFG_VIDEO_RESET_OVERRIDE(psychic5_state,psychic5) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -808,7 +808,7 @@ MACHINE_CONFIG_START(psychic5_state::bombsa) MCFG_VIDEO_RESET_OVERRIDE(psychic5_state,psychic5) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/pt68k4.cpp b/src/mame/drivers/pt68k4.cpp index 511b32be23a..8c083caf874 100644 --- a/src/mame/drivers/pt68k4.cpp +++ b/src/mame/drivers/pt68k4.cpp @@ -435,7 +435,7 @@ MACHINE_CONFIG_START(pt68k4_state::pt68k2) MCFG_DEVICE_ADD("isa5", ISA8_SLOT, 0, ISABUS_TAG, pt68k4_isa8_cards, nullptr, false) MCFG_DEVICE_ADD("isa6", ISA8_SLOT, 0, ISABUS_TAG, pt68k4_isa8_cards, nullptr, false) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD(SPEAKER_TAG, SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) @@ -472,7 +472,7 @@ MACHINE_CONFIG_START(pt68k4_state::pt68k4) MCFG_DEVICE_ADD("isa6", ISA8_SLOT, 0, ISABUS_TAG, pt68k4_isa8_cards, nullptr, false) MCFG_DEVICE_ADD("isa7", ISA8_SLOT, 0, ISABUS_TAG, pt68k4_isa8_cards, nullptr, false) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD(SPEAKER_TAG, SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) diff --git a/src/mame/drivers/ptcsol.cpp b/src/mame/drivers/ptcsol.cpp index 3b019e62393..46bb1ff693d 100644 --- a/src/mame/drivers/ptcsol.cpp +++ b/src/mame/drivers/ptcsol.cpp @@ -732,7 +732,7 @@ MACHINE_CONFIG_START(sol20_state::sol20) MCFG_PALETTE_ADD_MONOCHROME("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 2.00) // music board MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") diff --git a/src/mame/drivers/pturn.cpp b/src/mame/drivers/pturn.cpp index 157254290af..65d89bfb44b 100644 --- a/src/mame/drivers/pturn.cpp +++ b/src/mame/drivers/pturn.cpp @@ -543,7 +543,7 @@ MACHINE_CONFIG_START(pturn_state::pturn) MCFG_GFXDECODE_ADD("gfxdecode", "palette", pturn) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/punchout.cpp b/src/mame/drivers/punchout.cpp index a9a57d618d0..8f30c0f9091 100644 --- a/src/mame/drivers/punchout.cpp +++ b/src/mame/drivers/punchout.cpp @@ -668,7 +668,9 @@ MACHINE_CONFIG_START(punchout_state::punchout) MCFG_SCREEN_PALETTE("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "mono") + // FIXME: this makes no sense - "lspeaker" on left and "mono" on right, with nothing routed to "mono" + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "mono").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_8_ADD("soundlatch2") diff --git a/src/mame/drivers/pv1000.cpp b/src/mame/drivers/pv1000.cpp index 643350a5d98..66643fe46c1 100644 --- a/src/mame/drivers/pv1000.cpp +++ b/src/mame/drivers/pv1000.cpp @@ -454,7 +454,7 @@ MACHINE_CONFIG_START(pv1000_state::pv1000) MCFG_GFXDECODE_ADD("gfxdecode", "palette", pv1000 ) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD( "pv1000_sound", PV1000, 17897725 ) MCFG_SOUND_ROUTE( ALL_OUTPUTS, "mono", 1.00 ) diff --git a/src/mame/drivers/pv2000.cpp b/src/mame/drivers/pv2000.cpp index a3259303299..d6caacf54f2 100644 --- a/src/mame/drivers/pv2000.cpp +++ b/src/mame/drivers/pv2000.cpp @@ -399,7 +399,7 @@ MACHINE_CONFIG_START(pv2000_state::pv2000) MCFG_SCREEN_UPDATE_DEVICE( "tms9928a", tms9928a_device, screen_update ) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("sn76489a", SN76489A, XTAL(7'159'090)/2) /* 3.579545 MHz */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) diff --git a/src/mame/drivers/pve500.cpp b/src/mame/drivers/pve500.cpp index fcee2e70b43..70c813840bb 100644 --- a/src/mame/drivers/pve500.cpp +++ b/src/mame/drivers/pve500.cpp @@ -445,7 +445,7 @@ MACHINE_CONFIG_START(pve500_state::pve500) MCFG_DEFAULT_LAYOUT(layout_pve500) /* audio hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("buzzer", BEEP, 12_MHz_XTAL / 3200) // 3.75 kHz CLK2 coming out of IC D4 (frequency divider circuitry) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.05) diff --git a/src/mame/drivers/px4.cpp b/src/mame/drivers/px4.cpp index 610c2b439ec..308a8749698 100644 --- a/src/mame/drivers/px4.cpp +++ b/src/mame/drivers/px4.cpp @@ -1500,7 +1500,7 @@ MACHINE_CONFIG_START(px4_state::px4) MCFG_PALETTE_INIT_OWNER(px4_state, px4) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/px8.cpp b/src/mame/drivers/px8.cpp index 1ca7f0ac4e7..2a0c2850b03 100644 --- a/src/mame/drivers/px8.cpp +++ b/src/mame/drivers/px8.cpp @@ -779,7 +779,7 @@ MACHINE_CONFIG_START(px8_state::px8) MCFG_PALETTE_INIT_OWNER(px8_state, px8) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(0, "mono", 0.25) diff --git a/src/mame/drivers/pyl601.cpp b/src/mame/drivers/pyl601.cpp index 1ec9108cc90..e3d050ba792 100644 --- a/src/mame/drivers/pyl601.cpp +++ b/src/mame/drivers/pyl601.cpp @@ -551,7 +551,7 @@ MACHINE_CONFIG_START(pyl601_state::pyl601) MCFG_PALETTE_ADD_MONOCHROME("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/pzletime.cpp b/src/mame/drivers/pzletime.cpp index 0eef353f075..4ffeb278df2 100644 --- a/src/mame/drivers/pzletime.cpp +++ b/src/mame/drivers/pzletime.cpp @@ -357,7 +357,7 @@ MACHINE_CONFIG_START(pzletime_state::pzletime) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, 937500, okim6295_device::PIN7_HIGH) //freq & pin7 taken from stlforce MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) MACHINE_CONFIG_END diff --git a/src/mame/drivers/qdrmfgp.cpp b/src/mame/drivers/qdrmfgp.cpp index cc3b6ece314..221aaab9a28 100644 --- a/src/mame/drivers/qdrmfgp.cpp +++ b/src/mame/drivers/qdrmfgp.cpp @@ -559,7 +559,8 @@ MACHINE_CONFIG_START(qdrmfgp_state::qdrmfgp) MCFG_K053252_OFFSETS(40, 16) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("k054539", K054539, XTAL(18'432'000)) MCFG_DEVICE_ADDRESS_MAP(0, qdrmfgp_k054539_map) @@ -604,7 +605,8 @@ MACHINE_CONFIG_START(qdrmfgp_state::qdrmfgp2) MCFG_K053252_OFFSETS(40, 16) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("k054539", K054539, XTAL(18'432'000)) MCFG_DEVICE_ADDRESS_MAP(0, qdrmfgp_k054539_map) diff --git a/src/mame/drivers/ql.cpp b/src/mame/drivers/ql.cpp index 43de0f4f3ea..a0e9be0a3e9 100644 --- a/src/mame/drivers/ql.cpp +++ b/src/mame/drivers/ql.cpp @@ -917,7 +917,7 @@ MACHINE_CONFIG_START(ql_state::ql) MCFG_SCREEN_VISIBLE_AREA(0, 512-1, 0, 256-1) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mame/drivers/quantum.cpp b/src/mame/drivers/quantum.cpp index 812b0aad015..885db7f97a3 100644 --- a/src/mame/drivers/quantum.cpp +++ b/src/mame/drivers/quantum.cpp @@ -295,7 +295,7 @@ MACHINE_CONFIG_START(quantum_state::quantum) MCFG_AVGDVG_VECTOR("vector") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("pokey1", POKEY, 600000) MCFG_POKEY_POT0_R_CB(READ8(*this, quantum_state, input_1_r)) diff --git a/src/mame/drivers/quasar.cpp b/src/mame/drivers/quasar.cpp index a0ed1e8a336..ce36859f8a2 100644 --- a/src/mame/drivers/quasar.cpp +++ b/src/mame/drivers/quasar.cpp @@ -347,7 +347,7 @@ MACHINE_CONFIG_START(quasar_state::quasar) /* sound hardware */ MCFG_GENERIC_LATCH_8_ADD("soundlatch") - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 1.0) // unknown DAC MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT) diff --git a/src/mame/drivers/quickpick5.cpp b/src/mame/drivers/quickpick5.cpp index 8a83316a74c..27b33cd08dc 100644 --- a/src/mame/drivers/quickpick5.cpp +++ b/src/mame/drivers/quickpick5.cpp @@ -432,7 +432,7 @@ MACHINE_CONFIG_START(quickpick5_state::quickpick5) MCFG_NVRAM_ADD_0FILL("nvram") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_K051649_ADD("k051649", XTAL(32'000'000)/18) // xtal is verified, divider is not MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.45) diff --git a/src/mame/drivers/quizdna.cpp b/src/mame/drivers/quizdna.cpp index d17662587e9..d02389f16a6 100644 --- a/src/mame/drivers/quizdna.cpp +++ b/src/mame/drivers/quizdna.cpp @@ -462,7 +462,7 @@ MACHINE_CONFIG_START(quizdna_state::quizdna) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2203, MCLK/4) MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW3")) diff --git a/src/mame/drivers/quizo.cpp b/src/mame/drivers/quizo.cpp index 377b0e04793..d0481cbb5c0 100644 --- a/src/mame/drivers/quizo.cpp +++ b/src/mame/drivers/quizo.cpp @@ -236,7 +236,7 @@ MACHINE_CONFIG_START(quizo_state::quizo) MCFG_PALETTE_INIT_OWNER(quizo_state, quizo) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, XTAL2/16 ) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) MACHINE_CONFIG_END diff --git a/src/mame/drivers/quizpani.cpp b/src/mame/drivers/quizpani.cpp index 138543c7031..6b695cb3d94 100644 --- a/src/mame/drivers/quizpani.cpp +++ b/src/mame/drivers/quizpani.cpp @@ -213,7 +213,7 @@ MACHINE_CONFIG_START(quizpani_state::quizpani) MCFG_SCREEN_PALETTE("palette") - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, 16000000/4, okim6295_device::PIN7_LOW) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/quizpun2.cpp b/src/mame/drivers/quizpun2.cpp index d5937a81fc3..16de87e2447 100644 --- a/src/mame/drivers/quizpun2.cpp +++ b/src/mame/drivers/quizpun2.cpp @@ -611,7 +611,7 @@ MACHINE_CONFIG_START(quizpun2_state::quizpun2) MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/quizshow.cpp b/src/mame/drivers/quizshow.cpp index 459e49778bf..c016d8c1cf3 100644 --- a/src/mame/drivers/quizshow.cpp +++ b/src/mame/drivers/quizshow.cpp @@ -407,7 +407,7 @@ MACHINE_CONFIG_START(quizshow_state::quizshow) MCFG_PALETTE_INIT_OWNER(quizshow_state, quizshow) /* sound hardware (discrete) */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) diff --git a/src/mame/drivers/r2dtank.cpp b/src/mame/drivers/r2dtank.cpp index db78a9643cf..51321ec22cb 100644 --- a/src/mame/drivers/r2dtank.cpp +++ b/src/mame/drivers/r2dtank.cpp @@ -488,7 +488,7 @@ MACHINE_CONFIG_START(r2dtank_state::r2dtank) MCFG_PIA_IRQB_HANDLER(WRITELINE(*this, r2dtank_state, main_cpu_irq)) /* audio hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_8_ADD("soundlatch2") diff --git a/src/mame/drivers/r2dx_v33.cpp b/src/mame/drivers/r2dx_v33.cpp index cf1aef9dc15..059032ca998 100644 --- a/src/mame/drivers/r2dx_v33.cpp +++ b/src/mame/drivers/r2dx_v33.cpp @@ -814,7 +814,7 @@ MACHINE_CONFIG_START(r2dx_v33_state::rdx_v33) MCFG_SEIBU_CRTC_LAYER_SCROLL_CB(WRITE16(*this, raiden2_state, tile_scroll_w)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, XTAL(28'636'363)/28, okim6295_device::PIN7_HIGH) // clock frequency & pin 7 not verified MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.5) @@ -852,7 +852,7 @@ MACHINE_CONFIG_START(r2dx_v33_state::nzerotea) MCFG_SEIBU_CRTC_LAYER_SCROLL_CB(WRITE16(*this, raiden2_state, tile_scroll_w)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM3812, 14318180/4) MCFG_YM3812_IRQ_HANDLER(WRITELINE("seibu_sound", seibu_sound_device, fm_irqhandler)) diff --git a/src/mame/drivers/rabbit.cpp b/src/mame/drivers/rabbit.cpp index c907243fced..26595cb377c 100644 --- a/src/mame/drivers/rabbit.cpp +++ b/src/mame/drivers/rabbit.cpp @@ -923,7 +923,8 @@ MACHINE_CONFIG_START(rabbit_state::rabbit) MCFG_PALETTE_FORMAT(XGRB) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_I5000_SND_ADD("i5000snd", XTAL(40'000'000)) MCFG_SOUND_ROUTE(0, "rspeaker", 1.00) diff --git a/src/mame/drivers/rad_eu3a05.cpp b/src/mame/drivers/rad_eu3a05.cpp index 780323b19fc..c148524548f 100644 --- a/src/mame/drivers/rad_eu3a05.cpp +++ b/src/mame/drivers/rad_eu3a05.cpp @@ -1177,7 +1177,7 @@ MACHINE_CONFIG_START(radica_eu3a05_state::radicasi) MCFG_RADICA6502_GPIO_READ_PORT0_CB(IOPORT("IN0")) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("6ch_sound", RADICA6502_SOUND, 8000) MCFG_RADICA6502_SOUND_SPACE_READ_CB(READ8(*this, radica_eu3a05_state, read_full_space)) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/rad_eu3a14.cpp b/src/mame/drivers/rad_eu3a14.cpp index 7211e97c334..29fe4b08038 100644 --- a/src/mame/drivers/rad_eu3a14.cpp +++ b/src/mame/drivers/rad_eu3a14.cpp @@ -802,7 +802,7 @@ MACHINE_CONFIG_START(radica_eu3a14_state::radica_eu3a14) MCFG_PALETTE_ADD("palette", 512) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("6ch_sound", RADICA6502_SOUND, 8000) MCFG_RADICA6502_SOUND_SPACE_READ_CB(READ8(*this, radica_eu3a14_state, read_full_space)) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/radio86.cpp b/src/mame/drivers/radio86.cpp index 15a0bad20cd..66102c49a95 100644 --- a/src/mame/drivers/radio86.cpp +++ b/src/mame/drivers/radio86.cpp @@ -379,7 +379,7 @@ MACHINE_CONFIG_START(radio86_state::radio86) MCFG_PALETTE_ADD("palette", 3) MCFG_PALETTE_INIT_OWNER(radio86_state,radio86) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mame/drivers/raiden.cpp b/src/mame/drivers/raiden.cpp index b37e16b7d58..0aa0cf7f0bb 100644 --- a/src/mame/drivers/raiden.cpp +++ b/src/mame/drivers/raiden.cpp @@ -366,7 +366,7 @@ MACHINE_CONFIG_START(raiden_state::raiden) MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM3812, XTAL(14'318'181)/4) MCFG_YM3812_IRQ_HANDLER(WRITELINE("seibu_sound", seibu_sound_device, fm_irqhandler)) diff --git a/src/mame/drivers/raiden2.cpp b/src/mame/drivers/raiden2.cpp index d2a90967c53..11317f1e49a 100644 --- a/src/mame/drivers/raiden2.cpp +++ b/src/mame/drivers/raiden2.cpp @@ -1462,7 +1462,7 @@ MACHINE_CONFIG_START(raiden2_state::raiden2) MCFG_VIDEO_START_OVERRIDE(raiden2_state,raiden2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2151, XTAL(28'636'363)/8) MCFG_YM2151_IRQ_HANDLER(WRITELINE("seibu_sound", seibu_sound_device, fm_irqhandler)) @@ -1536,7 +1536,7 @@ MACHINE_CONFIG_START(raiden2_state::zeroteam) MCFG_VIDEO_START_OVERRIDE(raiden2_state,raiden2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM3812, XTAL(28'636'363)/8) MCFG_YM3812_IRQ_HANDLER(WRITELINE("seibu_sound", seibu_sound_device, fm_irqhandler)) diff --git a/src/mame/drivers/rallyx.cpp b/src/mame/drivers/rallyx.cpp index 05d5a1cdf69..bfa79ad2db9 100644 --- a/src/mame/drivers/rallyx.cpp +++ b/src/mame/drivers/rallyx.cpp @@ -854,7 +854,7 @@ MACHINE_CONFIG_START(rallyx_state::rallyx) MCFG_VIDEO_START_OVERRIDE(rallyx_state,rallyx) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("namco", NAMCO, MASTER_CLOCK/6/32) /* 96 KHz */ MCFG_NAMCO_AUDIO_VOICES(3) diff --git a/src/mame/drivers/rampart.cpp b/src/mame/drivers/rampart.cpp index b90c4cb4d8f..730bcd26587 100644 --- a/src/mame/drivers/rampart.cpp +++ b/src/mame/drivers/rampart.cpp @@ -370,7 +370,7 @@ MACHINE_CONFIG_START(rampart_state::rampart) MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, rampart_state, video_int_write_line)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, MASTER_CLOCK/4/3, okim6295_device::PIN7_LOW) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.60) diff --git a/src/mame/drivers/rastan.cpp b/src/mame/drivers/rastan.cpp index c058ae3edd5..85290dd45c0 100644 --- a/src/mame/drivers/rastan.cpp +++ b/src/mame/drivers/rastan.cpp @@ -401,7 +401,7 @@ MACHINE_CONFIG_START(rastan_state::rastan) MCFG_PC090OJ_PALETTE("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2151, XTAL(16'000'000)/4) /* verified on pcb */ MCFG_YM2151_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) diff --git a/src/mame/drivers/rastersp.cpp b/src/mame/drivers/rastersp.cpp index b05f4925c70..35dfe74de83 100644 --- a/src/mame/drivers/rastersp.cpp +++ b/src/mame/drivers/rastersp.cpp @@ -895,7 +895,8 @@ MACHINE_CONFIG_START(rastersp_state::rastersp) MCFG_PALETTE_ADD_RRRRRGGGGGGBBBBB("palette") /* Sound */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ldac", DAC_16BIT_R2R_TWOS_COMPLEMENT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.5) // unknown DAC MCFG_DEVICE_ADD("rdac", DAC_16BIT_R2R_TWOS_COMPLEMENT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 0.5) // unknown DAC diff --git a/src/mame/drivers/ravens.cpp b/src/mame/drivers/ravens.cpp index 090454c8f02..e212893fd62 100644 --- a/src/mame/drivers/ravens.cpp +++ b/src/mame/drivers/ravens.cpp @@ -352,7 +352,7 @@ MACHINE_CONFIG_START(ravens_state::ravens) /* cassette */ MCFG_CASSETTE_ADD( "cassette" ) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.05) MACHINE_CONFIG_END @@ -376,7 +376,7 @@ MACHINE_CONFIG_START(ravens_state::ravens2) /* cassette */ MCFG_CASSETTE_ADD( "cassette" ) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.05) MACHINE_CONFIG_END diff --git a/src/mame/drivers/rbisland.cpp b/src/mame/drivers/rbisland.cpp index 74b64197413..3c153346124 100644 --- a/src/mame/drivers/rbisland.cpp +++ b/src/mame/drivers/rbisland.cpp @@ -696,7 +696,7 @@ MACHINE_CONFIG_START(rbisland_state::rbisland) MCFG_PC090OJ_PALETTE("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2151, XTAL(16'000'000)/4) /* verified on pcb */ MCFG_YM2151_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) @@ -745,7 +745,7 @@ MACHINE_CONFIG_START(rbisland_state::jumping) MCFG_PC080SN_GFXDECODE("gfxdecode") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ym1", YM2203, XTAL(24'000'000)/8) /* verified on pcb */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30) diff --git a/src/mame/drivers/rbmk.cpp b/src/mame/drivers/rbmk.cpp index 98662ceac96..0b8a19ec2b1 100644 --- a/src/mame/drivers/rbmk.cpp +++ b/src/mame/drivers/rbmk.cpp @@ -593,7 +593,8 @@ MACHINE_CONFIG_START(rbmk_state::rbmk) MCFG_EEPROM_SERIAL_93C46_ADD("eeprom") - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("oki", OKIM6295, 1122000, okim6295_device::PIN7_HIGH) // clock frequency & pin 7 not verified MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.47) diff --git a/src/mame/drivers/rc702.cpp b/src/mame/drivers/rc702.cpp index 8919c17b981..bb107742d78 100644 --- a/src/mame/drivers/rc702.cpp +++ b/src/mame/drivers/rc702.cpp @@ -393,7 +393,7 @@ MACHINE_CONFIG_START(rc702_state::rc702) MCFG_PALETTE_ADD("palette", 2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, 1000) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) MACHINE_CONFIG_END diff --git a/src/mame/drivers/rc759.cpp b/src/mame/drivers/rc759.cpp index 028b2ee5541..a0343250521 100644 --- a/src/mame/drivers/rc759.cpp +++ b/src/mame/drivers/rc759.cpp @@ -574,7 +574,7 @@ MACHINE_CONFIG_START(rc759_state::rc759) MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_PLAY | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_MUTED) // sound - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) MCFG_DEVICE_ADD("snd", SN76489A, XTAL(20'000'000) / 10) diff --git a/src/mame/drivers/re900.cpp b/src/mame/drivers/re900.cpp index 89f3c5a54b4..c278d4f1e7e 100644 --- a/src/mame/drivers/re900.cpp +++ b/src/mame/drivers/re900.cpp @@ -398,7 +398,7 @@ MACHINE_CONFIG_START(re900_state::re900) MCFG_NVRAM_ADD_0FILL("nvram") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay_re900", AY8910, TMS_CLOCK) /* From TMS9128NL - Pin 37 (GROMCLK) */ MCFG_AY8910_PORT_A_READ_CB(READ8(*this, re900_state, re_psg_portA_r)) MCFG_AY8910_PORT_B_READ_CB(READ8(*this, re900_state, re_psg_portB_r)) diff --git a/src/mame/drivers/realbrk.cpp b/src/mame/drivers/realbrk.cpp index da55a242ed8..e6a4aa9fdd5 100644 --- a/src/mame/drivers/realbrk.cpp +++ b/src/mame/drivers/realbrk.cpp @@ -786,7 +786,8 @@ MACHINE_CONFIG_START(realbrk_state::realbrk) MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymz", YMZ280B, XTAL(33'868'800) / 2) MCFG_SOUND_ROUTE(0, "lspeaker", 0.50) diff --git a/src/mame/drivers/relief.cpp b/src/mame/drivers/relief.cpp index 8e1ec0ab7ae..0a36c33e73f 100644 --- a/src/mame/drivers/relief.cpp +++ b/src/mame/drivers/relief.cpp @@ -299,7 +299,7 @@ MACHINE_CONFIG_START(relief_state::relief) MCFG_SCREEN_PALETTE("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, ATARI_CLOCK_14MHz/4/3, okim6295_device::PIN7_LOW) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/renegade.cpp b/src/mame/drivers/renegade.cpp index 7ad23848994..67ac21a9c3c 100644 --- a/src/mame/drivers/renegade.cpp +++ b/src/mame/drivers/renegade.cpp @@ -492,7 +492,7 @@ MACHINE_CONFIG_START(renegade_state::renegade) MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", M6809_IRQ_LINE)) diff --git a/src/mame/drivers/replicator.cpp b/src/mame/drivers/replicator.cpp index 8a37f504bcc..2279deff40c 100644 --- a/src/mame/drivers/replicator.cpp +++ b/src/mame/drivers/replicator.cpp @@ -640,7 +640,7 @@ MACHINE_CONFIG_START(replicator_state::replicator) /* sound hardware */ /* A piezo is connected to the PORT G bit 5 (OC0B pin driven by Timer/Counter #4) */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(0, "speaker", 0.5) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) diff --git a/src/mame/drivers/retofinv.cpp b/src/mame/drivers/retofinv.cpp index b0cf1beb31a..791c1a97491 100644 --- a/src/mame/drivers/retofinv.cpp +++ b/src/mame/drivers/retofinv.cpp @@ -457,7 +457,7 @@ MACHINE_CONFIG_START(retofinv_state::retofinv) MCFG_PALETTE_INIT_OWNER(retofinv_state, retofinv) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/rex6000.cpp b/src/mame/drivers/rex6000.cpp index 051483a81f0..b4737195717 100644 --- a/src/mame/drivers/rex6000.cpp +++ b/src/mame/drivers/rex6000.cpp @@ -955,7 +955,7 @@ MACHINE_CONFIG_START(rex6000_state::rex6000) MCFG_RAM_DEFAULT_SIZE("32K") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO( "mono" ) + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD( "beeper", BEEP, 0 ) MCFG_SOUND_ROUTE( ALL_OUTPUTS, "mono", 1.00 ) MACHINE_CONFIG_END @@ -1022,7 +1022,7 @@ MACHINE_CONFIG_START(oz750_state::oz750) MCFG_RAM_DEFAULT_SIZE("512K") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO( "mono" ) + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD( "beeper", BEEP, 0 ) MCFG_SOUND_ROUTE( ALL_OUTPUTS, "mono", 1.00 ) MACHINE_CONFIG_END diff --git a/src/mame/drivers/rgum.cpp b/src/mame/drivers/rgum.cpp index 6ce0adbf6e9..b07805f7185 100644 --- a/src/mame/drivers/rgum.cpp +++ b/src/mame/drivers/rgum.cpp @@ -268,7 +268,7 @@ MACHINE_CONFIG_START(rgum_state::rgum) MCFG_GFXDECODE_ADD("gfxdecode", "palette", rgum) MCFG_PALETTE_ADD("palette", 0x100) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, 24000000/16) /* guessed to use the same xtal as the crtc */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/risc2500.cpp b/src/mame/drivers/risc2500.cpp index 22982ac451b..c23c5e1d961 100644 --- a/src/mame/drivers/risc2500.cpp +++ b/src/mame/drivers/risc2500.cpp @@ -336,7 +336,7 @@ MACHINE_CONFIG_START(risc2500_state::risc2500) MCFG_NVRAM_ADD_NO_FILL("nvram") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_2BIT_BINARY_WEIGHTED_ONES_COMPLEMENT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) // unknown DAC MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT) diff --git a/src/mame/drivers/rltennis.cpp b/src/mame/drivers/rltennis.cpp index 2b4105ba1de..bbad478de7d 100644 --- a/src/mame/drivers/rltennis.cpp +++ b/src/mame/drivers/rltennis.cpp @@ -205,7 +205,7 @@ MACHINE_CONFIG_START(rltennis_state::rltennis) MCFG_RAMDAC_ADD("ramdac", ramdac_map, "palette") MCFG_RAMDAC_SPLIT_READ(1) - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac1", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) // unknown DAC MCFG_DEVICE_ADD("dac2", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) // unknown DAC diff --git a/src/mame/drivers/rmhaihai.cpp b/src/mame/drivers/rmhaihai.cpp index ca4052f40a2..ca2d069f763 100644 --- a/src/mame/drivers/rmhaihai.cpp +++ b/src/mame/drivers/rmhaihai.cpp @@ -526,7 +526,7 @@ MACHINE_CONFIG_START(rmhaihai_state::rmhaihai) MCFG_PALETTE_ADD_RRRRGGGGBBBB_PROMS("palette", "proms", 0x100) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, 20000000/16) MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW2")) diff --git a/src/mame/drivers/rmnimbus.cpp b/src/mame/drivers/rmnimbus.cpp index 6b5ada9ab47..549a4ebe2af 100644 --- a/src/mame/drivers/rmnimbus.cpp +++ b/src/mame/drivers/rmnimbus.cpp @@ -194,7 +194,7 @@ MACHINE_CONFIG_START(rmnimbus_state::nimbus) MCFG_CENTRONICS_OUTPUT_LATCH_ADD("cent_data_out", "centronics") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO(MONO_TAG) + SPEAKER(config, MONO_TAG).front_center(); MCFG_DEVICE_ADD(AY8910_TAG, AY8910, 2000000) MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(*this, rmnimbus_state, nimbus_sound_ay8910_porta_w)) MCFG_AY8910_PORT_B_WRITE_CB(WRITE8(*this, rmnimbus_state, nimbus_sound_ay8910_portb_w)) diff --git a/src/mame/drivers/rockrage.cpp b/src/mame/drivers/rockrage.cpp index 34cec84fc0b..93c8fb67008 100644 --- a/src/mame/drivers/rockrage.cpp +++ b/src/mame/drivers/rockrage.cpp @@ -287,7 +287,8 @@ MACHINE_CONFIG_START(rockrage_state::rockrage) MCFG_PALETTE_INIT_OWNER(rockrage_state, rockrage) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/rohga.cpp b/src/mame/drivers/rohga.cpp index d572b696103..bde0a793e78 100644 --- a/src/mame/drivers/rohga.cpp +++ b/src/mame/drivers/rohga.cpp @@ -945,7 +945,8 @@ MACHINE_CONFIG_START(rohga_state::rohga) MCFG_DECO146_SOUNDLATCH_IRQ_CB(INPUTLINE("audiocpu", 0)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2151, 32220000/9) MCFG_YM2151_IRQ_HANDLER(INPUTLINE("audiocpu", 1)) /* IRQ 2 */ @@ -1039,7 +1040,8 @@ MACHINE_CONFIG_START(rohga_state::wizdfire) MCFG_VIDEO_START_OVERRIDE(rohga_state, wizdfire) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2151, 32220000/9) MCFG_YM2151_IRQ_HANDLER(INPUTLINE("audiocpu", 1)) /* IRQ 2 */ @@ -1134,7 +1136,8 @@ MACHINE_CONFIG_START(rohga_state::nitrobal) MCFG_DECO146_SET_USE_MAGIC_ADDRESS_XOR /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2151, 32220000/9) MCFG_YM2151_IRQ_HANDLER(INPUTLINE("audiocpu", 1)) /* IRQ 2 */ @@ -1223,7 +1226,8 @@ MACHINE_CONFIG_START(rohga_state::schmeisr) MCFG_DECO146_SOUNDLATCH_IRQ_CB(INPUTLINE("audiocpu", 0)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2151, 32220000/9) MCFG_YM2151_IRQ_HANDLER(INPUTLINE("audiocpu", 1)) /* IRQ 2 */ diff --git a/src/mame/drivers/rollerg.cpp b/src/mame/drivers/rollerg.cpp index 821b682829d..66e01a594c1 100644 --- a/src/mame/drivers/rollerg.cpp +++ b/src/mame/drivers/rollerg.cpp @@ -285,7 +285,7 @@ MACHINE_CONFIG_START(rollerg_state::rollerg) MCFG_K053252_OFFSETS(14*8, 2*8) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM3812, 3579545) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/rollrace.cpp b/src/mame/drivers/rollrace.cpp index 75f0f754ab4..0ab65eadae1 100644 --- a/src/mame/drivers/rollrace.cpp +++ b/src/mame/drivers/rollrace.cpp @@ -283,7 +283,8 @@ MACHINE_CONFIG_START(rollrace_state::rollrace) MCFG_PALETTE_INIT_OWNER(rollrace_state, rollrace) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/ron.cpp b/src/mame/drivers/ron.cpp index 2dac33d27ff..d946ae5a684 100644 --- a/src/mame/drivers/ron.cpp +++ b/src/mame/drivers/ron.cpp @@ -514,7 +514,7 @@ MACHINE_CONFIG_START(ron_state::ron) MCFG_PALETTE_INIT_OWNER(ron_state, ron) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, 0) // T0 CLK from I8035 (not verified) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30) MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(*this, ron_state, ay_pa_w)) diff --git a/src/mame/drivers/rotaryf.cpp b/src/mame/drivers/rotaryf.cpp index 7b394bd268d..3b53f908133 100644 --- a/src/mame/drivers/rotaryf.cpp +++ b/src/mame/drivers/rotaryf.cpp @@ -282,7 +282,7 @@ MACHINE_CONFIG_START(rotaryf_state::rotaryf) MCFG_SCREEN_REFRESH_RATE(60) MCFG_SCREEN_UPDATE_DRIVER(rotaryf_state, screen_update) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("snsnd", SN76477) MCFG_SN76477_NOISE_PARAMS(0, 0, 0) // noise + filter: N/C diff --git a/src/mame/drivers/roul.cpp b/src/mame/drivers/roul.cpp index 86a002d94bd..6aeb8d73a0c 100644 --- a/src/mame/drivers/roul.cpp +++ b/src/mame/drivers/roul.cpp @@ -329,7 +329,7 @@ MACHINE_CONFIG_START(roul_state::roul) MCFG_PALETTE_ADD("palette", 0x100) MCFG_PALETTE_INIT_OWNER(roul_state, roul) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/route16.cpp b/src/mame/drivers/route16.cpp index 9323ed3c6a0..ddadcbb8f6e 100644 --- a/src/mame/drivers/route16.cpp +++ b/src/mame/drivers/route16.cpp @@ -633,7 +633,7 @@ MACHINE_CONFIG_START(route16_state::route16) MCFG_PALETTE_ADD_3BIT_RGB("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("ay8910", AY8910, 10000000/8) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) MACHINE_CONFIG_END diff --git a/src/mame/drivers/rowamet.cpp b/src/mame/drivers/rowamet.cpp index 77af11d2484..f1f73ac5636 100644 --- a/src/mame/drivers/rowamet.cpp +++ b/src/mame/drivers/rowamet.cpp @@ -233,7 +233,7 @@ MACHINE_CONFIG_START(rowamet_state::rowamet) MCFG_DEFAULT_LAYOUT(layout_rowamet) /* Sound */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) // unknown DAC MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT) diff --git a/src/mame/drivers/royalmah.cpp b/src/mame/drivers/royalmah.cpp index ff81152750b..c90c5e82e55 100644 --- a/src/mame/drivers/royalmah.cpp +++ b/src/mame/drivers/royalmah.cpp @@ -3492,7 +3492,7 @@ MACHINE_CONFIG_START(royalmah_state::royalmah) MCFG_SCREEN_PALETTE("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, 18432000/12) MCFG_AY8910_PORT_A_READ_CB(READ8(*this, royalmah_state, player_1_port_r)) diff --git a/src/mame/drivers/rpunch.cpp b/src/mame/drivers/rpunch.cpp index 2b832513626..d6b200e1253 100644 --- a/src/mame/drivers/rpunch.cpp +++ b/src/mame/drivers/rpunch.cpp @@ -490,7 +490,7 @@ MACHINE_CONFIG_START(rpunch_state::rpunch) MCFG_VIDEO_START_OVERRIDE(rpunch_state,rpunch) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2151, MASTER_CLOCK/4) MCFG_YM2151_IRQ_HANDLER(WRITELINE("soundirq", input_merger_device, in_w<1>)) @@ -542,7 +542,7 @@ MACHINE_CONFIG_START(rpunch_state::svolleybl) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2151, MASTER_CLOCK/4) MCFG_YM2151_IRQ_HANDLER(WRITELINE("soundirq", input_merger_device, in_w<1>)) diff --git a/src/mame/drivers/runaway.cpp b/src/mame/drivers/runaway.cpp index ebda7c7b3f5..9ddc9abae38 100644 --- a/src/mame/drivers/runaway.cpp +++ b/src/mame/drivers/runaway.cpp @@ -350,7 +350,7 @@ MACHINE_CONFIG_START(runaway_state::runaway) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("pokey1", POKEY, 12096000 / 8) MCFG_POKEY_ALLPOT_R_CB(IOPORT("6008")) diff --git a/src/mame/drivers/rungun.cpp b/src/mame/drivers/rungun.cpp index 4bf9f4199e6..223ad98fe21 100644 --- a/src/mame/drivers/rungun.cpp +++ b/src/mame/drivers/rungun.cpp @@ -443,7 +443,8 @@ MACHINE_CONFIG_START(rungun_state::rng) MCFG_PALETTE_ENABLE_HILIGHTS() /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_K054321_ADD("k054321", "lspeaker", "rspeaker") diff --git a/src/mame/drivers/rx78.cpp b/src/mame/drivers/rx78.cpp index b433d174ba6..3854d6d2a82 100644 --- a/src/mame/drivers/rx78.cpp +++ b/src/mame/drivers/rx78.cpp @@ -502,7 +502,7 @@ MACHINE_CONFIG_START(rx78_state::rx78) MCFG_CASSETTE_ADD( "cassette" ) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mame/drivers/rz1.cpp b/src/mame/drivers/rz1.cpp index f4348d21798..15c7617425e 100644 --- a/src/mame/drivers/rz1.cpp +++ b/src/mame/drivers/rz1.cpp @@ -359,7 +359,7 @@ MACHINE_CONFIG_START( rz1_state::rz1 ) MCFG_DEFAULT_LAYOUT(layout_rz1) - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("upd934g_c", UPD934G, 1333000) MCFG_UPD934G_DATA_CB(READ8(*this, rz1_state, upd934g_c_data_r)) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 1.0) diff --git a/src/mame/drivers/rzone.cpp b/src/mame/drivers/rzone.cpp index 46fbc78b613..683c40bf647 100644 --- a/src/mame/drivers/rzone.cpp +++ b/src/mame/drivers/rzone.cpp @@ -262,7 +262,7 @@ MACHINE_CONFIG_START(rzone_state::rzindy500) MCFG_DEFAULT_LAYOUT(layout_rzone) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END @@ -287,7 +287,7 @@ MACHINE_CONFIG_START(rzone_state::rzbatfor) MCFG_DEFAULT_LAYOUT(layout_rzone) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END diff --git a/src/mame/drivers/s11.cpp b/src/mame/drivers/s11.cpp index d2e2602d30f..a3c85bd931d 100644 --- a/src/mame/drivers/s11.cpp +++ b/src/mame/drivers/s11.cpp @@ -446,13 +446,13 @@ MACHINE_CONFIG_START(s11_state::s11) MCFG_DEVICE_ADD("audiocpu", M6808, XTAL(4'000'000)) MCFG_DEVICE_PROGRAM_MAP(s11_audio_map) - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", MC1408, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT) MCFG_SOUND_ROUTE(0, "dac1", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac1", -1.0, DAC_VREF_NEG_INPUT) - MCFG_SPEAKER_STANDARD_MONO("speech") + SPEAKER(config, "speech").front_center(); MCFG_DEVICE_ADD("hc55516", HC55516, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speech", 1.00) @@ -469,7 +469,7 @@ MACHINE_CONFIG_START(s11_state::s11) MCFG_DEVICE_ADD("bgcpu", MC6809E, 8000000 / 4) // MC68B09E MCFG_DEVICE_PROGRAM_MAP(s11_bg_map) - MCFG_SPEAKER_STANDARD_MONO("bg") + SPEAKER(config, "bg").front_center(); MCFG_DEVICE_ADD("ym2151", YM2151, 3580000) MCFG_YM2151_IRQ_HANDLER(WRITELINE(*this, s11_state, ym2151_irq_w)) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "bg", 0.50) diff --git a/src/mame/drivers/s11a.cpp b/src/mame/drivers/s11a.cpp index 7cfcc75b382..db6f7b63eea 100644 --- a/src/mame/drivers/s11a.cpp +++ b/src/mame/drivers/s11a.cpp @@ -238,13 +238,13 @@ MACHINE_CONFIG_START(s11a_state::s11a) MCFG_DEVICE_ADD("audiocpu", M6802, XTAL(4'000'000)) MCFG_DEVICE_PROGRAM_MAP(s11a_audio_map) - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", MC1408, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT) MCFG_SOUND_ROUTE(0, "dac1", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac1", -1.0, DAC_VREF_NEG_INPUT) - MCFG_SPEAKER_STANDARD_MONO("speech") + SPEAKER(config, "speech").front_center(); MCFG_DEVICE_ADD("hc55516", HC55516, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speech", 0.50) @@ -260,7 +260,7 @@ MACHINE_CONFIG_START(s11a_state::s11a) MCFG_DEVICE_ADD("bgcpu", MC6809E, XTAL(8'000'000) / 4) // MC68B09E MCFG_DEVICE_PROGRAM_MAP(s11a_bg_map) - MCFG_SPEAKER_STANDARD_MONO("bg") + SPEAKER(config, "bg").front_center(); MCFG_DEVICE_ADD("ym2151", YM2151, XTAL(3'579'545)) MCFG_YM2151_IRQ_HANDLER(WRITELINE(*this, s11a_state, ym2151_irq_w)) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "bg", 0.50) diff --git a/src/mame/drivers/s11b.cpp b/src/mame/drivers/s11b.cpp index 109f2555430..a8fdd57534a 100644 --- a/src/mame/drivers/s11b.cpp +++ b/src/mame/drivers/s11b.cpp @@ -312,13 +312,13 @@ MACHINE_CONFIG_START(s11b_state::s11b) MCFG_DEVICE_ADD("audiocpu", M6802, XTAL(4'000'000)) MCFG_DEVICE_PROGRAM_MAP(s11b_audio_map) - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", MC1408, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT) MCFG_SOUND_ROUTE(0, "dac1", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac1", -1.0, DAC_VREF_NEG_INPUT) - MCFG_SPEAKER_STANDARD_MONO("speech") + SPEAKER(config, "speech").front_center(); MCFG_DEVICE_ADD("hc55516", HC55516, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speech", 0.50) @@ -336,7 +336,7 @@ MACHINE_CONFIG_START(s11b_state::s11b) MCFG_DEVICE_PROGRAM_MAP(s11b_bg_map) MCFG_QUANTUM_TIME(attotime::from_hz(50)) - MCFG_SPEAKER_STANDARD_MONO("bg") + SPEAKER(config, "bg").front_center(); MCFG_DEVICE_ADD("ym2151", YM2151, 3580000) MCFG_YM2151_IRQ_HANDLER(WRITELINE(*this, s11b_state, ym2151_irq_w)) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "bg", 0.25) diff --git a/src/mame/drivers/s11c.cpp b/src/mame/drivers/s11c.cpp index 8c628700b12..3025ce7cedd 100644 --- a/src/mame/drivers/s11c.cpp +++ b/src/mame/drivers/s11c.cpp @@ -216,7 +216,7 @@ MACHINE_CONFIG_START(s11c_state::s11c) // generic sound board is not used in System 11C, except for Star Trax /* Add the background music card */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("bgm", S11C_BG) MCFG_S11C_BG_ROM_REGION(":bgcpu") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 1.0) diff --git a/src/mame/drivers/s3.cpp b/src/mame/drivers/s3.cpp index 072560f848c..d2d0dc33365 100644 --- a/src/mame/drivers/s3.cpp +++ b/src/mame/drivers/s3.cpp @@ -492,7 +492,7 @@ MACHINE_CONFIG_START(s3_state::s3a) MCFG_DEVICE_PROGRAM_MAP(s3_audio_map) MCFG_MACHINE_RESET_OVERRIDE(s3_state, s3a) - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", MC1408, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT) diff --git a/src/mame/drivers/s4.cpp b/src/mame/drivers/s4.cpp index 89f0148931a..edeabec3557 100644 --- a/src/mame/drivers/s4.cpp +++ b/src/mame/drivers/s4.cpp @@ -486,7 +486,7 @@ MACHINE_CONFIG_START(s4_state::s4a) MCFG_DEVICE_PROGRAM_MAP(s4_audio_map) MCFG_MACHINE_RESET_OVERRIDE(s4_state, s4a) - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", MC1408, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT) diff --git a/src/mame/drivers/s6.cpp b/src/mame/drivers/s6.cpp index ea9470c16ad..207cd3867e4 100644 --- a/src/mame/drivers/s6.cpp +++ b/src/mame/drivers/s6.cpp @@ -456,12 +456,12 @@ MACHINE_CONFIG_START(s6_state::s6) MCFG_DEVICE_ADD("audiocpu", M6802, 3580000) MCFG_DEVICE_PROGRAM_MAP(s6_audio_map) - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", MC1408, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT) - MCFG_SPEAKER_STANDARD_MONO("speech") + SPEAKER(config, "speech").front_center(); MCFG_DEVICE_ADD("hc55516", HC55516, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speech", 1.00) diff --git a/src/mame/drivers/s6a.cpp b/src/mame/drivers/s6a.cpp index f703d79da88..03a7bcbe936 100644 --- a/src/mame/drivers/s6a.cpp +++ b/src/mame/drivers/s6a.cpp @@ -439,12 +439,12 @@ MACHINE_CONFIG_START(s6a_state::s6a) MCFG_DEVICE_ADD("audiocpu", M6802, 3580000) MCFG_DEVICE_PROGRAM_MAP(s6a_audio_map) - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", MC1408, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT) - MCFG_SPEAKER_STANDARD_MONO("speech") + SPEAKER(config, "speech").front_center(); MCFG_DEVICE_ADD("hc55516", HC55516, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speech", 1.00) diff --git a/src/mame/drivers/s7.cpp b/src/mame/drivers/s7.cpp index 3f210f32263..7ce952f3490 100644 --- a/src/mame/drivers/s7.cpp +++ b/src/mame/drivers/s7.cpp @@ -492,12 +492,12 @@ MACHINE_CONFIG_START(s7_state::s7) MCFG_DEVICE_ADD("audiocpu", M6808, 3580000) MCFG_DEVICE_PROGRAM_MAP(s7_audio_map) - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", MC1408, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT) - MCFG_SPEAKER_STANDARD_MONO("speech") + SPEAKER(config, "speech").front_center(); MCFG_DEVICE_ADD("hc55516", HC55516, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speech", 1.00) diff --git a/src/mame/drivers/s8.cpp b/src/mame/drivers/s8.cpp index 5cfc5d6845d..7212b242e82 100644 --- a/src/mame/drivers/s8.cpp +++ b/src/mame/drivers/s8.cpp @@ -362,7 +362,7 @@ MACHINE_CONFIG_START(s8_state::s8) MCFG_DEVICE_ADD("audiocpu", M6808, XTAL(4'000'000)) MCFG_DEVICE_PROGRAM_MAP(s8_audio_map) - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", MC1408, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT) diff --git a/src/mame/drivers/s8a.cpp b/src/mame/drivers/s8a.cpp index 454e9ec28a9..a2880cc80d2 100644 --- a/src/mame/drivers/s8a.cpp +++ b/src/mame/drivers/s8a.cpp @@ -334,7 +334,7 @@ MACHINE_CONFIG_START(s8a_state::s8a) MCFG_DEVICE_ADD("audiocpu", M6808, XTAL(4'000'000)) MCFG_DEVICE_PROGRAM_MAP(s8a_audio_map) - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", MC1408, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT) diff --git a/src/mame/drivers/s9.cpp b/src/mame/drivers/s9.cpp index 083fe3f1eb1..f5953def8b1 100644 --- a/src/mame/drivers/s9.cpp +++ b/src/mame/drivers/s9.cpp @@ -368,12 +368,12 @@ MACHINE_CONFIG_START(s9_state::s9) MCFG_DEVICE_ADD("audiocpu", M6808, XTAL(4'000'000)) MCFG_DEVICE_PROGRAM_MAP(s9_audio_map) - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", MC1408, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT) - MCFG_SPEAKER_STANDARD_MONO("speech") + SPEAKER(config, "speech").front_center(); MCFG_DEVICE_ADD("hc55516", HC55516, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speech", 1.00) diff --git a/src/mame/drivers/safarir.cpp b/src/mame/drivers/safarir.cpp index 3afe622261a..8249d1dff70 100644 --- a/src/mame/drivers/safarir.cpp +++ b/src/mame/drivers/safarir.cpp @@ -304,7 +304,7 @@ static const char *const safarir_sample_names[] = MACHINE_CONFIG_START(safarir_state::safarir_audio) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("samples", SAMPLES) MCFG_SAMPLES_CHANNELS(6) MCFG_SAMPLES_NAMES(safarir_sample_names) diff --git a/src/mame/drivers/samcoupe.cpp b/src/mame/drivers/samcoupe.cpp index c5f93593141..2041f74c605 100644 --- a/src/mame/drivers/samcoupe.cpp +++ b/src/mame/drivers/samcoupe.cpp @@ -561,7 +561,7 @@ MACHINE_CONFIG_START(samcoupe_state::samcoupe) MCFG_SOFTWARE_LIST_ADD("flop_list","samcoupe_flop") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) MCFG_SAA1099_ADD("saa1099", SAMCOUPE_XTAL_X1/3) /* 8 MHz */ diff --git a/src/mame/drivers/sandscrp.cpp b/src/mame/drivers/sandscrp.cpp index 1dfd62e2d38..6fdf66f8bf6 100644 --- a/src/mame/drivers/sandscrp.cpp +++ b/src/mame/drivers/sandscrp.cpp @@ -504,7 +504,7 @@ MACHINE_CONFIG_START(sandscrp_state::sandscrp) MCFG_KANEKO_PANDORA_GFXDECODE("gfxdecode") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch1") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) diff --git a/src/mame/drivers/sangho.cpp b/src/mame/drivers/sangho.cpp index 480bc134deb..622b3d766db 100644 --- a/src/mame/drivers/sangho.cpp +++ b/src/mame/drivers/sangho.cpp @@ -472,7 +472,7 @@ MACHINE_CONFIG_START(sangho_state::pzlestar) MCFG_MACHINE_RESET_OVERRIDE(sangho_state,pzlestar) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2413, XTAL(21'477'272)/6) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -493,7 +493,7 @@ MACHINE_CONFIG_START(sangho_state::sexyboom) MCFG_PALETTE_ADD("palette", 19780) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2413, XTAL(21'477'272)/6) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/sanremo.cpp b/src/mame/drivers/sanremo.cpp index c39925a0e35..cbadf8bed6e 100644 --- a/src/mame/drivers/sanremo.cpp +++ b/src/mame/drivers/sanremo.cpp @@ -385,7 +385,7 @@ MACHINE_CONFIG_START(sanremo_state::sanremo) MCFG_PALETTE_INIT_OWNER(sanremo_state, sanremo) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay8910", AY8910, SND_CLOCK) MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW")) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) diff --git a/src/mame/drivers/saturn.cpp b/src/mame/drivers/saturn.cpp index 3aec4c43df3..44f49888d44 100644 --- a/src/mame/drivers/saturn.cpp +++ b/src/mame/drivers/saturn.cpp @@ -836,7 +836,8 @@ MACHINE_CONFIG_START(sat_console_state::saturn) MCFG_VIDEO_START_OVERRIDE(sat_console_state,stv_vdp2) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("scsp", SCSP) MCFG_SCSP_IRQ_CB(WRITE8(*this, saturn_state, scsp_irq)) diff --git a/src/mame/drivers/sauro.cpp b/src/mame/drivers/sauro.cpp index ea8b292a9b8..c6edfcb94bb 100644 --- a/src/mame/drivers/sauro.cpp +++ b/src/mame/drivers/sauro.cpp @@ -471,7 +471,7 @@ MACHINE_CONFIG_START(sauro_state::tecfri) MCFG_PALETTE_ADD_RRRRGGGGBBBB_PROMS("palette", "proms", 1024) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM3812, XTAL(20'000'000)/8) /* verified on pcb */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/sbasketb.cpp b/src/mame/drivers/sbasketb.cpp index e20c1810947..ff1d7b60c9e 100644 --- a/src/mame/drivers/sbasketb.cpp +++ b/src/mame/drivers/sbasketb.cpp @@ -230,7 +230,7 @@ MACHINE_CONFIG_START(sbasketb_state::sbasketb) MCFG_PALETTE_INIT_OWNER(sbasketb_state, sbasketb) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/sbc6510.cpp b/src/mame/drivers/sbc6510.cpp index 012914e52a7..2a84cac01d1 100644 --- a/src/mame/drivers/sbc6510.cpp +++ b/src/mame/drivers/sbc6510.cpp @@ -292,7 +292,7 @@ MACHINE_CONFIG_START(sbc6510_state::sbc6510) MCFG_DEVICE_ADD("terminal", GENERIC_TERMINAL, 0) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay8910", AY8910, XTAL(1'000'000)) // Ports A and B connect to the IDE socket MCFG_AY8910_PORT_A_READ_CB(READ8(*this, sbc6510_state, psg_a_r)) // port A read diff --git a/src/mame/drivers/sbowling.cpp b/src/mame/drivers/sbowling.cpp index 866cfdc5a1d..99b6fbcbef4 100644 --- a/src/mame/drivers/sbowling.cpp +++ b/src/mame/drivers/sbowling.cpp @@ -429,7 +429,7 @@ MACHINE_CONFIG_START(sbowling_state::sbowling) MCFG_PALETTE_INIT_OWNER(sbowling_state, sbowling) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, XTAL(19'968'000)/16) /* ? */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.33) diff --git a/src/mame/drivers/sbrain.cpp b/src/mame/drivers/sbrain.cpp index 3166ed8d146..031de15edf2 100644 --- a/src/mame/drivers/sbrain.cpp +++ b/src/mame/drivers/sbrain.cpp @@ -564,7 +564,7 @@ MACHINE_CONFIG_START(sbrain_state::sbrain) //MCFG_DEVICE_ADD("crtc", DP8350, XTAL(10'920'000)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, 800) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) diff --git a/src/mame/drivers/sbrkout.cpp b/src/mame/drivers/sbrkout.cpp index 08207ef4696..cf0187f0faf 100644 --- a/src/mame/drivers/sbrkout.cpp +++ b/src/mame/drivers/sbrkout.cpp @@ -587,7 +587,7 @@ MACHINE_CONFIG_START(sbrkout_state::sbrkout) MCFG_PALETTE_ADD_MONOCHROME("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.99) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) diff --git a/src/mame/drivers/sbugger.cpp b/src/mame/drivers/sbugger.cpp index 3576d9e367d..023d1f8c34a 100644 --- a/src/mame/drivers/sbugger.cpp +++ b/src/mame/drivers/sbugger.cpp @@ -240,7 +240,7 @@ MACHINE_CONFIG_START(sbugger_state::sbugger) MCFG_PALETTE_INIT_OWNER(sbugger_state, sbugger) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("sn76489.1", SN76489, 3000000) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/sc1.cpp b/src/mame/drivers/sc1.cpp index 8f230295bb7..c9be19f5240 100644 --- a/src/mame/drivers/sc1.cpp +++ b/src/mame/drivers/sc1.cpp @@ -171,7 +171,7 @@ MACHINE_CONFIG_START(sc1_state::sc1) MCFG_Z80PIO_IN_PB_CB(READ8(*this, sc1_state, pio_port_b_r)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) MACHINE_CONFIG_END diff --git a/src/mame/drivers/sc2.cpp b/src/mame/drivers/sc2.cpp index 21a148d666b..ca6a7e19ff6 100644 --- a/src/mame/drivers/sc2.cpp +++ b/src/mame/drivers/sc2.cpp @@ -229,7 +229,7 @@ MACHINE_CONFIG_START(sc2_state::sc2) MCFG_Z80PIO_OUT_PB_CB(WRITE8(*this, sc2_state, pio_port_b_w)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO( "mono" ) + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD( "beeper", BEEP, 3250 ) MCFG_SOUND_ROUTE( ALL_OUTPUTS, "mono", 0.50 ) MACHINE_CONFIG_END diff --git a/src/mame/drivers/scobra.cpp b/src/mame/drivers/scobra.cpp index 9f5f4cdbe46..69e8560f0ae 100644 --- a/src/mame/drivers/scobra.cpp +++ b/src/mame/drivers/scobra.cpp @@ -913,7 +913,7 @@ MACHINE_CONFIG_START(scobra_state::type1) MCFG_VIDEO_START_OVERRIDE(scobra_state,scrambold) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -1093,7 +1093,7 @@ MACHINE_CONFIG_START(scobra_state::hustler) MCFG_VIDEO_START_OVERRIDE(scobra_state,scrambold) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_DEVICE_ADD("aysnd", AY8910, 14318000/8) MCFG_AY8910_PORT_A_READ_CB(READ8("soundlatch", generic_latch_8_device, read)) diff --git a/src/mame/drivers/scotrsht.cpp b/src/mame/drivers/scotrsht.cpp index 68579d6bd6c..73eb29cfce6 100644 --- a/src/mame/drivers/scotrsht.cpp +++ b/src/mame/drivers/scotrsht.cpp @@ -215,7 +215,7 @@ MACHINE_CONFIG_START(scotrsht_state::scotrsht) MCFG_PALETTE_INIT_OWNER(scotrsht_state, scotrsht) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/scramble.cpp b/src/mame/drivers/scramble.cpp index 88f8825314f..a1462d3efa4 100644 --- a/src/mame/drivers/scramble.cpp +++ b/src/mame/drivers/scramble.cpp @@ -1353,7 +1353,7 @@ MACHINE_CONFIG_START(scramble_state::scramble) MCFG_VIDEO_START_OVERRIDE(scramble_state,scrambold) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/scregg.cpp b/src/mame/drivers/scregg.cpp index f84eca2edbb..09e502a34c0 100644 --- a/src/mame/drivers/scregg.cpp +++ b/src/mame/drivers/scregg.cpp @@ -286,7 +286,7 @@ MACHINE_CONFIG_START(scregg_state::dommy) MCFG_PALETTE_INIT_OWNER(scregg_state,btime) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay1", AY8910, XTAL(12'000'000)/8) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.23) @@ -318,7 +318,7 @@ MACHINE_CONFIG_START(scregg_state::scregg) MCFG_PALETTE_INIT_OWNER(scregg_state,btime) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay1", AY8910, XTAL(12'000'000)/8) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.23) diff --git a/src/mame/drivers/scv.cpp b/src/mame/drivers/scv.cpp index 4b7cab41f7f..8f3690dab99 100644 --- a/src/mame/drivers/scv.cpp +++ b/src/mame/drivers/scv.cpp @@ -678,7 +678,7 @@ MACHINE_CONFIG_START(scv_state::scv) MCFG_PALETTE_INIT_OWNER(scv_state, scv) /* Sound is generated by UPD1771C clocked at XTAL(6'000'000) */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD( "upd1771c", UPD1771C, XTAL(6'000'000) ) MCFG_UPD1771_ACK_HANDLER(WRITELINE(*this, scv_state, upd1771_ack_w)) MCFG_SOUND_ROUTE( ALL_OUTPUTS, "mono", 1.00 ) diff --git a/src/mame/drivers/scyclone.cpp b/src/mame/drivers/scyclone.cpp index b2c67dc902d..4e7112f11a8 100644 --- a/src/mame/drivers/scyclone.cpp +++ b/src/mame/drivers/scyclone.cpp @@ -637,7 +637,7 @@ MACHINE_CONFIG_START(scyclone_state::scyclone) MCFG_PALETTE_ADD("palette", 8 + 4*4) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("snsnd0", SN76477) MCFG_SN76477_ENABLE(1) diff --git a/src/mame/drivers/sderby.cpp b/src/mame/drivers/sderby.cpp index c3ac34213a1..ebfc715ff5a 100644 --- a/src/mame/drivers/sderby.cpp +++ b/src/mame/drivers/sderby.cpp @@ -619,7 +619,7 @@ MACHINE_CONFIG_START(sderby_state::sderby) MCFG_PALETTE_ADD("palette", 0x1000) MCFG_PALETTE_FORMAT(RRRRRGGGGGBBBBBx) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, 1056000, okim6295_device::PIN7_HIGH) /* clock frequency & pin 7 not verified */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) MACHINE_CONFIG_END @@ -644,7 +644,7 @@ MACHINE_CONFIG_START(sderby_state::sderbya) MCFG_PALETTE_ADD("palette", 0x1000) MCFG_PALETTE_FORMAT(RRRRRGGGGGBBBBBx) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, 1056000, okim6295_device::PIN7_HIGH) /* clock frequency & pin 7 not verified */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) MACHINE_CONFIG_END @@ -669,7 +669,7 @@ MACHINE_CONFIG_START(sderby_state::luckboom) MCFG_PALETTE_ADD("palette", 0x1000) MCFG_PALETTE_FORMAT(RRRRRGGGGGBBBBBx) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, 1056000, okim6295_device::PIN7_HIGH) /* clock frequency & pin 7 not verified */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) MACHINE_CONFIG_END @@ -694,7 +694,7 @@ MACHINE_CONFIG_START(sderby_state::spacewin) MCFG_PALETTE_ADD("palette", 0x1000) MCFG_PALETTE_FORMAT(RRRRRGGGGGBBBBBx) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, 1056000, okim6295_device::PIN7_HIGH) /* clock frequency & pin 7 not verified */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) MACHINE_CONFIG_END @@ -719,7 +719,7 @@ MACHINE_CONFIG_START(sderby_state::shinygld) MCFG_PALETTE_ADD("palette", 0x1000) MCFG_PALETTE_FORMAT(RRRRRGGGGGBBBBBx) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, 1.056_MHz_XTAL, okim6295_device::PIN7_HIGH) /* clock frequency & pin 7 verified */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) MACHINE_CONFIG_END @@ -744,7 +744,7 @@ MACHINE_CONFIG_START(sderby_state::pmroulet) MCFG_PALETTE_ADD("palette", 0x1000) MCFG_PALETTE_FORMAT(RRRRRGGGGGBBBBBx) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, 1056000, okim6295_device::PIN7_HIGH) /* clock frequency & pin 7 not verified */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) MACHINE_CONFIG_END diff --git a/src/mame/drivers/seabattl.cpp b/src/mame/drivers/seabattl.cpp index 24d1bce04df..2526d185c27 100644 --- a/src/mame/drivers/seabattl.cpp +++ b/src/mame/drivers/seabattl.cpp @@ -513,7 +513,7 @@ MACHINE_CONFIG_START(seabattl_state::seabattl) MCFG_PALETTE_INIT_OWNER(seabattl_state, seabattl) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); /* discrete sound */ MACHINE_CONFIG_END diff --git a/src/mame/drivers/sealy.cpp b/src/mame/drivers/sealy.cpp index e0e6841e664..fac8c740c46 100644 --- a/src/mame/drivers/sealy.cpp +++ b/src/mame/drivers/sealy.cpp @@ -117,7 +117,7 @@ MACHINE_CONFIG_START(sealy_state::sealy) MCFG_PALETTE_INIT_OWNER(sealy_state, sealy) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, MAIN_CLOCK/13, okim6295_device::PIN7_HIGH) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) MACHINE_CONFIG_END diff --git a/src/mame/drivers/segac2.cpp b/src/mame/drivers/segac2.cpp index 4d26d225f49..84d1a5d289e 100644 --- a/src/mame/drivers/segac2.cpp +++ b/src/mame/drivers/segac2.cpp @@ -1581,7 +1581,7 @@ MACHINE_CONFIG_START(segac2_state::segac) MCFG_VIDEO_START_OVERRIDE(segac2_state,segac2_new) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM3438, XL2_CLOCK/7) MCFG_YM2612_IRQ_HANDLER(WRITELINE(*this, segac2_state, segac2_irq2_interrupt)) diff --git a/src/mame/drivers/segacoin.cpp b/src/mame/drivers/segacoin.cpp index c2c5a4bd6ba..092d34279bc 100644 --- a/src/mame/drivers/segacoin.cpp +++ b/src/mame/drivers/segacoin.cpp @@ -141,7 +141,7 @@ MACHINE_CONFIG_START(segacoin_state::westdrm) /* no video! */ /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ym0", YM3438, 8000000) // clock frequency unknown MCFG_SOUND_ROUTE(0, "mono", 0.40) diff --git a/src/mame/drivers/segae.cpp b/src/mame/drivers/segae.cpp index 0cf6b33064c..c175c581885 100644 --- a/src/mame/drivers/segae.cpp +++ b/src/mame/drivers/segae.cpp @@ -903,7 +903,7 @@ MACHINE_CONFIG_START(systeme_state::systeme) MCFG_DEVICE_ADDRESS_MAP(0, vdp2_map) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("sn1", SEGAPSG, XTAL(10'738'635)/3) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/segag80r.cpp b/src/mame/drivers/segag80r.cpp index 5119c119654..ba71d4173a7 100644 --- a/src/mame/drivers/segag80r.cpp +++ b/src/mame/drivers/segag80r.cpp @@ -857,7 +857,7 @@ MACHINE_CONFIG_START(segag80r_state::g80r_base) MCFG_SCREEN_PALETTE("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MACHINE_CONFIG_END diff --git a/src/mame/drivers/segag80v.cpp b/src/mame/drivers/segag80v.cpp index a67be65ba81..f9bf64ea92e 100644 --- a/src/mame/drivers/segag80v.cpp +++ b/src/mame/drivers/segag80v.cpp @@ -914,7 +914,7 @@ MACHINE_CONFIG_START(segag80v_state::g80v_base) MCFG_VECTOR_ADD("vector") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MACHINE_CONFIG_END diff --git a/src/mame/drivers/segahang.cpp b/src/mame/drivers/segahang.cpp index c5029197fb6..ee1765b59f0 100644 --- a/src/mame/drivers/segahang.cpp +++ b/src/mame/drivers/segahang.cpp @@ -844,7 +844,8 @@ MACHINE_CONFIG_START(segahang_state::sound_board_2203) MCFG_DEVICE_IO_MAP(sound_portmap_2203) // sound hardware - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2203, MASTER_CLOCK_8MHz/2) MCFG_YM2203_IRQ_HANDLER(INPUTLINE("soundcpu", 0)) @@ -872,7 +873,8 @@ MACHINE_CONFIG_START(segahang_state::sound_board_2203x2) MCFG_DEVICE_IO_MAP(sound_portmap_2203x2) // sound hardware - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ym1", YM2203, MASTER_CLOCK_8MHz/2) MCFG_YM2203_IRQ_HANDLER(INPUTLINE("soundcpu", 0)) @@ -910,7 +912,8 @@ MACHINE_CONFIG_START(segahang_state::sound_board_2151) MCFG_DEVICE_IO_MAP(sound_portmap_2151) // sound hardware - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2151, MASTER_CLOCK_8MHz/2) MCFG_YM2151_IRQ_HANDLER(INPUTLINE("soundcpu", 0)) diff --git a/src/mame/drivers/segajw.cpp b/src/mame/drivers/segajw.cpp index 7788f52ae6b..1d252fa6cd8 100644 --- a/src/mame/drivers/segajw.cpp +++ b/src/mame/drivers/segajw.cpp @@ -414,7 +414,7 @@ MACHINE_CONFIG_START(segajw_state::segajw) MCFG_HD63484_ADD("hd63484", 8000000, segajw_hd63484_map) // unknown clock /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) diff --git a/src/mame/drivers/segald.cpp b/src/mame/drivers/segald.cpp index 71be4f2ec29..05d5b44340e 100644 --- a/src/mame/drivers/segald.cpp +++ b/src/mame/drivers/segald.cpp @@ -392,7 +392,8 @@ MACHINE_CONFIG_START(segald_state::astron) MCFG_PALETTE_ADD("palette", 256) /* sound hardare */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_MODIFY("laserdisc") MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) diff --git a/src/mame/drivers/segam1.cpp b/src/mame/drivers/segam1.cpp index 35a4287a65f..929ba97913a 100644 --- a/src/mame/drivers/segam1.cpp +++ b/src/mame/drivers/segam1.cpp @@ -388,7 +388,7 @@ MACHINE_CONFIG_START(segam1_state::segam1) MCFG_PALETTE_ADD("palette", 8192*2) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) diff --git a/src/mame/drivers/segaorun.cpp b/src/mame/drivers/segaorun.cpp index 6818c4e9f0a..84838289b31 100644 --- a/src/mame/drivers/segaorun.cpp +++ b/src/mame/drivers/segaorun.cpp @@ -1188,7 +1188,8 @@ MACHINE_CONFIG_START(segaorun_state::outrun_base) MCFG_SEGAIC16_ROAD_ADD("segaic16road") // sound hardware - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2151, SOUND_CLOCK/4) MCFG_SOUND_ROUTE(0, "lspeaker", 0.43) diff --git a/src/mame/drivers/segas16a.cpp b/src/mame/drivers/segas16a.cpp index 1d4ff898b23..a6ed992f609 100644 --- a/src/mame/drivers/segas16a.cpp +++ b/src/mame/drivers/segas16a.cpp @@ -2015,7 +2015,7 @@ MACHINE_CONFIG_START(segas16a_state::system16a) MCFG_PALETTE_ADD("palette", 2048*3) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/segas16b.cpp b/src/mame/drivers/segas16b.cpp index c43e49b37a7..93dd5fbc9d9 100644 --- a/src/mame/drivers/segas16b.cpp +++ b/src/mame/drivers/segas16b.cpp @@ -3747,7 +3747,7 @@ MACHINE_CONFIG_START(segas16b_state::system16b) MCFG_SEGAIC16VID_GFXDECODE("gfxdecode") // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ym2151", YM2151, MASTER_CLOCK_8MHz/2) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.43) @@ -3943,7 +3943,7 @@ MACHINE_CONFIG_START(segas16b_state::lockonph) MCFG_SEGAIC16VID_GFXDECODE("gfxdecode") // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("soundcpu", 0)) diff --git a/src/mame/drivers/segas18.cpp b/src/mame/drivers/segas18.cpp index f414968621f..d13027c3cd2 100644 --- a/src/mame/drivers/segas18.cpp +++ b/src/mame/drivers/segas18.cpp @@ -1356,7 +1356,7 @@ MACHINE_CONFIG_START(segas18_state::system18) MCFG_SEGAIC16VID_GFXDECODE("gfxdecode") // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ym1", YM3438, 8000000) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.40) diff --git a/src/mame/drivers/segas24.cpp b/src/mame/drivers/segas24.cpp index 519378e9a6f..99d20cf0411 100644 --- a/src/mame/drivers/segas24.cpp +++ b/src/mame/drivers/segas24.cpp @@ -1909,7 +1909,8 @@ MACHINE_CONFIG_START(segas24_state::system24) MCFG_PALETTE_ADD("palette", 8192*2) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2151, 4000000) MCFG_YM2151_IRQ_HANDLER(WRITELINE(*this, segas24_state,irq_ym)) diff --git a/src/mame/drivers/segas32.cpp b/src/mame/drivers/segas32.cpp index aab57686f7d..f15551a94d0 100644 --- a/src/mame/drivers/segas32.cpp +++ b/src/mame/drivers/segas32.cpp @@ -2231,7 +2231,8 @@ MACHINE_CONFIG_START(segas32_state::device_add_mconfig) MCFG_SCREEN_UPDATE_DRIVER(segas32_state, screen_update_system32) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ym1", YM3438, MASTER_CLOCK/4) MCFG_YM2612_IRQ_HANDLER(WRITELINE(*this, segas32_state, ym3438_irq_handler)) @@ -2558,7 +2559,8 @@ MACHINE_CONFIG_START(sega_multi32_state::device_add_mconfig) MCFG_SCREEN_UPDATE_DRIVER(segas32_state, screen_update_multi32_right) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM3438, MASTER_CLOCK/4) MCFG_YM2612_IRQ_HANDLER(WRITELINE(*this, segas32_state, ym3438_irq_handler)) diff --git a/src/mame/drivers/segaufo.cpp b/src/mame/drivers/segaufo.cpp index f089a716643..d9cd4a7d2f1 100644 --- a/src/mame/drivers/segaufo.cpp +++ b/src/mame/drivers/segaufo.cpp @@ -815,7 +815,7 @@ MACHINE_CONFIG_START(ufo_state::newufo) /* no video! */ /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ym", YM3438, XTAL(16'000'000)/2) MCFG_YM2612_IRQ_HANDLER(INPUTLINE("maincpu", 0)) diff --git a/src/mame/drivers/segaxbd.cpp b/src/mame/drivers/segaxbd.cpp index 274301fd6ba..5ece4a6b6ef 100644 --- a/src/mame/drivers/segaxbd.cpp +++ b/src/mame/drivers/segaxbd.cpp @@ -1760,7 +1760,8 @@ MACHINE_CONFIG_START(segaxbd_state::xboard_base_mconfig ) MCFG_SEGAIC16_ROAD_ADD("segaic16road") // sound hardware - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -1947,7 +1948,8 @@ MACHINE_CONFIG_START(segaxbd_smgp_fd1094_state::device_add_mconfig) MCFG_CXD1095_OUT_PORTB_CB(WRITE8(*this, segaxbd_state, smgp_motor_w)) // sound hardware - MCFG_SPEAKER_STANDARD_STEREO("rearleft", "rearright") + SPEAKER(config, "rearleft").front_left(); + SPEAKER(config, "rearright").front_right(); MCFG_DEVICE_ADD("pcm2", SEGAPCM, SOUND_CLOCK/4) MCFG_SEGAPCM_BANK(BANK_512) @@ -1988,7 +1990,8 @@ MACHINE_CONFIG_START(segaxbd_smgp_state::device_add_mconfig) MCFG_CXD1095_OUT_PORTB_CB(WRITE8(*this, segaxbd_state, smgp_motor_w)) // sound hardware - MCFG_SPEAKER_STANDARD_STEREO("rearleft", "rearright") + SPEAKER(config, "rearleft").front_left(); + SPEAKER(config, "rearright").front_right(); MCFG_DEVICE_ADD("pcm2", SEGAPCM, SOUND_CLOCK/4) MCFG_SEGAPCM_BANK(BANK_512) diff --git a/src/mame/drivers/segaybd.cpp b/src/mame/drivers/segaybd.cpp index ede8038ffef..a26bd03e17e 100644 --- a/src/mame/drivers/segaybd.cpp +++ b/src/mame/drivers/segaybd.cpp @@ -1334,7 +1334,8 @@ MACHINE_CONFIG_START(segaybd_state::yboard) MCFG_PALETTE_ADD("palette", 8192*3) // sound hardware - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("soundcpu", INPUT_LINE_NMI)) diff --git a/src/mame/drivers/seibucats.cpp b/src/mame/drivers/seibucats.cpp index 0c38403f0aa..21f6f228daf 100644 --- a/src/mame/drivers/seibucats.cpp +++ b/src/mame/drivers/seibucats.cpp @@ -322,7 +322,8 @@ MACHINE_CONFIG_START(seibucats_state::seibucats) //MCFG_PALETTE_INIT_OWNER(seibucats_state, seibucats) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymz", YMZ280B, XTAL(16'384'000)) MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) diff --git a/src/mame/drivers/seibuspi.cpp b/src/mame/drivers/seibuspi.cpp index 1c093480679..4b613c44bf1 100644 --- a/src/mame/drivers/seibuspi.cpp +++ b/src/mame/drivers/seibuspi.cpp @@ -1899,7 +1899,8 @@ MACHINE_CONFIG_START(seibuspi_state::spi) MCFG_SEIBU_CRTC_LAYER_SCROLL_CB(WRITE16(*this, seibuspi_state, scroll_w)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymf", YMF271, XTAL(16'934'400)) MCFG_YMF271_IRQ_HANDLER(WRITELINE(*this, seibuspi_state, ymf_irqhandler)) @@ -1955,7 +1956,7 @@ MACHINE_CONFIG_START(seibuspi_state::sxx2e) // Single PCBs only output mono sound, SXX2E : unverified MCFG_DEVICE_REMOVE("lspeaker") MCFG_DEVICE_REMOVE("rspeaker") - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_REPLACE("ymf", YMF271, XTAL(16'934'400)) MCFG_YMF271_IRQ_HANDLER(WRITELINE(*this, seibuspi_state, ymf_irqhandler)) @@ -2024,7 +2025,7 @@ MACHINE_CONFIG_START(seibuspi_state::sys386i) MCFG_SEIBU_CRTC_LAYER_SCROLL_CB(WRITE16(*this, seibuspi_state, scroll_w)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki1", OKIM6295, XTAL(28'636'363)/20, okim6295_device::PIN7_HIGH) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) @@ -2081,7 +2082,7 @@ MACHINE_CONFIG_START(seibuspi_state::sys386f) /* sound hardware */ // Single PCBs only output mono sound - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymz", YMZ280B, XTAL(16'384'000)) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/seicross.cpp b/src/mame/drivers/seicross.cpp index 44e7a55ad66..3ed3ba33023 100644 --- a/src/mame/drivers/seicross.cpp +++ b/src/mame/drivers/seicross.cpp @@ -425,7 +425,7 @@ MACHINE_CONFIG_START(seicross_state::no_nvram) MCFG_PALETTE_INIT_OWNER(seicross_state, seicross) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, XTAL(18'432'000) / 12) MCFG_AY8910_PORT_B_READ_CB(READ8(*this, seicross_state, portB_r)) diff --git a/src/mame/drivers/seicupbl.cpp b/src/mame/drivers/seicupbl.cpp index c2b2f99040c..ec63505668a 100644 --- a/src/mame/drivers/seicupbl.cpp +++ b/src/mame/drivers/seicupbl.cpp @@ -573,7 +573,7 @@ MACHINE_CONFIG_START(seicupbl_state::cupsocbl) // MCFG_VIDEO_START_OVERRIDE(seicupbl_state,cupsoc) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) diff --git a/src/mame/drivers/sengokmj.cpp b/src/mame/drivers/sengokmj.cpp index 6cb7cca8642..d4ab2be73ce 100644 --- a/src/mame/drivers/sengokmj.cpp +++ b/src/mame/drivers/sengokmj.cpp @@ -603,7 +603,7 @@ MACHINE_CONFIG_START(sengokmj_state::sengokmj) MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM3812, 14318180/4) MCFG_YM3812_IRQ_HANDLER(WRITELINE("seibu_sound", seibu_sound_device, fm_irqhandler)) diff --git a/src/mame/drivers/senjyo.cpp b/src/mame/drivers/senjyo.cpp index a2a911b24c3..25cd23df0ac 100644 --- a/src/mame/drivers/senjyo.cpp +++ b/src/mame/drivers/senjyo.cpp @@ -586,7 +586,7 @@ MACHINE_CONFIG_START(senjyo_state::senjyo) MCFG_PALETTE_INIT_OWNER(senjyo_state, radar) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("sn1", SN76496, 2000000) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) diff --git a/src/mame/drivers/seta.cpp b/src/mame/drivers/seta.cpp index de812f7dd5a..956f6a77bbd 100644 --- a/src/mame/drivers/seta.cpp +++ b/src/mame/drivers/seta.cpp @@ -7841,7 +7841,8 @@ MACHINE_CONFIG_START(seta_state::tndrcade) MCFG_VIDEO_START_OVERRIDE(seta_state,seta_no_layers) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ym1", YM2203, 16000000/4) /* 4 MHz */ MCFG_AY8910_PORT_A_READ_CB(READ8(*this, seta_state, dsw1_r)) /* input A: DSW 1 */ @@ -7895,7 +7896,7 @@ MACHINE_CONFIG_START(seta_state::twineagl) MCFG_VIDEO_START_OVERRIDE(seta_state,twineagl_1_layer) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch1") MCFG_GENERIC_LATCH_8_ADD("soundlatch2") @@ -7941,7 +7942,7 @@ MACHINE_CONFIG_START(seta_state::downtown) MCFG_VIDEO_START_OVERRIDE(seta_state,seta_1_layer) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch1") MCFG_GENERIC_LATCH_8_ADD("soundlatch2") @@ -8025,7 +8026,7 @@ MACHINE_CONFIG_START(seta_state::usclssic) MCFG_VIDEO_START_OVERRIDE(seta_state,seta_1_layer) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch1") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("sub", INPUT_LINE_NMI)) @@ -8083,7 +8084,7 @@ MACHINE_CONFIG_START(seta_state::calibr50) MCFG_VIDEO_START_OVERRIDE(seta_state,seta_1_layer) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch1") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("sub", INPUT_LINE_NMI)) @@ -8133,7 +8134,7 @@ MACHINE_CONFIG_START(seta_state::metafox) MCFG_VIDEO_START_OVERRIDE(seta_state,seta_1_layer) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch1") MCFG_GENERIC_LATCH_8_ADD("soundlatch2") @@ -8173,7 +8174,7 @@ MACHINE_CONFIG_START(seta_state::atehate) MCFG_VIDEO_START_OVERRIDE(seta_state,seta_no_layers) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("x1snd", X1_010, 16000000) /* 16 MHz */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -8221,7 +8222,7 @@ MACHINE_CONFIG_START(seta_state::blandia) MCFG_VIDEO_START_OVERRIDE(seta_state,seta_2_layers) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("x1snd", X1_010, 16000000) /* 16 MHz */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -8258,7 +8259,7 @@ MACHINE_CONFIG_START(seta_state::blandiap) MCFG_VIDEO_START_OVERRIDE(seta_state,seta_2_layers) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("x1snd", X1_010, 16000000) /* 16 MHz */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -8295,7 +8296,7 @@ MACHINE_CONFIG_START(seta_state::blockcar) MCFG_VIDEO_START_OVERRIDE(seta_state,seta_no_layers) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("x1snd", X1_010, 16000000) /* 16 MHz */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -8369,7 +8370,7 @@ MACHINE_CONFIG_START(seta_state::daioh) MCFG_VIDEO_START_OVERRIDE(seta_state,seta_2_layers) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("x1snd", X1_010, XTAL(16'000'000)) /* 16 MHz, Verified from PCB audio */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -8406,7 +8407,7 @@ MACHINE_CONFIG_START(seta_state::daiohp) MCFG_VIDEO_START_OVERRIDE(seta_state,seta_2_layers) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("x1snd", X1_010, XTAL(16'000'000)) /* 16 MHz, Verified from PCB audio */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -8449,7 +8450,7 @@ MACHINE_CONFIG_START(seta_state::drgnunit) MCFG_VIDEO_START_OVERRIDE(seta_state,seta_1_layer) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("x1snd", X1_010, 16000000) /* 16 MHz */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -8485,7 +8486,8 @@ MACHINE_CONFIG_START(seta_state::qzkklgy2) MCFG_VIDEO_START_OVERRIDE(seta_state,seta_1_layer) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("x1snd", X1_010, 16000000) /* 16 MHz */ MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) @@ -8548,7 +8550,8 @@ MACHINE_CONFIG_START(setaroul_state::setaroul) MCFG_VIDEO_START_OVERRIDE(setaroul_state,setaroul_1_layer) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("x1snd", X1_010, XTAL(16'000'000)) /* 16 MHz */ MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) @@ -8589,7 +8592,7 @@ MACHINE_CONFIG_START(seta_state::eightfrc) MCFG_VIDEO_START_OVERRIDE(seta_state,seta_2_layers) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("x1snd", X1_010, 16000000) /* 16 MHz */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -8635,7 +8638,8 @@ MACHINE_CONFIG_START(seta_state::extdwnhl) MCFG_VIDEO_START_OVERRIDE(seta_state,seta_2_layers) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("x1snd", X1_010, 16000000) /* 16 MHz */ MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) @@ -8702,7 +8706,7 @@ MACHINE_CONFIG_START(seta_state::gundhara) MCFG_VIDEO_START_OVERRIDE(seta_state,seta_2_layers) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("x1snd", X1_010, 16000000) /* 16 MHz */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -8763,7 +8767,7 @@ MACHINE_CONFIG_START(seta_state::jjsquawk) MCFG_VIDEO_START_OVERRIDE(seta_state,seta_2_layers) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("x1snd", X1_010, 16000000) /* 16 MHz */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -8798,7 +8802,7 @@ MACHINE_CONFIG_START(seta_state::jjsquawb) MCFG_VIDEO_START_OVERRIDE(seta_state,seta_2_layers) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("x1snd", X1_010, 16000000) /* 16 MHz */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -8840,7 +8844,7 @@ MACHINE_CONFIG_START(seta_state::kamenrid) MCFG_VIDEO_START_OVERRIDE(seta_state,seta_2_layers) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("x1snd", X1_010, 16000000) /* 16 MHz */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -8878,7 +8882,8 @@ MACHINE_CONFIG_START(seta_state::orbs) MCFG_VIDEO_START_OVERRIDE(seta_state,seta_no_layers) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("x1snd", X1_010, 14318180) /* 14.318180 MHz */ MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) @@ -8920,7 +8925,8 @@ MACHINE_CONFIG_START(seta_state::keroppij) MCFG_VIDEO_START_OVERRIDE(seta_state,seta_no_layers) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("x1snd", X1_010, 14318180) /* 14.318180 MHz */ MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) @@ -8970,7 +8976,7 @@ MACHINE_CONFIG_START(seta_state::krzybowl) MCFG_VIDEO_START_OVERRIDE(seta_state,seta_no_layers) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("x1snd", X1_010, 16000000) /* 16 MHz */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -9017,7 +9023,7 @@ MACHINE_CONFIG_START(seta_state::madshark) MCFG_VIDEO_START_OVERRIDE(seta_state,seta_2_layers) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("x1snd", X1_010, 16000000) /* 16 MHz */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -9060,7 +9066,7 @@ MACHINE_CONFIG_START(seta_state::magspeed) MCFG_VIDEO_START_OVERRIDE(seta_state,seta_2_layers) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("x1snd", X1_010, 16000000) /* 16 MHz */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -9104,7 +9110,7 @@ MACHINE_CONFIG_START(seta_state::msgundam) MCFG_VIDEO_START_OVERRIDE(seta_state,seta_2_layers) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("x1snd", X1_010, 16000000) /* 16 MHz */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -9142,7 +9148,8 @@ MACHINE_CONFIG_START(seta_state::oisipuzl) MCFG_VIDEO_START_OVERRIDE(seta_state,oisipuzl_2_layers) // flip is inverted for the tilemaps /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("x1snd", X1_010, 16000000) /* 16 MHz */ MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) @@ -9181,7 +9188,8 @@ MACHINE_CONFIG_START(seta_state::triplfun) MCFG_VIDEO_START_OVERRIDE(seta_state,oisipuzl_2_layers) // flip is inverted for the tilemaps /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("oki", OKIM6295, 792000, okim6295_device::PIN7_HIGH) // clock frequency & pin 7 not verified MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 1.0) @@ -9224,7 +9232,8 @@ MACHINE_CONFIG_START(seta_state::kiwame) MCFG_VIDEO_START_OVERRIDE(seta_state,seta_no_layers) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("x1snd", X1_010, 16000000) /* 16 MHz */ MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) @@ -9266,7 +9275,7 @@ MACHINE_CONFIG_START(seta_state::rezon) MCFG_VIDEO_START_OVERRIDE(seta_state,seta_2_layers) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("x1snd", X1_010, 16000000) /* 16 MHz */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -9306,7 +9315,7 @@ MACHINE_CONFIG_START(seta_state::thunderl) MCFG_VIDEO_START_OVERRIDE(seta_state,seta_no_layers) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("x1snd", X1_010, 16000000) /* 16 MHz */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -9382,7 +9391,7 @@ MACHINE_CONFIG_START(seta_state::wiggie) MCFG_VIDEO_START_OVERRIDE(seta_state,seta_no_layers) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, 1000000, okim6295_device::PIN7_HIGH) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -9423,7 +9432,7 @@ MACHINE_CONFIG_START(seta_state::wits) MCFG_VIDEO_START_OVERRIDE(seta_state,seta_no_layers) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("x1snd", X1_010, 16000000) /* 16 MHz */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -9460,7 +9469,7 @@ MACHINE_CONFIG_START(seta_state::umanclub) MCFG_VIDEO_START_OVERRIDE(seta_state,seta_no_layers) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("x1snd", X1_010, 16000000) /* 16 MHz */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -9501,7 +9510,8 @@ MACHINE_CONFIG_START(seta_state::utoukond) MCFG_VIDEO_START_OVERRIDE(seta_state,seta_2_layers) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch1") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", 0)) @@ -9558,7 +9568,7 @@ MACHINE_CONFIG_START(seta_state::wrofaero) MCFG_VIDEO_START_OVERRIDE(seta_state,seta_2_layers) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("x1snd", X1_010, 16000000) /* 16 MHz */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -9607,7 +9617,7 @@ MACHINE_CONFIG_START(seta_state::zingzip) MCFG_VIDEO_START_OVERRIDE(seta_state,seta_2_layers) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("x1snd", X1_010, 16000000) /* 16 MHz */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -9660,7 +9670,7 @@ MACHINE_CONFIG_START(seta_state::pairlove) MCFG_VIDEO_START_OVERRIDE(seta_state,seta_no_layers) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("x1snd", X1_010, 16000000) /* 16 MHz */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -9711,7 +9721,7 @@ MACHINE_CONFIG_START(seta_state::crazyfgt) MCFG_VIDEO_START_OVERRIDE(seta_state,seta_2_layers) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM3812, 16000000/4) /* 4 MHz */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -9781,7 +9791,8 @@ MACHINE_CONFIG_START(jockeyc_state::jockeyc) MCFG_VIDEO_START_OVERRIDE(jockeyc_state,jockeyc_1_layer) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("x1snd", X1_010, 16000000) MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) diff --git a/src/mame/drivers/seta2.cpp b/src/mame/drivers/seta2.cpp index 08d2535137e..529c6fa12e1 100644 --- a/src/mame/drivers/seta2.cpp +++ b/src/mame/drivers/seta2.cpp @@ -2548,7 +2548,7 @@ MACHINE_CONFIG_START(seta2_state::seta2) MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("x1snd", X1_010, XTAL(50'000'000)/3) // clock? MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -2783,7 +2783,8 @@ MACHINE_CONFIG_START(seta2_state::funcube) MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB) // sound hardware - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("oki", OKIM9810, XTAL(4'096'000)) MCFG_SOUND_ROUTE(0, "lspeaker", 0.80) @@ -2837,7 +2838,8 @@ MACHINE_CONFIG_START(seta2_state::namcostr) MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB) // sound hardware - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("oki", OKIM9810, XTAL(4'096'000)) MCFG_SOUND_ROUTE(0, "lspeaker", 0.80) diff --git a/src/mame/drivers/sf.cpp b/src/mame/drivers/sf.cpp index 5a087f007d9..3f91bea88a4 100644 --- a/src/mame/drivers/sf.cpp +++ b/src/mame/drivers/sf.cpp @@ -570,7 +570,8 @@ MACHINE_CONFIG_START(sf_state::sfan) MCFG_PALETTE_FORMAT(xxxxRRRRGGGGBBBB) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/sfbonus.cpp b/src/mame/drivers/sfbonus.cpp index 688fc732896..e99185d82e5 100644 --- a/src/mame/drivers/sfbonus.cpp +++ b/src/mame/drivers/sfbonus.cpp @@ -1393,7 +1393,7 @@ MACHINE_CONFIG_START(sfbonus_state::sfbonus) /* Parrot 3 seems fine at 1 Mhz, but Double Challenge isn't? */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, 1000000, okim6295_device::PIN7_HIGH) // clock frequency & pin 7 not verified MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) MACHINE_CONFIG_END diff --git a/src/mame/drivers/sfcbox.cpp b/src/mame/drivers/sfcbox.cpp index 2751ada8d9c..0278f4cec53 100644 --- a/src/mame/drivers/sfcbox.cpp +++ b/src/mame/drivers/sfcbox.cpp @@ -475,7 +475,8 @@ MACHINE_CONFIG_START(sfcbox_state::sfcbox) MCFG_S3520CF_ADD("s3520cf") /* RTC */ /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("spc700", SNES_SOUND) MCFG_SOUND_ROUTE(0, "lspeaker", 1.00) MCFG_SOUND_ROUTE(1, "rspeaker", 1.00) diff --git a/src/mame/drivers/sfkick.cpp b/src/mame/drivers/sfkick.cpp index 5e959ea9066..43b7d243c68 100644 --- a/src/mame/drivers/sfkick.cpp +++ b/src/mame/drivers/sfkick.cpp @@ -614,7 +614,7 @@ MACHINE_CONFIG_START(sfkick_state::sfkick) MCFG_I8255_IN_PORTB_CB(READ8(*this, sfkick_state, ppi_port_b_r)) MCFG_I8255_OUT_PORTC_CB(WRITE8(*this, sfkick_state, ppi_port_c_w)) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/sg1000.cpp b/src/mame/drivers/sg1000.cpp index a66a41fb001..9ce5870bddb 100644 --- a/src/mame/drivers/sg1000.cpp +++ b/src/mame/drivers/sg1000.cpp @@ -541,7 +541,7 @@ MACHINE_CONFIG_START(sg1000_state::sg1000) MCFG_SCREEN_UPDATE_DEVICE( TMS9918A_TAG, tms9918a_device, screen_update ) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD(SN76489AN_TAG, SN76489A, XTAL(10'738'635)/3) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) @@ -595,7 +595,7 @@ MACHINE_CONFIG_START(sc3000_state::sc3000) MCFG_SCREEN_UPDATE_DEVICE( TMS9918A_TAG, tms9918a_device, screen_update ) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD(SN76489AN_TAG, SN76489A, XTAL(10'738'635)/3) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) @@ -633,7 +633,7 @@ MACHINE_CONFIG_START(sf7000_state::sf7000) MCFG_SCREEN_UPDATE_DEVICE( TMS9918A_TAG, tms9918a_device, screen_update ) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD(SN76489AN_TAG, SN76489A, XTAL(10'738'635)/3) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) diff --git a/src/mame/drivers/sg1000a.cpp b/src/mame/drivers/sg1000a.cpp index b75bc0d402e..368f279109b 100644 --- a/src/mame/drivers/sg1000a.cpp +++ b/src/mame/drivers/sg1000a.cpp @@ -486,7 +486,7 @@ MACHINE_CONFIG_START(sg1000a_state::sg1000a) MCFG_SCREEN_UPDATE_DEVICE( "tms9928a", tms9928a_device, screen_update ) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("snsnd", SN76489A, XTAL(3'579'545)) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/shadfrce.cpp b/src/mame/drivers/shadfrce.cpp index 61e20d43d19..8dc8193b0ce 100644 --- a/src/mame/drivers/shadfrce.cpp +++ b/src/mame/drivers/shadfrce.cpp @@ -557,7 +557,8 @@ MACHINE_CONFIG_START(shadfrce_state::shadfrce) MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) diff --git a/src/mame/drivers/shangha3.cpp b/src/mame/drivers/shangha3.cpp index d8a8f2e3a86..18c26495701 100644 --- a/src/mame/drivers/shangha3.cpp +++ b/src/mame/drivers/shangha3.cpp @@ -473,7 +473,7 @@ MACHINE_CONFIG_START(shangha3_state::shangha3) MCFG_PALETTE_ENABLE_SHADOWS() /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", YM2149, 48_MHz_XTAL/32) // 1.5MHz MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW1")) @@ -514,7 +514,7 @@ MACHINE_CONFIG_START(shangha3_state::heberpop) MCFG_PALETTE_ENABLE_SHADOWS() /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", 0)) @@ -558,7 +558,7 @@ MACHINE_CONFIG_START(shangha3_state::blocken) MCFG_PALETTE_ENABLE_SHADOWS() /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", 0)) diff --git a/src/mame/drivers/shanghai.cpp b/src/mame/drivers/shanghai.cpp index d6222e1a98f..0d2ed9ba89e 100644 --- a/src/mame/drivers/shanghai.cpp +++ b/src/mame/drivers/shanghai.cpp @@ -419,7 +419,7 @@ MACHINE_CONFIG_START(shanghai_state::shanghai) MCFG_HD63484_ADD("hd63484", 0, hd63484_map) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2203, XTAL(16'000'000)/4) MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW1")) @@ -454,7 +454,7 @@ MACHINE_CONFIG_START(shanghai_state::shangha2) MCFG_HD63484_ADD("hd63484", 0, hd63484_map) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2203, XTAL(16'000'000)/4) MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW1")) @@ -494,7 +494,7 @@ MACHINE_CONFIG_START(shanghai_state::kothello) MCFG_HD63484_EXTERNAL_SKEW(2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); /* same as standard seibu ym2203, but also reads "DSW" */ MCFG_DEVICE_ADD("ymsnd", YM2203, XTAL(16'000'000)/4) diff --git a/src/mame/drivers/shangkid.cpp b/src/mame/drivers/shangkid.cpp index 36755c29b85..439d81e3b94 100644 --- a/src/mame/drivers/shangkid.cpp +++ b/src/mame/drivers/shangkid.cpp @@ -418,7 +418,7 @@ MACHINE_CONFIG_START(shangkid_state::chinhero) MCFG_VIDEO_START_OVERRIDE(shangkid_state,shangkid) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) // unknown DAC MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) @@ -512,7 +512,7 @@ MACHINE_CONFIG_START(shangkid_state::dynamski) MCFG_PALETTE_INIT_OWNER(shangkid_state,dynamski) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, 2000000) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.1) diff --git a/src/mame/drivers/shaolins.cpp b/src/mame/drivers/shaolins.cpp index 953668dc1fe..2f4e4539f1f 100644 --- a/src/mame/drivers/shaolins.cpp +++ b/src/mame/drivers/shaolins.cpp @@ -216,7 +216,7 @@ MACHINE_CONFIG_START(shaolins_state::shaolins) MCFG_PALETTE_INIT_OWNER(shaolins_state, shaolins) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("sn1", SN76489A, MASTER_CLOCK/12) /* verified on pcb */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/shisen.cpp b/src/mame/drivers/shisen.cpp index 76bef305c4b..a2fa4f4265c 100644 --- a/src/mame/drivers/shisen.cpp +++ b/src/mame/drivers/shisen.cpp @@ -242,7 +242,8 @@ MACHINE_CONFIG_START(shisen_state::shisen) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(WRITELINE("soundirq", rst_neg_buffer_device, rst18_w)) diff --git a/src/mame/drivers/shootaway2.cpp b/src/mame/drivers/shootaway2.cpp index ffc02be92d2..0f688fd9342 100644 --- a/src/mame/drivers/shootaway2.cpp +++ b/src/mame/drivers/shootaway2.cpp @@ -94,7 +94,7 @@ MACHINE_CONFIG_START(m74_state::m74) MCFG_SCREEN_SIZE(320, 240) MCFG_SCREEN_VISIBLE_AREA(0, 319, 0, 239) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, XTAL(1'000'000), okim6295_device::PIN7_HIGH) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) MACHINE_CONFIG_END diff --git a/src/mame/drivers/shootout.cpp b/src/mame/drivers/shootout.cpp index 353de8db649..c9da373e706 100644 --- a/src/mame/drivers/shootout.cpp +++ b/src/mame/drivers/shootout.cpp @@ -299,7 +299,7 @@ MACHINE_CONFIG_START(shootout_state::shootout) MCFG_PALETTE_INIT_OWNER(shootout_state, shootout) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -329,7 +329,7 @@ MACHINE_CONFIG_START(shootout_state::shootouj) MCFG_PALETTE_INIT_OWNER(shootout_state, shootout) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/shougi.cpp b/src/mame/drivers/shougi.cpp index 4ab2fc3463e..e3d6d16add5 100644 --- a/src/mame/drivers/shougi.cpp +++ b/src/mame/drivers/shougi.cpp @@ -409,7 +409,7 @@ MACHINE_CONFIG_START(shougi_state::shougi) MCFG_PALETTE_INIT_OWNER(shougi_state, shougi) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, XTAL(10'000'000)/8) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30) diff --git a/src/mame/drivers/shuuz.cpp b/src/mame/drivers/shuuz.cpp index 37167c6fc7c..541a7fe20e5 100644 --- a/src/mame/drivers/shuuz.cpp +++ b/src/mame/drivers/shuuz.cpp @@ -261,7 +261,7 @@ MACHINE_CONFIG_START(shuuz_state::shuuz) MCFG_SCREEN_PALETTE("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, ATARI_CLOCK_14MHz/16, okim6295_device::PIN7_HIGH) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/sidearms.cpp b/src/mame/drivers/sidearms.cpp index 9101c89a5ed..aa0600b7cb0 100644 --- a/src/mame/drivers/sidearms.cpp +++ b/src/mame/drivers/sidearms.cpp @@ -629,7 +629,7 @@ MACHINE_CONFIG_START(sidearms_state::sidearms) MCFG_PALETTE_FORMAT(xxxxBBBBRRRRGGGG) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -678,7 +678,7 @@ MACHINE_CONFIG_START(sidearms_state::turtship) MCFG_PALETTE_FORMAT(xxxxBBBBRRRRGGGG) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -730,7 +730,7 @@ MACHINE_CONFIG_START(sidearms_state::whizz) MCFG_PALETTE_FORMAT(xxxxBBBBRRRRGGGG) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/sidepckt.cpp b/src/mame/drivers/sidepckt.cpp index 71fa6f1f04e..9e7595ee6b1 100644 --- a/src/mame/drivers/sidepckt.cpp +++ b/src/mame/drivers/sidepckt.cpp @@ -393,7 +393,7 @@ MACHINE_CONFIG_START(sidepckt_state::sidepckt) MCFG_PALETTE_INIT_OWNER(sidepckt_state, sidepckt) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) diff --git a/src/mame/drivers/sigmab52.cpp b/src/mame/drivers/sigmab52.cpp index 9ebe60f35c6..54f47cfa04d 100644 --- a/src/mame/drivers/sigmab52.cpp +++ b/src/mame/drivers/sigmab52.cpp @@ -620,7 +620,7 @@ MACHINE_CONFIG_START(sigmab52_state::jwildb52) MCFG_PALETTE_ADD("palette", 16) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/sigmab98.cpp b/src/mame/drivers/sigmab98.cpp index ba5c3d705a3..2714b20a587 100644 --- a/src/mame/drivers/sigmab98.cpp +++ b/src/mame/drivers/sigmab98.cpp @@ -2863,7 +2863,8 @@ MACHINE_CONFIG_START(sigmab98_state::sigmab98) MCFG_DEVICE_ADD("spriteram", BUFFERED_SPRITERAM8) // sound hardware - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymz", YMZ280B, 16934400) // clock @X2? MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) @@ -2956,7 +2957,8 @@ MACHINE_CONFIG_START(lufykzku_state::lufykzku) // MCFG_DEVICE_ADD("spriteram", BUFFERED_SPRITERAM8) // same as sammymdl? // sound hardware - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("oki", OKIM9810, XTAL(4'096'000)) MCFG_SOUND_ROUTE(0, "lspeaker", 0.80) MCFG_SOUND_ROUTE(1, "rspeaker", 0.80) @@ -3019,7 +3021,8 @@ MACHINE_CONFIG_START(sigmab98_state::sammymdl) // MCFG_DEVICE_ADD("spriteram", BUFFERED_SPRITERAM8) // not on sammymdl? // sound hardware - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("oki", OKIM9810, XTAL(4'096'000)) MCFG_SOUND_ROUTE(0, "lspeaker", 0.80) diff --git a/src/mame/drivers/silkroad.cpp b/src/mame/drivers/silkroad.cpp index 4efe464f7f9..2a63c3b3e82 100644 --- a/src/mame/drivers/silkroad.cpp +++ b/src/mame/drivers/silkroad.cpp @@ -295,7 +295,8 @@ MACHINE_CONFIG_START(silkroad_state::silkroad) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2151, XTAL(3'579'545)) MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) diff --git a/src/mame/drivers/silvmil.cpp b/src/mame/drivers/silvmil.cpp index a698dddfc97..50e5a946045 100644 --- a/src/mame/drivers/silvmil.cpp +++ b/src/mame/drivers/silvmil.cpp @@ -433,7 +433,7 @@ MACHINE_CONFIG_START(silvmil_state::silvmil) MCFG_DECO_SPRITE_OFFSETS(5, 7) MCFG_DECO_SPRITE_GFXDECODE("gfxdecode") - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/simpl156.cpp b/src/mame/drivers/simpl156.cpp index 39a87160a6a..259f00d6b13 100644 --- a/src/mame/drivers/simpl156.cpp +++ b/src/mame/drivers/simpl156.cpp @@ -446,7 +446,8 @@ MACHINE_CONFIG_START(simpl156_state::chainrec) MCFG_DECO_SPRITE_PRIORITY_CB(simpl156_state, pri_callback) MCFG_DECO_SPRITE_GFXDECODE("gfxdecode") - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("okisfx", OKIM6295, 32220000/32, okim6295_device::PIN7_HIGH) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.6) diff --git a/src/mame/drivers/simpsons.cpp b/src/mame/drivers/simpsons.cpp index d9372ae8747..07b807f8fb9 100644 --- a/src/mame/drivers/simpsons.cpp +++ b/src/mame/drivers/simpsons.cpp @@ -376,7 +376,8 @@ MACHINE_CONFIG_START(simpsons_state::simpsons) MCFG_K053251_ADD("k053251") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2151, XTAL(3'579'545)) /* verified on pcb */ MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) /* only left channel is connected */ diff --git a/src/mame/drivers/skeetsht.cpp b/src/mame/drivers/skeetsht.cpp index 65f49f3c604..9de1c313262 100644 --- a/src/mame/drivers/skeetsht.cpp +++ b/src/mame/drivers/skeetsht.cpp @@ -256,7 +256,7 @@ MACHINE_CONFIG_START(skeetsht_state::skeetsht) MCFG_SCREEN_UPDATE_DEVICE("tms", tms34010_device, tms340x0_rgb32) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, 2000000) // ? MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/skimaxx.cpp b/src/mame/drivers/skimaxx.cpp index 372ff2c9e51..47664710ad9 100644 --- a/src/mame/drivers/skimaxx.cpp +++ b/src/mame/drivers/skimaxx.cpp @@ -533,7 +533,8 @@ MACHINE_CONFIG_START(skimaxx_state::skimaxx) MCFG_PALETTE_ADD_RRRRRGGGGGBBBBB("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("oki1", OKIM6295, XTAL(4'000'000), okim6295_device::PIN7_LOW) // ? MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 1.0) diff --git a/src/mame/drivers/skullxbo.cpp b/src/mame/drivers/skullxbo.cpp index 92784992f3e..6a3ba27516e 100644 --- a/src/mame/drivers/skullxbo.cpp +++ b/src/mame/drivers/skullxbo.cpp @@ -258,7 +258,7 @@ MACHINE_CONFIG_START(skullxbo_state::skullxbo) MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, skullxbo_state, video_int_write_line)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_ATARI_JSA_II_ADD("jsa", INPUTLINE("maincpu", M68K_IRQ_4)) MCFG_ATARI_JSA_TEST_PORT("FF5802", 7) diff --git a/src/mame/drivers/skyarmy.cpp b/src/mame/drivers/skyarmy.cpp index 7af8e738fc0..525239154b7 100644 --- a/src/mame/drivers/skyarmy.cpp +++ b/src/mame/drivers/skyarmy.cpp @@ -349,7 +349,7 @@ MACHINE_CONFIG_START(skyarmy_state::skyarmy) MCFG_PALETTE_INIT_OWNER(skyarmy_state, skyarmy) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay0", AY8910, 2500000) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.15) MCFG_DEVICE_ADD("ay1", AY8910, 2500000) diff --git a/src/mame/drivers/skydiver.cpp b/src/mame/drivers/skydiver.cpp index cba45936533..83e4f6681cd 100644 --- a/src/mame/drivers/skydiver.cpp +++ b/src/mame/drivers/skydiver.cpp @@ -397,7 +397,7 @@ MACHINE_CONFIG_START(skydiver_state::skydiver) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("discrete", DISCRETE, skydiver_discrete) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/skyfox.cpp b/src/mame/drivers/skyfox.cpp index 0a5a1e39c39..56207fe7b97 100644 --- a/src/mame/drivers/skyfox.cpp +++ b/src/mame/drivers/skyfox.cpp @@ -246,7 +246,7 @@ MACHINE_CONFIG_START(skyfox_state::skyfox) MCFG_PALETTE_INIT_OWNER(skyfox_state, skyfox) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/skykid.cpp b/src/mame/drivers/skykid.cpp index 7ee7da6a659..fd3c1c7bba7 100644 --- a/src/mame/drivers/skykid.cpp +++ b/src/mame/drivers/skykid.cpp @@ -463,7 +463,7 @@ MACHINE_CONFIG_START(skykid_state::skykid) MCFG_PALETTE_INIT_OWNER(skykid_state, skykid) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("namco", NAMCO_CUS30, 49152000/2048) MCFG_NAMCO_AUDIO_VOICES(8) diff --git a/src/mame/drivers/skylncr.cpp b/src/mame/drivers/skylncr.cpp index 4cbb51ddba3..d15820f54ac 100644 --- a/src/mame/drivers/skylncr.cpp +++ b/src/mame/drivers/skylncr.cpp @@ -1676,7 +1676,7 @@ MACHINE_CONFIG_START(skylncr_state::skylncr) MCFG_RAMDAC_COLOR_BASE(0x100) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, MASTER_CLOCK/8) MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW3")) MCFG_AY8910_PORT_B_READ_CB(IOPORT("DSW4")) diff --git a/src/mame/drivers/skyraid.cpp b/src/mame/drivers/skyraid.cpp index 28e81b05855..ea76617a102 100644 --- a/src/mame/drivers/skyraid.cpp +++ b/src/mame/drivers/skyraid.cpp @@ -247,7 +247,7 @@ MACHINE_CONFIG_START(skyraid_state::skyraid) MCFG_PALETTE_INIT_OWNER(skyraid_state, skyraid) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("discrete", DISCRETE, skyraid_discrete) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/slapfght.cpp b/src/mame/drivers/slapfght.cpp index 57b06926576..bfbbd0ea957 100644 --- a/src/mame/drivers/slapfght.cpp +++ b/src/mame/drivers/slapfght.cpp @@ -926,7 +926,7 @@ MACHINE_CONFIG_START(slapfght_state::perfrman) MCFG_VIDEO_START_OVERRIDE(slapfght_state, perfrman) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay1", AY8910, XTAL(16'000'000)/8) MCFG_AY8910_PORT_A_READ_CB(IOPORT("IN0")) @@ -978,7 +978,7 @@ MACHINE_CONFIG_START(slapfght_state::tigerh) MCFG_VIDEO_START_OVERRIDE(slapfght_state, slapfight) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay1", AY8910, XTAL(36'000'000)/24) // 1.5MHz MCFG_AY8910_PORT_A_READ_CB(IOPORT("IN0")) @@ -1051,7 +1051,7 @@ MACHINE_CONFIG_START(slapfght_state::slapfigh) MCFG_VIDEO_START_OVERRIDE(slapfght_state, slapfight) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay1", AY8910, XTAL(36'000'000)/24) // 1.5MHz MCFG_AY8910_PORT_A_READ_CB(IOPORT("IN0")) diff --git a/src/mame/drivers/slapshot.cpp b/src/mame/drivers/slapshot.cpp index c0866427229..bedbf853bbf 100644 --- a/src/mame/drivers/slapshot.cpp +++ b/src/mame/drivers/slapshot.cpp @@ -486,7 +486,8 @@ MACHINE_CONFIG_START(slapshot_state::slapshot) MCFG_TC0360PRI_ADD("tc0360pri") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2610B, 16000000/2) MCFG_YM2610_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) @@ -554,7 +555,8 @@ MACHINE_CONFIG_START(slapshot_state::opwolf3) MCFG_TC0360PRI_ADD("tc0360pri") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2610B, 16000000/2) MCFG_YM2610_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) diff --git a/src/mame/drivers/slc1.cpp b/src/mame/drivers/slc1.cpp index 98b272a4fa2..053b08d3acf 100644 --- a/src/mame/drivers/slc1.cpp +++ b/src/mame/drivers/slc1.cpp @@ -278,7 +278,7 @@ MACHINE_CONFIG_START(slc1_state::slc1) MCFG_DEFAULT_LAYOUT(layout_slc1) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) MACHINE_CONFIG_END diff --git a/src/mame/drivers/sliver.cpp b/src/mame/drivers/sliver.cpp index f5a6027885b..de62acf3cd2 100644 --- a/src/mame/drivers/sliver.cpp +++ b/src/mame/drivers/sliver.cpp @@ -536,7 +536,8 @@ MACHINE_CONFIG_START(sliver_state::sliver) MCFG_RAMDAC_ADD("ramdac", ramdac_map, "palette") - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/slotcarn.cpp b/src/mame/drivers/slotcarn.cpp index d947c8e06e7..c13aaf573df 100644 --- a/src/mame/drivers/slotcarn.cpp +++ b/src/mame/drivers/slotcarn.cpp @@ -576,7 +576,7 @@ MACHINE_CONFIG_START(slotcarn_state::slotcarn) MCFG_PALETTE_ADD("palette", 0x400) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd",AY8910, SND_CLOCK) MCFG_AY8910_PORT_B_READ_CB(IOPORT("DSW2")) diff --git a/src/mame/drivers/smc777.cpp b/src/mame/drivers/smc777.cpp index 4be386bcb5c..ebf79dc68e1 100644 --- a/src/mame/drivers/smc777.cpp +++ b/src/mame/drivers/smc777.cpp @@ -1060,7 +1060,7 @@ MACHINE_CONFIG_START(smc777_state::smc777) MCFG_QUICKLOAD_ADD("quickload", smc777_state, smc777, "com,cpm", 3) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("sn1", SN76489A, MASTER_CLOCK) // unknown clock / divider MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/sms.cpp b/src/mame/drivers/sms.cpp index 423f0b378f4..650a711ee54 100644 --- a/src/mame/drivers/sms.cpp +++ b/src/mame/drivers/sms.cpp @@ -499,7 +499,7 @@ MACHINE_CONFIG_START(sms_state::sms_base) MCFG_MACHINE_RESET_OVERRIDE(sms_state,sms) /* basic machine hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SMS_CARTRIDGE_ADD("slot", sms_cart, nullptr) @@ -968,7 +968,8 @@ MACHINE_CONFIG_START(sms_state::gamegear) MCFG_SEGA315_5378_PAUSE_CB(WRITELINE(*this, sms_state, sms_pause_callback)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker","rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); /* actually, PSG is embedded in the VDP chip */ MCFG_DEVICE_ADD("gamegear", GAMEGEAR, MASTER_CLOCK_GG/9) diff --git a/src/mame/drivers/sms_bootleg.cpp b/src/mame/drivers/sms_bootleg.cpp index 5c441f4ddcb..784dabaa754 100644 --- a/src/mame/drivers/sms_bootleg.cpp +++ b/src/mame/drivers/sms_bootleg.cpp @@ -285,7 +285,7 @@ MACHINE_CONFIG_START(smsbootleg_state::sms_supergame) MCFG_MACHINE_RESET_OVERRIDE(sms_state,sms) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("segapsg", SEGAPSG, XTAL(10'738'635)/3) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) diff --git a/src/mame/drivers/smsmcorp.cpp b/src/mame/drivers/smsmcorp.cpp index 54c464a26ef..d64dcd1a264 100644 --- a/src/mame/drivers/smsmcorp.cpp +++ b/src/mame/drivers/smsmcorp.cpp @@ -574,7 +574,7 @@ MACHINE_CONFIG_START(smsmfg_state::sms) MCFG_PALETTE_ADD_3BIT_BGR("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, XTAL(16'000'000)/8) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mame/drivers/snes.cpp b/src/mame/drivers/snes.cpp index 1b22ef8a599..d55025e9c75 100644 --- a/src/mame/drivers/snes.cpp +++ b/src/mame/drivers/snes.cpp @@ -1360,7 +1360,8 @@ MACHINE_CONFIG_START(snes_console_state::snes) MCFG_SNESCTRL_GUNLATCH_CB(snes_console_state, gun_latch_cb) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("spc700", SNES_SOUND) MCFG_SOUND_ROUTE(0, "lspeaker", 1.00) MCFG_SOUND_ROUTE(1, "rspeaker", 1.00) diff --git a/src/mame/drivers/snesb.cpp b/src/mame/drivers/snesb.cpp index 09a0015a52d..6f848d3e101 100644 --- a/src/mame/drivers/snesb.cpp +++ b/src/mame/drivers/snesb.cpp @@ -717,7 +717,8 @@ MACHINE_CONFIG_START(snesb_state::kinstb) MCFG_VIDEO_SET_SCREEN("screen") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("spc700", SNES_SOUND) MCFG_SOUND_ROUTE(0, "lspeaker", 1.00) MCFG_SOUND_ROUTE(1, "rspeaker", 1.00) diff --git a/src/mame/drivers/snk.cpp b/src/mame/drivers/snk.cpp index 9fc2776aa9d..9edfc451903 100644 --- a/src/mame/drivers/snk.cpp +++ b/src/mame/drivers/snk.cpp @@ -3682,7 +3682,7 @@ MACHINE_CONFIG_START(snk_state::marvins) MCFG_VIDEO_START_OVERRIDE(snk_state,marvins) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -3756,7 +3756,7 @@ MACHINE_CONFIG_START(snk_state::jcross) MCFG_VIDEO_START_OVERRIDE(snk_state,jcross) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -3839,7 +3839,7 @@ MACHINE_CONFIG_START(snk_state::tnk3) MCFG_VIDEO_START_OVERRIDE(snk_state,tnk3) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -3934,7 +3934,7 @@ MACHINE_CONFIG_START(snk_state::ikari) MCFG_VIDEO_START_OVERRIDE(snk_state,ikari) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -3992,7 +3992,7 @@ MACHINE_CONFIG_START(snk_state::bermudat) MCFG_VIDEO_START_OVERRIDE(snk_state,gwar) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -4097,7 +4097,7 @@ MACHINE_CONFIG_START(snk_state::tdfever) MCFG_VIDEO_START_OVERRIDE(snk_state,tdfever) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/snk6502.cpp b/src/mame/drivers/snk6502.cpp index 4dc7e0c3744..f16ea7d3896 100644 --- a/src/mame/drivers/snk6502.cpp +++ b/src/mame/drivers/snk6502.cpp @@ -865,7 +865,7 @@ MACHINE_CONFIG_START(snk6502_state::sasuke) MCFG_TIMER_DRIVER_ADD_PERIODIC("sasuke_timer", snk6502_state, sasuke_update_counter, attotime::from_hz(MASTER_CLOCK / 8)) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("snk6502", SNK6502, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) @@ -997,7 +997,7 @@ MACHINE_CONFIG_START(snk6502_state::vanguard) MCFG_MC6845_CHAR_WIDTH(8) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("snk6502", SNK6502, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/snk68.cpp b/src/mame/drivers/snk68.cpp index f6206161edd..c79d8a4c7c5 100644 --- a/src/mame/drivers/snk68.cpp +++ b/src/mame/drivers/snk68.cpp @@ -621,7 +621,7 @@ MACHINE_CONFIG_START(snk68_state::pow) MCFG_SNK68_SPR_SET_TILE_INDIRECT( snk68_state, tile_callback_pow ) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_8_ADD("soundlatch2") diff --git a/src/mame/drivers/snookr10.cpp b/src/mame/drivers/snookr10.cpp index c05315b7556..e5f0dd72381 100644 --- a/src/mame/drivers/snookr10.cpp +++ b/src/mame/drivers/snookr10.cpp @@ -1064,7 +1064,7 @@ MACHINE_CONFIG_START(snookr10_state::snookr10) MCFG_PALETTE_INIT_OWNER(snookr10_state, snookr10) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, MASTER_CLOCK/16, okim6295_device::PIN7_HIGH) /* 1 MHz (995.5 kHz measured); pin7 checked HIGH on PCB */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.8) diff --git a/src/mame/drivers/snowbros.cpp b/src/mame/drivers/snowbros.cpp index 1ef3a79a560..94241dbc79f 100644 --- a/src/mame/drivers/snowbros.cpp +++ b/src/mame/drivers/snowbros.cpp @@ -1754,7 +1754,7 @@ MACHINE_CONFIG_START(snowbros_state::snowbros) MCFG_KANEKO_PANDORA_GFXDECODE("gfxdecode") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("soundcpu", INPUT_LINE_NMI)) @@ -1859,7 +1859,7 @@ MACHINE_CONFIG_START(snowbros_state::honeydol) MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("soundcpu", INPUT_LINE_NMI)) @@ -1900,7 +1900,7 @@ MACHINE_CONFIG_START(snowbros_state::twinadv) MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("soundcpu", INPUT_LINE_NMI)) @@ -1982,7 +1982,7 @@ MACHINE_CONFIG_START(snowbros_state::snowbro3) /* PCB has 16MHz & 12MHz OSCs */ MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, XTAL(16'000'000)/16, okim6295_device::PIN7_HIGH) // clock frequency & pin 7 not verified MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -2017,7 +2017,7 @@ MACHINE_CONFIG_START(snowbros_state::yutnori) MCFG_KANEKO_PANDORA_GFXDECODE("gfxdecode") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki1", OKIM6295, XTAL(16'000'000)/16, okim6295_device::PIN7_HIGH) // clock frequency & pin 7 not verified MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/socrates.cpp b/src/mame/drivers/socrates.cpp index 8f35a9c9f49..da73114f28f 100644 --- a/src/mame/drivers/socrates.cpp +++ b/src/mame/drivers/socrates.cpp @@ -1501,7 +1501,7 @@ MACHINE_CONFIG_START(socrates_state::socrates) MCFG_PALETTE_INIT_OWNER(socrates_state, socrates) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("soc_snd", SOCRATES_SOUND, XTAL(21'477'272)/(512+256)) // this is correct, as strange as it sounds. MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) @@ -1574,7 +1574,7 @@ MACHINE_CONFIG_START(iqunlimz_state::iqunlimz) MCFG_PALETTE_INIT_OWNER(socrates_state, socrates) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("soc_snd", SOCRATES_SOUND, XTAL(21'477'272)/(512+256)) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mame/drivers/solomon.cpp b/src/mame/drivers/solomon.cpp index 806701d20a7..c82aafaa255 100644 --- a/src/mame/drivers/solomon.cpp +++ b/src/mame/drivers/solomon.cpp @@ -236,7 +236,7 @@ MACHINE_CONFIG_START(solomon_state::solomon) MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/sonson.cpp b/src/mame/drivers/sonson.cpp index d3c9c7c082e..903b6060049 100644 --- a/src/mame/drivers/sonson.cpp +++ b/src/mame/drivers/sonson.cpp @@ -257,7 +257,7 @@ MACHINE_CONFIG_START(sonson_state::sonson) MCFG_PALETTE_INIT_OWNER(sonson_state, sonson) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/sorcerer.cpp b/src/mame/drivers/sorcerer.cpp index 1c470fca3c3..eb0a2138828 100644 --- a/src/mame/drivers/sorcerer.cpp +++ b/src/mame/drivers/sorcerer.cpp @@ -435,7 +435,7 @@ MACHINE_CONFIG_START(sorcerer_state::sorcerer) MCFG_PALETTE_ADD_MONOCHROME("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.05) // cass1 speaker MCFG_SOUND_WAVE_ADD(WAVE2_TAG, "cassette2") diff --git a/src/mame/drivers/sothello.cpp b/src/mame/drivers/sothello.cpp index 4e951af561f..bfd846ac93f 100644 --- a/src/mame/drivers/sothello.cpp +++ b/src/mame/drivers/sothello.cpp @@ -377,7 +377,7 @@ MACHINE_CONFIG_START(sothello_state::sothello) MCFG_V99X8_SCREEN_ADD_NTSC("screen", "v9938", XTAL(21'477'272)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/spaceg.cpp b/src/mame/drivers/spaceg.cpp index 7526d6ab6c3..e025ea4260d 100644 --- a/src/mame/drivers/spaceg.cpp +++ b/src/mame/drivers/spaceg.cpp @@ -526,7 +526,7 @@ MACHINE_CONFIG_START(spaceg_state::spaceg) MCFG_PALETTE_INIT_OWNER(spaceg_state, spaceg) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); // HACK: SN76477 parameters copied from space invaders MCFG_DEVICE_ADD("snsnd", SN76477) diff --git a/src/mame/drivers/spartanxtec.cpp b/src/mame/drivers/spartanxtec.cpp index 3d3c0178fac..40dc7f7e71c 100644 --- a/src/mame/drivers/spartanxtec.cpp +++ b/src/mame/drivers/spartanxtec.cpp @@ -390,7 +390,7 @@ MACHINE_CONFIG_START(spartanxtec_state::spartanxtec) MCFG_GFXDECODE_ADD("gfxdecode", "palette", news) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) diff --git a/src/mame/drivers/spbactn.cpp b/src/mame/drivers/spbactn.cpp index 67e88975559..4c7e0d16ca2 100644 --- a/src/mame/drivers/spbactn.cpp +++ b/src/mame/drivers/spbactn.cpp @@ -445,7 +445,7 @@ MACHINE_CONFIG_START(spbactn_state::spbactn) MCFG_TECMO_MIXER_BGPEN(0x800 + 0x300) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) @@ -499,7 +499,7 @@ MACHINE_CONFIG_START(spbactn_state::spbactnp) MCFG_TECMO_MIXER_BGPEN(0x800 + 0x300) /* sound hardware - different? */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) diff --git a/src/mame/drivers/spc1000.cpp b/src/mame/drivers/spc1000.cpp index f1417272ad7..905bb229c53 100644 --- a/src/mame/drivers/spc1000.cpp +++ b/src/mame/drivers/spc1000.cpp @@ -481,7 +481,7 @@ MACHINE_CONFIG_START(spc1000_state::spc1000) // other lines not connected /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay8910", AY8910, XTAL(4'000'000) / 1) MCFG_AY8910_PORT_A_READ_CB(READ8(*this, spc1000_state, porta_r)) MCFG_AY8910_PORT_B_WRITE_CB(WRITE8("cent_data_out", output_latch_device, write)) diff --git a/src/mame/drivers/spc1500.cpp b/src/mame/drivers/spc1500.cpp index 1c8c22c8ba6..6a4a055fadd 100644 --- a/src/mame/drivers/spc1500.cpp +++ b/src/mame/drivers/spc1500.cpp @@ -906,7 +906,7 @@ MACHINE_CONFIG_START(spc1500_state::spc1500) MCFG_TIMER_DRIVER_ADD_PERIODIC("1hz", spc1500_state, timer, attotime::from_hz(1)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay8910", AY8910, XTAL(4'000'000) / 2) MCFG_AY8910_PORT_A_READ_CB(READ8(*this, spc1500_state, psga_r)) MCFG_AY8910_PORT_B_WRITE_CB(WRITE8(*this, spc1500_state, psgb_w)) diff --git a/src/mame/drivers/spcforce.cpp b/src/mame/drivers/spcforce.cpp index aa12eb35181..3f5d8d9e53c 100644 --- a/src/mame/drivers/spcforce.cpp +++ b/src/mame/drivers/spcforce.cpp @@ -316,7 +316,7 @@ MACHINE_CONFIG_START(spcforce_state::spcforce) MCFG_PALETTE_INIT_OWNER(spcforce_state, spcforce) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/spdodgeb.cpp b/src/mame/drivers/spdodgeb.cpp index 4e52b5482d6..7213d43f87f 100644 --- a/src/mame/drivers/spdodgeb.cpp +++ b/src/mame/drivers/spdodgeb.cpp @@ -426,7 +426,8 @@ MACHINE_CONFIG_START(spdodgeb_state::spdodgeb) MCFG_PALETTE_INIT_OWNER(spdodgeb_state, spdodgeb) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", M6809_IRQ_LINE)) diff --git a/src/mame/drivers/special.cpp b/src/mame/drivers/special.cpp index 99928cb011b..f30dd4b5072 100644 --- a/src/mame/drivers/special.cpp +++ b/src/mame/drivers/special.cpp @@ -383,7 +383,7 @@ MACHINE_CONFIG_START(special_state::special) MCFG_PALETTE_ADD("palette", 2) /* audio hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.0625) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) @@ -505,7 +505,7 @@ MACHINE_CONFIG_START(special_state::erik) MCFG_PALETTE_INIT_OWNER(special_state,erik) /* audio hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.0625) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) diff --git a/src/mame/drivers/spectra.cpp b/src/mame/drivers/spectra.cpp index 63cd3e2cb62..f28cb7af150 100644 --- a/src/mame/drivers/spectra.cpp +++ b/src/mame/drivers/spectra.cpp @@ -250,7 +250,7 @@ MACHINE_CONFIG_START(spectra_state::spectra) /* Sound */ genpin_audio(config); - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("snsnd", SN76477) MCFG_SN76477_NOISE_PARAMS(RES_M(1000), RES_M(1000), CAP_N(0)) // noise + filter MCFG_SN76477_DECAY_RES(RES_K(470)) // decay_res diff --git a/src/mame/drivers/spectrum.cpp b/src/mame/drivers/spectrum.cpp index 9590862aeba..77559a20ce8 100644 --- a/src/mame/drivers/spectrum.cpp +++ b/src/mame/drivers/spectrum.cpp @@ -692,7 +692,7 @@ MACHINE_CONFIG_START(spectrum_state::spectrum_common) MCFG_VIDEO_START_OVERRIDE(spectrum_state, spectrum ) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) diff --git a/src/mame/drivers/speedatk.cpp b/src/mame/drivers/speedatk.cpp index a2c9328c141..dfa7eabb56c 100644 --- a/src/mame/drivers/speedatk.cpp +++ b/src/mame/drivers/speedatk.cpp @@ -335,7 +335,7 @@ MACHINE_CONFIG_START(speedatk_state::speedatk) MCFG_PALETTE_INIT_OWNER(speedatk_state, speedatk) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, MASTER_CLOCK/4) //divider is unknown MCFG_AY8910_PORT_B_READ_CB(IOPORT("DSW")) diff --git a/src/mame/drivers/speedbal.cpp b/src/mame/drivers/speedbal.cpp index a98d54d6f6e..960c587f10d 100644 --- a/src/mame/drivers/speedbal.cpp +++ b/src/mame/drivers/speedbal.cpp @@ -291,7 +291,7 @@ MACHINE_CONFIG_START(speedbal_state::speedbal) MCFG_PALETTE_ENDIANNESS(ENDIANNESS_BIG) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM3812, XTAL(4'000'000)) // 4 MHz(?) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/speedspn.cpp b/src/mame/drivers/speedspn.cpp index 8a6f9f62a85..351058621db 100644 --- a/src/mame/drivers/speedspn.cpp +++ b/src/mame/drivers/speedspn.cpp @@ -306,7 +306,7 @@ MACHINE_CONFIG_START(speedspn_state::speedspn) MCFG_PALETTE_FORMAT(xxxxRRRRGGGGBBBB) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/spinb.cpp b/src/mame/drivers/spinb.cpp index 8daddcc50b5..3459b6ab329 100644 --- a/src/mame/drivers/spinb.cpp +++ b/src/mame/drivers/spinb.cpp @@ -665,12 +665,12 @@ MACHINE_CONFIG_START(spinb_state::spinb) /* Sound */ genpin_audio(config); - MCFG_SPEAKER_STANDARD_MONO("msmavol") + SPEAKER(config, "msmavol").front_center(); MCFG_DEVICE_ADD("msm_a", MSM5205, XTAL(384'000)) MCFG_MSM5205_VCK_CALLBACK(WRITELINE("ic5a", ttl7474_device, clock_w)) MCFG_MSM5205_PRESCALER_SELECTOR(S48_4B) /* 4KHz 4-bit */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "msmavol", 1.0) - MCFG_SPEAKER_STANDARD_MONO("msmmvol") + SPEAKER(config, "msmmvol").front_center(); MCFG_DEVICE_ADD("msm_m", MSM5205, XTAL(384'000)) MCFG_MSM5205_VCK_CALLBACK(WRITELINE("ic5m", ttl7474_device, clock_w)) MCFG_MSM5205_PRESCALER_SELECTOR(S48_4B) /* 4KHz 4-bit */ diff --git a/src/mame/drivers/splash.cpp b/src/mame/drivers/splash.cpp index 7d9fb7369f3..0ce83518033 100644 --- a/src/mame/drivers/splash.cpp +++ b/src/mame/drivers/splash.cpp @@ -519,7 +519,7 @@ MACHINE_CONFIG_START(splash_state::splash) MCFG_MACHINE_RESET_OVERRIDE(splash_state, splash ) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", 0)) @@ -582,7 +582,7 @@ MACHINE_CONFIG_START(splash_state::roldfrog) MCFG_MACHINE_RESET_OVERRIDE(splash_state, splash ) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) @@ -668,7 +668,7 @@ MACHINE_CONFIG_START(funystrp_state::funystrp) MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) diff --git a/src/mame/drivers/splus.cpp b/src/mame/drivers/splus.cpp index 155fcd8c94e..e27a362532b 100644 --- a/src/mame/drivers/splus.cpp +++ b/src/mame/drivers/splus.cpp @@ -697,7 +697,7 @@ MACHINE_CONFIG_START(splus_state::splus) // basic machine hardware MCFG_X2404P_ADD("i2cmem") // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8912, SOUND_CLOCK) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75) diff --git a/src/mame/drivers/spoker.cpp b/src/mame/drivers/spoker.cpp index 697a8af5588..5d000dec7f8 100644 --- a/src/mame/drivers/spoker.cpp +++ b/src/mame/drivers/spoker.cpp @@ -631,7 +631,7 @@ MACHINE_CONFIG_START(spoker_state::spoker) MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2413, XTAL(3'579'545)) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.4) diff --git a/src/mame/drivers/spool99.cpp b/src/mame/drivers/spool99.cpp index 1203e9512f3..6bbe3e90eff 100644 --- a/src/mame/drivers/spool99.cpp +++ b/src/mame/drivers/spool99.cpp @@ -383,7 +383,8 @@ MACHINE_CONFIG_START(spool99_state::spool99) MCFG_EEPROM_SERIAL_93C46_ADD("eeprom") - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("oki", OKIM6295, 1000000, okim6295_device::PIN7_HIGH) // clock frequency & pin 7 not verified MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.47) diff --git a/src/mame/drivers/sprcros2.cpp b/src/mame/drivers/sprcros2.cpp index 6eccdc93d74..a289d9d7aba 100644 --- a/src/mame/drivers/sprcros2.cpp +++ b/src/mame/drivers/sprcros2.cpp @@ -480,7 +480,7 @@ MACHINE_CONFIG_START(sprcros2_state::sprcros2) MCFG_PALETTE_INIT_OWNER(sprcros2_state, sprcros2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("sn1", SN76489, 10000000/4) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/sprint2.cpp b/src/mame/drivers/sprint2.cpp index 6e9554bad70..873e29533aa 100644 --- a/src/mame/drivers/sprint2.cpp +++ b/src/mame/drivers/sprint2.cpp @@ -515,7 +515,8 @@ MACHINE_CONFIG_START(sprint2_state::sprint2) MCFG_PALETTE_INIT_OWNER(sprint2_state, sprint2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("outlatch", F9334, 0) // at H8 MCFG_ADDRESSABLE_LATCH_Q0_OUT_CB(WRITELINE("discrete", discrete_device, write_line)) // also DOMINOS_ATTRACT_EN @@ -537,7 +538,7 @@ MACHINE_CONFIG_START(sprint2_state::sprint1) /* sound hardware */ MCFG_DEVICE_REMOVE("lspeaker") MCFG_DEVICE_REMOVE("rspeaker") - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_REMOVE("discrete") @@ -552,7 +553,7 @@ MACHINE_CONFIG_START(sprint2_state::dominos) /* sound hardware */ MCFG_DEVICE_REMOVE("lspeaker") MCFG_DEVICE_REMOVE("rspeaker") - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_REMOVE("discrete") diff --git a/src/mame/drivers/sprint4.cpp b/src/mame/drivers/sprint4.cpp index a2a1c53eca0..7c1516a4d49 100644 --- a/src/mame/drivers/sprint4.cpp +++ b/src/mame/drivers/sprint4.cpp @@ -401,7 +401,8 @@ MACHINE_CONFIG_START(sprint4_state::sprint4) MCFG_PALETTE_INIT_OWNER(sprint4_state, sprint4) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("latch", F9334, 0) // at E11 MCFG_ADDRESSABLE_LATCH_Q0_OUT_CB(OUTPUT("led0")) // START LAMP 1 diff --git a/src/mame/drivers/spy.cpp b/src/mame/drivers/spy.cpp index 2e8b220257a..7e656c0dc5a 100644 --- a/src/mame/drivers/spy.cpp +++ b/src/mame/drivers/spy.cpp @@ -529,7 +529,7 @@ MACHINE_CONFIG_START(spy_state::spy) MCFG_K051960_CB(spy_state, sprite_callback) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/spyhuntertec.cpp b/src/mame/drivers/spyhuntertec.cpp index d2408832c03..02eb0e9158a 100644 --- a/src/mame/drivers/spyhuntertec.cpp +++ b/src/mame/drivers/spyhuntertec.cpp @@ -700,7 +700,7 @@ MACHINE_CONFIG_START(spyhuntertec_state::spyhuntertec) MCFG_DEVICE_IO_MAP(spyhuntertec_sound_portmap) MCFG_DEVICE_PERIODIC_INT_DRIVER(spyhuntertec_state, irq0_line_assert, 1000) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) diff --git a/src/mame/drivers/squale.cpp b/src/mame/drivers/squale.cpp index 7d28ba9d1d1..b1f685d96e4 100644 --- a/src/mame/drivers/squale.cpp +++ b/src/mame/drivers/squale.cpp @@ -801,7 +801,7 @@ MACHINE_CONFIG_START(squale_state::squale) MCFG_PIA_CB2_HANDLER(WRITELINE(*this, squale_state, pia_u75_cb2_w)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay8910", AY8910, AY_CLOCK) // TODO : Add port I/O handler MCFG_AY8910_PORT_A_READ_CB(READ8(*this, squale_state, ay_porta_r)) diff --git a/src/mame/drivers/srmp2.cpp b/src/mame/drivers/srmp2.cpp index 13dd5625360..569e09fd653 100644 --- a/src/mame/drivers/srmp2.cpp +++ b/src/mame/drivers/srmp2.cpp @@ -1171,7 +1171,7 @@ MACHINE_CONFIG_START(srmp2_state::srmp2) MCFG_PALETTE_INIT_OWNER(srmp2_state,srmp2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, 20000000/16) MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW2")) @@ -1218,7 +1218,7 @@ MACHINE_CONFIG_START(srmp2_state::srmp3) MCFG_PALETTE_INIT_OWNER(srmp2_state,srmp3) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, 16000000/16) MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW2")) @@ -1271,7 +1271,7 @@ MACHINE_CONFIG_START(srmp2_state::mjyuugi) MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, 16000000/16) MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW2")) diff --git a/src/mame/drivers/srmp6.cpp b/src/mame/drivers/srmp6.cpp index 607f6dc56a7..5ee4a860e6c 100644 --- a/src/mame/drivers/srmp6.cpp +++ b/src/mame/drivers/srmp6.cpp @@ -698,7 +698,8 @@ MACHINE_CONFIG_START(srmp6_state::srmp6) MCFG_GFXDECODE_ADD("gfxdecode", "palette", empty) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_NILE_ADD("nile", 0) MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) diff --git a/src/mame/drivers/srumbler.cpp b/src/mame/drivers/srumbler.cpp index 419feffcb3c..93d9fcf4a9a 100644 --- a/src/mame/drivers/srumbler.cpp +++ b/src/mame/drivers/srumbler.cpp @@ -275,7 +275,7 @@ MACHINE_CONFIG_START(srumbler_state::srumbler) MCFG_PALETTE_FORMAT(RRRRGGGGBBBBxxxx) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/sshangha.cpp b/src/mame/drivers/sshangha.cpp index 54f7ccbf6e4..b09c6c9b960 100644 --- a/src/mame/drivers/sshangha.cpp +++ b/src/mame/drivers/sshangha.cpp @@ -434,7 +434,8 @@ MACHINE_CONFIG_START(sshangha_state::sshangha) MCFG_DECO146_IN_PORTC_CB(IOPORT("DSW")) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") /* sure it's stereo? */ + SPEAKER(config, "lspeaker").front_left(); // sure it's stereo? + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2203, 16000000/4) MCFG_YM2203_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) diff --git a/src/mame/drivers/ssingles.cpp b/src/mame/drivers/ssingles.cpp index 7f39706b29f..cea8e7b27d0 100644 --- a/src/mame/drivers/ssingles.cpp +++ b/src/mame/drivers/ssingles.cpp @@ -567,7 +567,7 @@ MACHINE_CONFIG_START(ssingles_state::ssingles) MCFG_MC6845_OUT_VSYNC_CB(INPUTLINE("maincpu", INPUT_LINE_NMI)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay1", AY8910, 1500000) /* ? MHz */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.5) diff --git a/src/mame/drivers/sslam.cpp b/src/mame/drivers/sslam.cpp index 09b5ca0b1ad..9321a31746d 100644 --- a/src/mame/drivers/sslam.cpp +++ b/src/mame/drivers/sslam.cpp @@ -717,7 +717,7 @@ MACHINE_CONFIG_START(sslam_state::sslam) MCFG_VIDEO_START_OVERRIDE(sslam_state,sslam) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, 1000000, okim6295_device::PIN7_HIGH) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80) @@ -751,7 +751,7 @@ MACHINE_CONFIG_START(sslam_state::powerbls) MCFG_VIDEO_START_OVERRIDE(sslam_state,powerbls) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/ssozumo.cpp b/src/mame/drivers/ssozumo.cpp index 9c96c4ca0ee..f49bd65a6ea 100644 --- a/src/mame/drivers/ssozumo.cpp +++ b/src/mame/drivers/ssozumo.cpp @@ -221,7 +221,7 @@ MACHINE_CONFIG_START(ssozumo_state::ssozumo) MCFG_PALETTE_INIT_OWNER(ssozumo_state, ssozumo) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", m6502_device::IRQ_LINE)) diff --git a/src/mame/drivers/ssrj.cpp b/src/mame/drivers/ssrj.cpp index ccf224c2cb9..947ecde8c6d 100644 --- a/src/mame/drivers/ssrj.cpp +++ b/src/mame/drivers/ssrj.cpp @@ -163,7 +163,7 @@ MACHINE_CONFIG_START(ssrj_state::ssrj) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, 8000000/5) MCFG_AY8910_PORT_B_READ_CB(IOPORT("IN3")) diff --git a/src/mame/drivers/ssv.cpp b/src/mame/drivers/ssv.cpp index 38f8d3a70ee..5cb57188dbd 100644 --- a/src/mame/drivers/ssv.cpp +++ b/src/mame/drivers/ssv.cpp @@ -2564,7 +2564,8 @@ MACHINE_CONFIG_START(ssv_state::ssv) MCFG_PALETTE_FORMAT(XRGB) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ensoniq", ES5506, SSV_MASTER_CLOCK) MCFG_ES5506_REGION0("ensoniq.0") diff --git a/src/mame/drivers/st_mp200.cpp b/src/mame/drivers/st_mp200.cpp index 1c303e3f631..57d1aa0a4b7 100644 --- a/src/mame/drivers/st_mp200.cpp +++ b/src/mame/drivers/st_mp200.cpp @@ -612,7 +612,7 @@ MACHINE_CONFIG_END MACHINE_CONFIG_START(st_mp200_state::st_mp201) st_mp200(config); - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speech", S14001A, S14001_CLOCK) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) MACHINE_CONFIG_END diff --git a/src/mame/drivers/stadhero.cpp b/src/mame/drivers/stadhero.cpp index 23c04e87c40..1aad7b7072b 100644 --- a/src/mame/drivers/stadhero.cpp +++ b/src/mame/drivers/stadhero.cpp @@ -234,7 +234,7 @@ MACHINE_CONFIG_START(stadhero_state::stadhero) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/starcrus.cpp b/src/mame/drivers/starcrus.cpp index 91185adb531..b41fcd991ab 100644 --- a/src/mame/drivers/starcrus.cpp +++ b/src/mame/drivers/starcrus.cpp @@ -162,7 +162,7 @@ MACHINE_CONFIG_START(starcrus_state::starcrus) MCFG_PALETTE_ADD_MONOCHROME("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("samples", SAMPLES) MCFG_SAMPLES_CHANNELS(4) diff --git a/src/mame/drivers/starfire.cpp b/src/mame/drivers/starfire.cpp index 0dafb2d67a3..85236f5ee3f 100644 --- a/src/mame/drivers/starfire.cpp +++ b/src/mame/drivers/starfire.cpp @@ -348,7 +348,7 @@ MACHINE_CONFIG_START(starfire_state::starfire) fireone(config); /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("samples", SAMPLES) MCFG_SAMPLES_CHANNELS(5) diff --git a/src/mame/drivers/stargame.cpp b/src/mame/drivers/stargame.cpp index 921b88c7397..28eea33bd8c 100644 --- a/src/mame/drivers/stargame.cpp +++ b/src/mame/drivers/stargame.cpp @@ -123,10 +123,10 @@ MACHINE_CONFIG_START(stargame_state::stargame) /* sound hardware */ genpin_audio(config); - MCFG_SPEAKER_STANDARD_MONO("measnd") + SPEAKER(config, "measnd").front_center(); MCFG_DEVICE_ADD("mea8000", MEA8000, 15000000 / 4) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "measnd", 1.0) - MCFG_SPEAKER_STANDARD_MONO("aysnd") + SPEAKER(config, "aysnd").front_center(); MCFG_DEVICE_ADD("ay", AY8910, 15000000 / 8) // clock line marked as CK2 and derived from 15MHz crystal MCFG_SOUND_ROUTE(ALL_OUTPUTS, "aysnd", 0.25) diff --git a/src/mame/drivers/starshp1.cpp b/src/mame/drivers/starshp1.cpp index 7c33862c398..fdde3d4ea28 100644 --- a/src/mame/drivers/starshp1.cpp +++ b/src/mame/drivers/starshp1.cpp @@ -321,7 +321,7 @@ MACHINE_CONFIG_START(starshp1_state::starshp1) MCFG_PALETTE_INIT_OWNER(starshp1_state, starshp1) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("discrete", DISCRETE, starshp1_discrete) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/starwars.cpp b/src/mame/drivers/starwars.cpp index 7895f40e4f1..9fbdff84814 100644 --- a/src/mame/drivers/starwars.cpp +++ b/src/mame/drivers/starwars.cpp @@ -349,7 +349,7 @@ MACHINE_CONFIG_START(starwars_state::starwars) MCFG_AVGDVG_VECTOR("vector") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("pokey1", POKEY, MASTER_CLOCK / 8) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.20) diff --git a/src/mame/drivers/statriv2.cpp b/src/mame/drivers/statriv2.cpp index fae4671d0b5..edcae92154c 100644 --- a/src/mame/drivers/statriv2.cpp +++ b/src/mame/drivers/statriv2.cpp @@ -630,7 +630,7 @@ MACHINE_CONFIG_START(statriv2_state::statriv2) MCFG_PALETTE_INIT_OWNER(statriv2_state, statriv2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, MASTER_CLOCK/8) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/stellafr.cpp b/src/mame/drivers/stellafr.cpp index 64f739fb552..0f01923fd11 100644 --- a/src/mame/drivers/stellafr.cpp +++ b/src/mame/drivers/stellafr.cpp @@ -100,7 +100,7 @@ MACHINE_CONFIG_START(stellafr_state::stellafr) MCFG_MC68681_IRQ_CALLBACK(INPUTLINE("maincpu", M68K_IRQ_2)) // ? MCFG_MC68681_OUTPORT_CALLBACK(WRITE8(*this, stellafr_state, duart_output_w)) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, 1000000) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) MCFG_AY8910_PORT_A_READ_CB(IOPORT("INPUTS")) diff --git a/src/mame/drivers/stfight.cpp b/src/mame/drivers/stfight.cpp index 9a0e0600a4a..83793a20645 100644 --- a/src/mame/drivers/stfight.cpp +++ b/src/mame/drivers/stfight.cpp @@ -476,7 +476,7 @@ MACHINE_CONFIG_START(stfight_state::stfight_base) MCFG_PALETTE_FORMAT(xxxxBBBBRRRRGGGG) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); // YM2203_PITCH_HACK - These should be clocked at 1.5Mhz (see TODO list) MCFG_DEVICE_ADD("ym1", YM2203, XTAL(12'000'000) / 8 * 3) diff --git a/src/mame/drivers/stlforce.cpp b/src/mame/drivers/stlforce.cpp index 0c2cf1ca0ae..d0aae581061 100644 --- a/src/mame/drivers/stlforce.cpp +++ b/src/mame/drivers/stlforce.cpp @@ -216,7 +216,7 @@ MACHINE_CONFIG_START(stlforce_state::stlforce) MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, XTAL(32'000'000)/32, okim6295_device::PIN7_HIGH) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/strnskil.cpp b/src/mame/drivers/strnskil.cpp index 074ebef53b9..5479b7f3a54 100644 --- a/src/mame/drivers/strnskil.cpp +++ b/src/mame/drivers/strnskil.cpp @@ -374,7 +374,7 @@ MACHINE_CONFIG_START(strnskil_state::strnskil) MCFG_PALETTE_INIT_OWNER(strnskil_state, strnskil) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("sn1", SN76496, 8000000/4) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75) diff --git a/src/mame/drivers/studio2.cpp b/src/mame/drivers/studio2.cpp index 4d9195e6d3f..963dca27127 100644 --- a/src/mame/drivers/studio2.cpp +++ b/src/mame/drivers/studio2.cpp @@ -658,7 +658,7 @@ MACHINE_CONFIG_START(studio2_state::studio2) MCFG_CDP1861_SCREEN_ADD(CDP1861_TAG, SCREEN_TAG, 1760000) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, 300) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) @@ -686,7 +686,7 @@ MACHINE_CONFIG_START(visicom_state::visicom) MCFG_SCREEN_UPDATE_DRIVER(visicom_state, screen_update) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, 300) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) @@ -714,7 +714,7 @@ MACHINE_CONFIG_START(mpt02_state::mpt02) MCFG_SCREEN_UPDATE_DEVICE(CDP1864_TAG, cdp1864_device, screen_update) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, 300) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) diff --git a/src/mame/drivers/stuntair.cpp b/src/mame/drivers/stuntair.cpp index df68242b443..76f0d1f0d9f 100644 --- a/src/mame/drivers/stuntair.cpp +++ b/src/mame/drivers/stuntair.cpp @@ -554,7 +554,7 @@ MACHINE_CONFIG_START(stuntair_state::stuntair) MCFG_PALETTE_INIT_OWNER(stuntair_state, stuntair) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") // stereo? + SPEAKER(config, "mono").front_center(); // stereo? MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/stv.cpp b/src/mame/drivers/stv.cpp index 567f7ce0015..71e7da64a1e 100644 --- a/src/mame/drivers/stv.cpp +++ b/src/mame/drivers/stv.cpp @@ -1113,7 +1113,8 @@ MACHINE_CONFIG_START(stv_state::stv) MCFG_VIDEO_START_OVERRIDE(stv_state,stv_vdp2) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("scsp", SCSP) MCFG_SCSP_IRQ_CB(WRITE8(*this, saturn_state, scsp_irq)) diff --git a/src/mame/drivers/sub.cpp b/src/mame/drivers/sub.cpp index 2c5e2e80e3a..abd15d17a01 100644 --- a/src/mame/drivers/sub.cpp +++ b/src/mame/drivers/sub.cpp @@ -340,7 +340,7 @@ MACHINE_CONFIG_START(sub_state::sub) MCFG_PALETTE_INIT_OWNER(sub_state, sub) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("soundcpu", 0)) diff --git a/src/mame/drivers/subhuntr.cpp b/src/mame/drivers/subhuntr.cpp index 13ae418a920..bf179d2877c 100644 --- a/src/mame/drivers/subhuntr.cpp +++ b/src/mame/drivers/subhuntr.cpp @@ -172,7 +172,7 @@ MACHINE_CONFIG_START(subhuntr_state::subhuntr) MCFG_PALETTE_INIT_OWNER(subhuntr_state, subhuntr) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); /* discrete sound */ MACHINE_CONFIG_END diff --git a/src/mame/drivers/subs.cpp b/src/mame/drivers/subs.cpp index 832e5224498..2821960d326 100644 --- a/src/mame/drivers/subs.cpp +++ b/src/mame/drivers/subs.cpp @@ -207,7 +207,8 @@ MACHINE_CONFIG_START(subs_state::subs) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("discrete", DISCRETE, subs_discrete) MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) diff --git a/src/mame/drivers/subsino.cpp b/src/mame/drivers/subsino.cpp index 1e2ba1ece27..7c31d3fd8d6 100644 --- a/src/mame/drivers/subsino.cpp +++ b/src/mame/drivers/subsino.cpp @@ -2808,7 +2808,7 @@ MACHINE_CONFIG_START(subsino_state::victor21) MCFG_VIDEO_START_OVERRIDE(subsino_state,subsino) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2413, XTAL(3'579'545)) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -2852,7 +2852,7 @@ MACHINE_CONFIG_START(subsino_state::crsbingo) MCFG_VIDEO_START_OVERRIDE(subsino_state,subsino) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2413, XTAL(3'579'545)) /* Unknown clock */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -2894,7 +2894,7 @@ MACHINE_CONFIG_START(subsino_state::srider) MCFG_VIDEO_START_OVERRIDE(subsino_state,subsino) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM3812, XTAL(3'579'545)) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -2947,7 +2947,7 @@ MACHINE_CONFIG_START(subsino_state::tisub) MCFG_VIDEO_START_OVERRIDE(subsino_state,subsino_reels) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM3812, XTAL(3'579'545)) /* Unknown clock */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -2990,7 +2990,7 @@ MACHINE_CONFIG_START(subsino_state::stbsub) MCFG_VIDEO_START_OVERRIDE(subsino_state,stbsub) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM3812, XTAL(3'579'545)) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/subsino2.cpp b/src/mame/drivers/subsino2.cpp index 88ef06b2da8..a30b464b8ff 100644 --- a/src/mame/drivers/subsino2.cpp +++ b/src/mame/drivers/subsino2.cpp @@ -2441,7 +2441,7 @@ MACHINE_CONFIG_START(subsino2_state::mtrain) MCFG_VIDEO_START_OVERRIDE(subsino2_state, subsino2 ) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, XTAL(8'467'200) / 8, okim6295_device::PIN7_HIGH) // probably MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -2475,7 +2475,7 @@ MACHINE_CONFIG_START(subsino2_state::saklove) MCFG_VIDEO_START_OVERRIDE(subsino2_state, subsino2 ) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, XTAL(8'467'200) / 8, okim6295_device::PIN7_HIGH) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80) @@ -2513,7 +2513,7 @@ MACHINE_CONFIG_START(subsino2_state::xplan) MCFG_VIDEO_START_OVERRIDE(subsino2_state, subsino2 ) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, XTAL(8'467'200) / 8, okim6295_device::PIN7_HIGH) // probably MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/suna16.cpp b/src/mame/drivers/suna16.cpp index 971d4220a53..98f76f70f53 100644 --- a/src/mame/drivers/suna16.cpp +++ b/src/mame/drivers/suna16.cpp @@ -848,7 +848,8 @@ MACHINE_CONFIG_START(suna16_state::bssoccer) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_8_ADD("soundlatch2") @@ -910,7 +911,8 @@ MACHINE_CONFIG_START(suna16_state::uballoon) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_8_ADD("soundlatch2") @@ -966,7 +968,8 @@ MACHINE_CONFIG_START(suna16_state::sunaq) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_8_ADD("soundlatch2") @@ -1025,7 +1028,8 @@ MACHINE_CONFIG_START(suna16_state::bestbest) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_8_ADD("soundlatch2") diff --git a/src/mame/drivers/suna8.cpp b/src/mame/drivers/suna8.cpp index 9842599f290..ec7efc47795 100644 --- a/src/mame/drivers/suna8.cpp +++ b/src/mame/drivers/suna8.cpp @@ -1915,7 +1915,7 @@ MACHINE_CONFIG_START(suna8_state::hardhead) MCFG_VIDEO_START_OVERRIDE(suna8_state,suna8_text) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_8_ADD("soundlatch2") @@ -1974,7 +1974,7 @@ MACHINE_CONFIG_START(suna8_state::rranger) MCFG_VIDEO_START_OVERRIDE(suna8_state,suna8_text) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_8_ADD("soundlatch2") @@ -2043,7 +2043,7 @@ MACHINE_CONFIG_START(suna8_state::brickzn11) MCFG_VIDEO_START_OVERRIDE(suna8_state,suna8_brickzn) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_8_ADD("soundlatch2") @@ -2157,7 +2157,7 @@ MACHINE_CONFIG_START(suna8_state::starfigh) MCFG_VIDEO_START_OVERRIDE(suna8_state,suna8_starfigh) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_8_ADD("soundlatch2") @@ -2211,7 +2211,7 @@ MACHINE_CONFIG_START(suna8_state::sparkman) MCFG_VIDEO_START_OVERRIDE(suna8_state,suna8_sparkman) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_8_ADD("soundlatch2") diff --git a/src/mame/drivers/supbtime.cpp b/src/mame/drivers/supbtime.cpp index 6159ad4fdb8..22e293ded74 100644 --- a/src/mame/drivers/supbtime.cpp +++ b/src/mame/drivers/supbtime.cpp @@ -375,7 +375,7 @@ MACHINE_CONFIG_START(supbtime_state::supbtime) MCFG_DECO_SPRITE_GFXDECODE("gfxdecode") // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", 0)) diff --git a/src/mame/drivers/supdrapo.cpp b/src/mame/drivers/supdrapo.cpp index 2b18bf9eb61..695dfbc3481 100644 --- a/src/mame/drivers/supdrapo.cpp +++ b/src/mame/drivers/supdrapo.cpp @@ -475,7 +475,7 @@ MACHINE_CONFIG_START(supdrapo_state::supdrapo) MCFG_PALETTE_ADD("palette", 0x100) MCFG_PALETTE_INIT_OWNER(supdrapo_state, supdrapo) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, SND_CLOCK) /* guess */ MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(*this, supdrapo_state, ay8910_outputa_w)) diff --git a/src/mame/drivers/supduck.cpp b/src/mame/drivers/supduck.cpp index 4aab291bd5f..7796d81abe8 100644 --- a/src/mame/drivers/supduck.cpp +++ b/src/mame/drivers/supduck.cpp @@ -470,7 +470,7 @@ MACHINE_CONFIG_START(supduck_state::supduck) MCFG_PALETTE_FORMAT(xRGBRRRRGGGGBBBB_bit4) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/super80.cpp b/src/mame/drivers/super80.cpp index f869c6e5761..4f1443358a8 100644 --- a/src/mame/drivers/super80.cpp +++ b/src/mame/drivers/super80.cpp @@ -732,7 +732,7 @@ MACHINE_CONFIG_START(super80_state::super80) MCFG_VIDEO_START_OVERRIDE(super80_state,super80) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.05) MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) @@ -826,7 +826,7 @@ MACHINE_CONFIG_START(super80_state::super80v) MCFG_DEFAULT_LAYOUT( layout_super80 ) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.05) MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) diff --git a/src/mame/drivers/supercrd.cpp b/src/mame/drivers/supercrd.cpp index a3010fca83c..93cb8972ace 100644 --- a/src/mame/drivers/supercrd.cpp +++ b/src/mame/drivers/supercrd.cpp @@ -446,7 +446,7 @@ MACHINE_CONFIG_START(supercrd_state::supercrd) // MCFG_MC6845_CHAR_WIDTH(4) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); // MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75) MACHINE_CONFIG_END diff --git a/src/mame/drivers/superdq.cpp b/src/mame/drivers/superdq.cpp index 5a4431b313b..df5b8d6b49f 100644 --- a/src/mame/drivers/superdq.cpp +++ b/src/mame/drivers/superdq.cpp @@ -351,7 +351,8 @@ MACHINE_CONFIG_START(superdq_state::superdq) MCFG_PALETTE_INIT_OWNER(superdq_state, superdq) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("snsnd", SN76496, MASTER_CLOCK/8) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.8) diff --git a/src/mame/drivers/superqix.cpp b/src/mame/drivers/superqix.cpp index 43fc0009241..febf7aa6783 100644 --- a/src/mame/drivers/superqix.cpp +++ b/src/mame/drivers/superqix.cpp @@ -1380,7 +1380,7 @@ MACHINE_CONFIG_START(hotsmash_state::pbillian) MCFG_VIDEO_START_OVERRIDE(hotsmash_state, pbillian) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay1", AY8910, XTAL(12'000'000)/8) // AY-3-8910A MCFG_AY8910_PORT_A_READ_CB(IOPORT("BUTTONS")) @@ -1426,7 +1426,7 @@ MACHINE_CONFIG_START(superqix_state::sqix) MCFG_VIDEO_START_OVERRIDE(superqix_state,superqix) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay1", AY8910, XTAL(12'000'000)/8) // AY-3-8910A @3P, analog outputs directly tied together MCFG_AY8910_OUTPUT_TYPE(AY8910_SINGLE_OUTPUT) @@ -1479,7 +1479,7 @@ MACHINE_CONFIG_START(superqix_state::sqix_nomcu) MCFG_VIDEO_START_OVERRIDE(superqix_state,superqix) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay1", AY8910, 12000000/8) MCFG_AY8910_OUTPUT_TYPE(AY8910_SINGLE_OUTPUT) // ? diff --git a/src/mame/drivers/supertnk.cpp b/src/mame/drivers/supertnk.cpp index 0e2e8655800..120a8bba6c6 100644 --- a/src/mame/drivers/supertnk.cpp +++ b/src/mame/drivers/supertnk.cpp @@ -451,7 +451,7 @@ MACHINE_CONFIG_START(supertnk_state::supertnk) MCFG_SCREEN_UPDATE_DRIVER(supertnk_state, screen_update_supertnk) /* audio hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, 2000000) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/superwng.cpp b/src/mame/drivers/superwng.cpp index 4d79a071316..8e090785ce5 100644 --- a/src/mame/drivers/superwng.cpp +++ b/src/mame/drivers/superwng.cpp @@ -501,7 +501,7 @@ MACHINE_CONFIG_START(superwng_state::superwng) MCFG_PALETTE_ADD("palette", 0x40) MCFG_PALETTE_INIT_OWNER(superwng_state, superwng) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay1", AY8910, MASTER_CLOCK/12) MCFG_AY8910_PORT_A_READ_CB(READ8(*this, superwng_state, superwng_sound_byte_r)) diff --git a/src/mame/drivers/suprgolf.cpp b/src/mame/drivers/suprgolf.cpp index 80ff260ef57..90bbd59c9a8 100644 --- a/src/mame/drivers/suprgolf.cpp +++ b/src/mame/drivers/suprgolf.cpp @@ -524,7 +524,7 @@ MACHINE_CONFIG_START(suprgolf_state::suprgolf) MCFG_PALETTE_ADD("palette", 0x800) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2203, MASTER_CLOCK/4) /* guess */ //MCFG_YM2203_IRQ_HANDLER(INPUTLINE("maincpu", INPUT_LINE_NMI)) diff --git a/src/mame/drivers/suprloco.cpp b/src/mame/drivers/suprloco.cpp index 5a7e13552f3..e0bb28bb248 100644 --- a/src/mame/drivers/suprloco.cpp +++ b/src/mame/drivers/suprloco.cpp @@ -203,7 +203,7 @@ MACHINE_CONFIG_START(suprloco_state::suprloco) MCFG_PALETTE_INIT_OWNER(suprloco_state, suprloco) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("sn1", SN76496, 4000000) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/suprnova.cpp b/src/mame/drivers/suprnova.cpp index 91bb24d1f71..ce12bbf96e4 100644 --- a/src/mame/drivers/suprnova.cpp +++ b/src/mame/drivers/suprnova.cpp @@ -818,7 +818,8 @@ MACHINE_CONFIG_START(skns_state::skns) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymz", YMZ280B, 33333333 / 2) MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) diff --git a/src/mame/drivers/suprridr.cpp b/src/mame/drivers/suprridr.cpp index e509e512b09..282e6645e84 100644 --- a/src/mame/drivers/suprridr.cpp +++ b/src/mame/drivers/suprridr.cpp @@ -349,7 +349,7 @@ MACHINE_CONFIG_START(suprridr_state::suprridr) MCFG_PALETTE_INIT_OWNER(suprridr_state, suprridr) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay1", AY8910, XTAL(49'152'000)/32) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mame/drivers/suprslam.cpp b/src/mame/drivers/suprslam.cpp index 5ea34186a20..79c00af977b 100644 --- a/src/mame/drivers/suprslam.cpp +++ b/src/mame/drivers/suprslam.cpp @@ -309,7 +309,8 @@ MACHINE_CONFIG_START(suprslam_state::suprslam) MCFG_K053936_WRAP(1) MCFG_K053936_OFFSETS(-45, -21) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) diff --git a/src/mame/drivers/supstarf.cpp b/src/mame/drivers/supstarf.cpp index 15d74ddae24..51966ecf87b 100644 --- a/src/mame/drivers/supstarf.cpp +++ b/src/mame/drivers/supstarf.cpp @@ -195,7 +195,7 @@ MACHINE_CONFIG_START(supstarf_state::supstarf) MCFG_I8212_INT_CALLBACK(INPUTLINE("soundcpu", MCS48_INPUT_IRQ)) //MCFG_DEVCB_CHAIN_OUTPUT(INPUTLINE("maincpu", I8085_READY_LINE)) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("psg1", AY8910, XTAL(5'068'800) / 6) // from 8035 pin 1 (T0) MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(*this, supstarf_state, lights_a_w)) diff --git a/src/mame/drivers/surpratk.cpp b/src/mame/drivers/surpratk.cpp index f855c66444f..793ef4c9dbe 100644 --- a/src/mame/drivers/surpratk.cpp +++ b/src/mame/drivers/surpratk.cpp @@ -210,7 +210,8 @@ MACHINE_CONFIG_START(surpratk_state::surpratk) MCFG_K053251_ADD("k053251") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2151, XTAL(3'579'545)) MCFG_YM2151_IRQ_HANDLER(INPUTLINE("maincpu", KONAMI_FIRQ_LINE)) diff --git a/src/mame/drivers/sv8000.cpp b/src/mame/drivers/sv8000.cpp index 1494648dcde..c9cbbe674eb 100644 --- a/src/mame/drivers/sv8000.cpp +++ b/src/mame/drivers/sv8000.cpp @@ -398,7 +398,7 @@ MACHINE_CONFIG_START(sv8000_state::sv8000) MCFG_SCREEN_MC6847_NTSC_ADD("screen", "s68047p") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay8910", AY8910, XTAL(10'738'635)/3/2) /* Exact model and clock not verified */ MCFG_AY8910_PORT_A_READ_CB(READ8(*this, sv8000_state, ay_port_a_r)) MCFG_AY8910_PORT_B_READ_CB(READ8(*this, sv8000_state, ay_port_b_r)) diff --git a/src/mame/drivers/svi318.cpp b/src/mame/drivers/svi318.cpp index 6634437a437..a3c89879c21 100644 --- a/src/mame/drivers/svi318.cpp +++ b/src/mame/drivers/svi318.cpp @@ -556,7 +556,7 @@ MACHINE_CONFIG_START(svi3x8_state::svi318) MCFG_SCREEN_UPDATE_DEVICE("vdp", tms9929a_device, screen_update) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") diff --git a/src/mame/drivers/svision.cpp b/src/mame/drivers/svision.cpp index af7c3897e19..5508cae6215 100644 --- a/src/mame/drivers/svision.cpp +++ b/src/mame/drivers/svision.cpp @@ -534,7 +534,8 @@ MACHINE_CONFIG_START(svision_state::svision) MCFG_DEFAULT_LAYOUT(layout_svision) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("custom", SVISION_SND, 0) MCFG_SOUND_ROUTE(0, "lspeaker", 0.50) MCFG_SOUND_ROUTE(1, "rspeaker", 0.50) diff --git a/src/mame/drivers/svmu.cpp b/src/mame/drivers/svmu.cpp index 129992b73c4..817f48b5b91 100644 --- a/src/mame/drivers/svmu.cpp +++ b/src/mame/drivers/svmu.cpp @@ -330,7 +330,7 @@ MACHINE_CONFIG_START(svmu_state::svmu) MCFG_PALETTE_INIT_OWNER(svmu_state, svmu) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/sym1.cpp b/src/mame/drivers/sym1.cpp index d3a7defbcb7..fa2af2f2c2d 100644 --- a/src/mame/drivers/sym1.cpp +++ b/src/mame/drivers/sym1.cpp @@ -332,7 +332,7 @@ MACHINE_CONFIG_START(sym1_state::sym1) MCFG_DEFAULT_LAYOUT(layout_sym1) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/system1.cpp b/src/mame/drivers/system1.cpp index afd2a6cb95f..9aa21474756 100644 --- a/src/mame/drivers/system1.cpp +++ b/src/mame/drivers/system1.cpp @@ -2192,7 +2192,7 @@ MACHINE_CONFIG_START(system1_state::sys1ppi) MCFG_PALETTE_FORMAT(BBGGGRRR) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/system16.cpp b/src/mame/drivers/system16.cpp index 59599671216..b3255f63472 100644 --- a/src/mame/drivers/system16.cpp +++ b/src/mame/drivers/system16.cpp @@ -2085,7 +2085,8 @@ MACHINE_CONFIG_START(segas1x_bootleg_state::z80_ym2151) MCFG_DEVICE_IO_MAP(sound_io_map) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2151, 4000000) MCFG_SOUND_ROUTE(0, "lspeaker", 0.32) @@ -2105,7 +2106,8 @@ MACHINE_CONFIG_START(segas1x_bootleg_state::z80_ym2151_upd7759) MCFG_DEVICE_IO_MAP(sound_7759_io_map) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2151, 4000000) MCFG_SOUND_ROUTE(0, "lspeaker", 0.32) @@ -2127,7 +2129,8 @@ MACHINE_CONFIG_START(segas1x_bootleg_state::datsu_ym2151_msm5205) MCFG_DEVICE_PROGRAM_MAP(tturfbl_sound_map) MCFG_DEVICE_IO_MAP(tturfbl_sound_io_map) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2151, 4000000) MCFG_SOUND_ROUTE(0, "lspeaker", 0.32) @@ -2145,7 +2148,7 @@ MACHINE_CONFIG_START(segas1x_bootleg_state::datsu_2x_ym2203_msm5205) MCFG_DEVICE_PROGRAM_MAP(shinobi_datsu_sound_map) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); // 2x YM2203C, one at U57, one at U56 MCFG_DEVICE_ADD("ym1", YM2203, 4000000) @@ -2470,7 +2473,8 @@ MACHINE_CONFIG_START(segas1x_bootleg_state::system18) MCFG_BOOTLEG_SYS16B_SPRITES_XORIGIN(189-107) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -2531,7 +2535,7 @@ MACHINE_CONFIG_START(segas1x_bootleg_state::astormb2) MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("soundcpu", 0)) // 1 OKI M6295 instead of original sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, XTAL(8'000'000)/8, okim6295_device::PIN7_HIGH) // 1MHz clock and pin verified MCFG_DEVICE_ADDRESS_MAP(0, sys18bl_oki_map) @@ -2625,7 +2629,7 @@ MACHINE_CONFIG_START(segas1x_bootleg_state::ddcrewbl) MCFG_MACHINE_RESET_OVERRIDE(segas1x_bootleg_state,ddcrewbl) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, 10000000/10, okim6295_device::PIN7_HIGH) // clock and pin not verified MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) MACHINE_CONFIG_END diff --git a/src/mame/drivers/tagteam.cpp b/src/mame/drivers/tagteam.cpp index 64f02cb1eca..ebe2b1a14d1 100644 --- a/src/mame/drivers/tagteam.cpp +++ b/src/mame/drivers/tagteam.cpp @@ -234,7 +234,7 @@ MACHINE_CONFIG_START(tagteam_state::tagteam) MCFG_PALETTE_INIT_OWNER(tagteam_state, tagteam) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", M6502_IRQ_LINE)) diff --git a/src/mame/drivers/tail2nos.cpp b/src/mame/drivers/tail2nos.cpp index 2570a797d57..1f0b30171de 100644 --- a/src/mame/drivers/tail2nos.cpp +++ b/src/mame/drivers/tail2nos.cpp @@ -272,7 +272,8 @@ MACHINE_CONFIG_START(tail2nos_state::tail2nos) MCFG_DEVICE_ADD("gga", VSYSTEM_GGA, XTAL(14'318'181) / 2) // divider not verified /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) diff --git a/src/mame/drivers/taito.cpp b/src/mame/drivers/taito.cpp index d51f7ca14d2..a2c559e22e8 100644 --- a/src/mame/drivers/taito.cpp +++ b/src/mame/drivers/taito.cpp @@ -361,7 +361,7 @@ MACHINE_CONFIG_START(taito_state::taito) /* Sound */ genpin_audio(config); - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.475) // unknown DAC MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT) @@ -396,7 +396,7 @@ MACHINE_CONFIG_END // add vox MACHINE_CONFIG_START(taito_state::taito4) taito(config); - MCFG_SPEAKER_STANDARD_MONO("voxsnd") + SPEAKER(config, "voxsnd").front_center(); MCFG_DEVICE_ADD("votrax", VOTRAX_SC01, 720000) // guess MCFG_VOTRAX_SC01_REQUEST_CB(WRITELINE(*this, taito_state, votrax_request)) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "voxsnd", 0.15) // todo: fix - it makes noise continuously @@ -409,7 +409,7 @@ MACHINE_CONFIG_START(taito_state::taito_ay_audio) MCFG_DEVICE_MODIFY( "audiocpu" ) MCFG_DEVICE_PROGRAM_MAP(taito_sub_map5) - MCFG_SPEAKER_STANDARD_MONO("aysnd") + SPEAKER(config, "aysnd").front_center(); MCFG_DEVICE_ADD("aysnd_0", AY8910, XTAL(3'579'545)/2) /* guess */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "aysnd", 0.8) MCFG_DEVICE_ADD("aysnd_1", AY8910, XTAL(3'579'545)/2) /* guess */ diff --git a/src/mame/drivers/taito_b.cpp b/src/mame/drivers/taito_b.cpp index a06d68840a0..61581008589 100644 --- a/src/mame/drivers/taito_b.cpp +++ b/src/mame/drivers/taito_b.cpp @@ -1987,7 +1987,7 @@ MACHINE_CONFIG_START(taitob_state::rastsag2) MCFG_TC0180VCU_GFXDECODE("gfxdecode") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2610, XTAL(16'000'000)/2) /* 8 MHz */ MCFG_YM2610_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) @@ -2044,7 +2044,7 @@ MACHINE_CONFIG_START(taitob_state::masterw) MCFG_TC0180VCU_GFXDECODE("gfxdecode") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2203, XTAL(24'000'000)/8) /* 3 MHz */ MCFG_YM2203_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) @@ -2122,7 +2122,7 @@ MACHINE_CONFIG_START(taitob_state::ashura) MCFG_TC0180VCU_GFXDECODE("gfxdecode") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2610, XTAL(16'000'000)/2) /* 8 MHz */ MCFG_YM2610_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) @@ -2179,7 +2179,7 @@ MACHINE_CONFIG_START(taitob_state::crimec) MCFG_TC0180VCU_GFXDECODE("gfxdecode") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2610, XTAL(16'000'000)/2) /* 8 MHz */ MCFG_YM2610_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) @@ -2238,7 +2238,7 @@ MACHINE_CONFIG_START(taitob_state::hitice) MCFG_TC0180VCU_GFXDECODE("gfxdecode") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2203, XTAL(24'000'000)/8) /* 3 MHz */ MCFG_YM2203_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) @@ -2300,7 +2300,7 @@ MACHINE_CONFIG_START(taitob_state::rambo3p) MCFG_TC0180VCU_GFXDECODE("gfxdecode") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2610, XTAL(16'000'000)/2) /* verified on pcb */ MCFG_YM2610_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) @@ -2358,7 +2358,7 @@ MACHINE_CONFIG_START(taitob_state::rambo3) MCFG_TC0180VCU_GFXDECODE("gfxdecode") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2610, XTAL(16'000'000)/2) /* 8 MHz verified on pcb */ MCFG_YM2610_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) @@ -2421,7 +2421,7 @@ MACHINE_CONFIG_START(taitob_state::pbobble) MCFG_TC0180VCU_GFXDECODE("gfxdecode") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2610B, XTAL(16'000'000)/2) /* 8 MHz */ MCFG_YM2610_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) @@ -2484,7 +2484,7 @@ MACHINE_CONFIG_START(taitob_state::spacedx) MCFG_TC0180VCU_GFXDECODE("gfxdecode") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2610, XTAL(16'000'000)/2) /* 8 MHz */ MCFG_YM2610_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) @@ -2541,7 +2541,7 @@ MACHINE_CONFIG_START(taitob_state::spacedxo) MCFG_TC0180VCU_GFXDECODE("gfxdecode") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2610, XTAL(16'000'000)/2) /* 8 MHz */ MCFG_YM2610_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) @@ -2604,7 +2604,7 @@ MACHINE_CONFIG_START(taitob_state::qzshowby) MCFG_TC0180VCU_GFXDECODE("gfxdecode") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2610B, 8000000) MCFG_YM2610_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) @@ -2661,7 +2661,7 @@ MACHINE_CONFIG_START(taitob_state::viofight) MCFG_TC0180VCU_GFXDECODE("gfxdecode") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2203, XTAL(24'000'000)/8) /* 3 MHz */ MCFG_YM2203_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) @@ -2723,7 +2723,7 @@ MACHINE_CONFIG_START(taitob_state::silentd) MCFG_TC0180VCU_GFXDECODE("gfxdecode") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2610, XTAL(16'000'000)/2) /* 8 MHz */ MCFG_YM2610_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) @@ -2780,7 +2780,7 @@ MACHINE_CONFIG_START(taitob_state::selfeena) MCFG_TC0180VCU_GFXDECODE("gfxdecode") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2610, XTAL(16'000'000)/2) /* 8 MHz */ MCFG_YM2610_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) @@ -2846,7 +2846,7 @@ MACHINE_CONFIG_START(taitob_state::ryujin) MCFG_TC0180VCU_GFXDECODE("gfxdecode") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2610, XTAL(16'000'000)/2) /* 8 MHz */ MCFG_YM2610_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) @@ -2910,7 +2910,7 @@ MACHINE_CONFIG_START(taitob_state::sbm) MCFG_TC0180VCU_GFXDECODE("gfxdecode") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2610B, 8000000) MCFG_YM2610_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) @@ -2968,7 +2968,7 @@ MACHINE_CONFIG_START(taitob_c_state::realpunc) MCFG_TC0180VCU_GFXDECODE("gfxdecode") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2610B, 8000000) MCFG_YM2610_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) diff --git a/src/mame/drivers/taito_f2.cpp b/src/mame/drivers/taito_f2.cpp index f0f786c198f..a7c6198b338 100644 --- a/src/mame/drivers/taito_f2.cpp +++ b/src/mame/drivers/taito_f2.cpp @@ -2879,7 +2879,8 @@ MACHINE_CONFIG_START(taitof2_state::taito_f2) MCFG_VIDEO_START_OVERRIDE(taitof2_state,taitof2_default) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2610, 24000000/3) /* Was 16000000/2, but only a 24Mhz OSC */ MCFG_YM2610_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) @@ -3787,7 +3788,7 @@ MACHINE_CONFIG_START(taitof2_state::cameltrya) MCFG_TC0360PRI_ADD("tc0360pri") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2203, 24000000/8) /* verified on pcb */ MCFG_YM2203_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) @@ -3856,7 +3857,8 @@ MACHINE_CONFIG_START(taitof2_state::driveout) MCFG_TC0360PRI_ADD("tc0360pri") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") /* does it ? */ + SPEAKER(config, "lspeaker").front_left(); /* does it ? */ + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("oki", OKIM6295, 1056000, okim6295_device::PIN7_HIGH) // clock frequency & pin 7 not verified MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 1.0) diff --git a/src/mame/drivers/taito_f3.cpp b/src/mame/drivers/taito_f3.cpp index 9509053aa59..6d6eaebe066 100644 --- a/src/mame/drivers/taito_f3.cpp +++ b/src/mame/drivers/taito_f3.cpp @@ -583,7 +583,7 @@ MACHINE_CONFIG_START(taito_f3_state::bubsympb) MCFG_VIDEO_START_OVERRIDE(taito_f3_state,f3) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, 1000000 , okim6295_device::PIN7_HIGH) // not verified MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/taito_h.cpp b/src/mame/drivers/taito_h.cpp index 7e0dd6b73e1..1f7f415de53 100644 --- a/src/mame/drivers/taito_h.cpp +++ b/src/mame/drivers/taito_h.cpp @@ -686,7 +686,7 @@ MACHINE_CONFIG_START(taitoh_state::syvalion) MCFG_TC0080VCO_GFXDECODE("gfxdecode") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2610, XTAL(8'000'000)) MCFG_YM2610_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) @@ -742,7 +742,7 @@ MACHINE_CONFIG_START(taitoh_state::recordbr) MCFG_TC0080VCO_GFXDECODE("gfxdecode") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2610, XTAL(8'000'000)) MCFG_YM2610_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) @@ -807,7 +807,7 @@ MACHINE_CONFIG_START(taitoh_state::dleague) MCFG_TC0080VCO_GFXDECODE("gfxdecode") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2610, XTAL(8'000'000)) MCFG_YM2610_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) diff --git a/src/mame/drivers/taito_l.cpp b/src/mame/drivers/taito_l.cpp index f777001c1cf..887e504c7dd 100644 --- a/src/mame/drivers/taito_l.cpp +++ b/src/mame/drivers/taito_l.cpp @@ -1516,7 +1516,7 @@ MACHINE_CONFIG_START(fhawk_state::fhawk) l_system_video(config); /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2203, 12_MHz_XTAL/4) /* verified on pcb */ MCFG_YM2203_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) @@ -1591,7 +1591,7 @@ MACHINE_CONFIG_START(taitol_2cpu_state::raimais) l_system_video(config); /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2610, 8_MHz_XTAL) /* verified on pcb (8Mhz OSC is also for the 2nd z80) */ MCFG_YM2610_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) @@ -1635,7 +1635,7 @@ MACHINE_CONFIG_START(taitol_2cpu_state::kurikint) l_system_video(config); /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2203, 12_MHz_XTAL/4) /* verified on pcb */ MCFG_SOUND_ROUTE(0, "mono", 0.20) @@ -1659,7 +1659,7 @@ MACHINE_CONFIG_START(taitol_1cpu_state::plotting) l_system_video(config); /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2203, XTAL(13'330'560)/4) /* verified on pcb */ MCFG_AY8910_PORT_A_READ_CB(READ8("dswmux", ls157_x2_device, output_r)) @@ -1783,7 +1783,7 @@ MACHINE_CONFIG_START(taitol_2cpu_state::evilston) l_system_video(config); /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2203, 12_MHz_XTAL/4) /* not verified */ MCFG_SOUND_ROUTE(0, "mono", 0.25) diff --git a/src/mame/drivers/taito_o.cpp b/src/mame/drivers/taito_o.cpp index f3a3252cbe8..46590243806 100644 --- a/src/mame/drivers/taito_o.cpp +++ b/src/mame/drivers/taito_o.cpp @@ -260,7 +260,7 @@ MACHINE_CONFIG_START(taitoo_state::parentj) MCFG_TC0080VCO_BGFLIP_OFFS(-2) MCFG_TC0080VCO_GFXDECODE("gfxdecode") - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2203, 2000000) /*?? MHz */ MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSWA")) diff --git a/src/mame/drivers/taito_x.cpp b/src/mame/drivers/taito_x.cpp index dd8efaf4534..db4082ced3e 100644 --- a/src/mame/drivers/taito_x.cpp +++ b/src/mame/drivers/taito_x.cpp @@ -862,7 +862,8 @@ MACHINE_CONFIG_START(taitox_state::superman) MCFG_VIDEO_START_OVERRIDE(taitox_state,seta_no_layers) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2610, XTAL(16'000'000)/2) /* verified on pcb */ MCFG_YM2610_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) @@ -909,7 +910,8 @@ MACHINE_CONFIG_START(taitox_state::daisenpu) MCFG_VIDEO_START_OVERRIDE(taitox_state,seta_no_layers) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2151, XTAL(16'000'000)/4) /* verified on pcb */ MCFG_YM2151_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) @@ -954,7 +956,8 @@ MACHINE_CONFIG_START(taitox_state::gigandes) MCFG_VIDEO_START_OVERRIDE(taitox_state,seta_no_layers) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2610, 8000000) MCFG_YM2610_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) @@ -1001,7 +1004,8 @@ MACHINE_CONFIG_START(taitox_state::ballbros) MCFG_VIDEO_START_OVERRIDE(taitox_state, kyustrkr_no_layers) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2610, 8000000) MCFG_YM2610_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) diff --git a/src/mame/drivers/taito_z.cpp b/src/mame/drivers/taito_z.cpp index 1557f17b02d..a8683e0c207 100644 --- a/src/mame/drivers/taito_z.cpp +++ b/src/mame/drivers/taito_z.cpp @@ -3227,9 +3227,9 @@ MACHINE_CONFIG_START(taitoz_state::contcirc) MCFG_TC0110PCR_PALETTE("palette") /* sound hardware */ - MCFG_SPEAKER_ADD("front", 0.0, 0.0, 0.7) - MCFG_SPEAKER_ADD("rear", 0.0, 0.0, 1.3) - MCFG_SPEAKER_ADD("subwoofer", 0.0, 0.0, 1.0) + SPEAKER(config, "front", 0.0, 0.0, 1.0); + SPEAKER(config, "rear", 0.0, 0.0, -0.5); + SPEAKER(config, "subwoofer", 0.0, 0.0, 1.0); MCFG_DEVICE_ADD("ymsnd", YM2610, 16000000/2) MCFG_YM2610_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) @@ -3302,9 +3302,9 @@ MACHINE_CONFIG_START(taitoz_state::chasehq) MCFG_TC0110PCR_PALETTE("palette") /* sound hardware */ - MCFG_SPEAKER_ADD("front", 0.0, 0.0, 0.7) - MCFG_SPEAKER_ADD("rear", 0.0, 0.0, 1.3) - MCFG_SPEAKER_ADD("subwoofer", 0.0, 0.0, 1.0) + SPEAKER(config, "front", 0.0, 0.0, 1.0); + SPEAKER(config, "rear", 0.0, 0.0, -0.5); + SPEAKER(config, "subwoofer", 0.0, 0.0, 1.0); MCFG_DEVICE_ADD("ymsnd", YM2610, 16000000/2) MCFG_YM2610_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) @@ -3379,7 +3379,8 @@ MACHINE_CONFIG_START(taitoz_state::enforce) MCFG_TC0110PCR_PALETTE("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2610, 16000000/2) MCFG_YM2610_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) @@ -3456,7 +3457,8 @@ MACHINE_CONFIG_START(taitoz_state::bshark) MCFG_DEVICE_ADD("tc0150rod", TC0150ROD, 0) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2610, 16000000/2) //MCFG_YM2610_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) // DG: this is probably specific to Z80 and wrong? @@ -3536,7 +3538,8 @@ MACHINE_CONFIG_START(taitoz_state::sci) MCFG_DEVICE_ADD("tc0150rod", TC0150ROD, 0) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2610, 16000000/2) MCFG_YM2610_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) @@ -3619,9 +3622,9 @@ MACHINE_CONFIG_START(taitoz_state::nightstr) MCFG_TC0110PCR_PALETTE("palette") /* sound hardware */ - MCFG_SPEAKER_ADD("front", 0.0, 0.0, 0.7) - MCFG_SPEAKER_ADD("rear", 0.0, 0.0, 1.3) - MCFG_SPEAKER_ADD("subwoofer", 0.0, 0.0, 1.0) + SPEAKER(config, "front", 0.0, 0.0, 1.0); + SPEAKER(config, "rear", 0.0, 0.0, -0.5); + SPEAKER(config, "subwoofer", 0.0, 0.0, 1.0); MCFG_DEVICE_ADD("ymsnd", YM2610, 16000000/2) MCFG_YM2610_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) @@ -3696,7 +3699,8 @@ MACHINE_CONFIG_START(taitoz_state::aquajack) MCFG_TC0110PCR_PALETTE("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2610, 16000000/2) MCFG_YM2610_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) @@ -3775,7 +3779,8 @@ MACHINE_CONFIG_START(taitoz_state::spacegun) MCFG_TC0110PCR_PALETTE("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2610, 16000000/2) //MCFG_YM2610_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) // DG: this is probably specific to Z80 and wrong? @@ -3845,7 +3850,8 @@ MACHINE_CONFIG_START(taitoz_state::dblaxle) MCFG_DEVICE_ADD("tc0150rod", TC0150ROD, 0) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2610, XTAL(32'000'000)/4) MCFG_YM2610_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) @@ -3917,7 +3923,8 @@ MACHINE_CONFIG_START(taitoz_state::racingb) MCFG_DEVICE_ADD("tc0150rod", TC0150ROD, 0) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2610, XTAL(32'000'000)/4) MCFG_YM2610_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) diff --git a/src/mame/drivers/taitoair.cpp b/src/mame/drivers/taitoair.cpp index eba6a6b40f0..f65c12f2e2f 100644 --- a/src/mame/drivers/taitoair.cpp +++ b/src/mame/drivers/taitoair.cpp @@ -753,7 +753,7 @@ MACHINE_CONFIG_START(taitoair_state::airsys) MCFG_TC0080VCO_GFXDECODE("gfxdecode") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2610, XTAL(16'000'000) / 2) MCFG_YM2610_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) diff --git a/src/mame/drivers/taitogn.cpp b/src/mame/drivers/taitogn.cpp index 6a2a9baf9aa..93477ce6021 100644 --- a/src/mame/drivers/taitogn.cpp +++ b/src/mame/drivers/taitogn.cpp @@ -748,7 +748,8 @@ MACHINE_CONFIG_START(taitogn_state::coh3002t) MCFG_PSXGPU_ADD( "maincpu", "gpu", CXD8654Q, 0x200000, XTAL(53'693'175) ) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_SPU_ADD("spu", XTAL(67'737'600)/2) MCFG_SOUND_ROUTE(0, "lspeaker", 0.45) diff --git a/src/mame/drivers/taitojc.cpp b/src/mame/drivers/taitojc.cpp index 658d1ac97e6..0f4ed7e97b3 100644 --- a/src/mame/drivers/taitojc.cpp +++ b/src/mame/drivers/taitojc.cpp @@ -1133,7 +1133,7 @@ MACHINE_CONFIG_START(taitojc_state::dendego) MCFG_SCREEN_UPDATE_DRIVER(taitojc_state, screen_update_dendego) /* sound hardware */ - MCFG_SPEAKER_ADD("subwoofer", 0.0, 0.0, 1.0) + SPEAKER(config, "subwoofer", 0.0, 0.0, 1.0); MCFG_DEVICE_ADD("oki", OKIM6295, 1056000, okim6295_device::PIN7_HIGH) // clock frequency & pin 7 not verified MCFG_SOUND_ROUTE(ALL_OUTPUTS, "subwoofer", 0.20) MACHINE_CONFIG_END diff --git a/src/mame/drivers/taitosj.cpp b/src/mame/drivers/taitosj.cpp index e48d985df36..33612be0b77 100644 --- a/src/mame/drivers/taitosj.cpp +++ b/src/mame/drivers/taitosj.cpp @@ -1786,7 +1786,7 @@ MACHINE_CONFIG_START(taitosj_state::nomcu) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_INPUT_MERGER_ALL_HIGH("soundnmi") MCFG_INPUT_MERGER_OUTPUT_HANDLER(WRITELINE("soundnmi2", input_merger_device, in_w<0>)) diff --git a/src/mame/drivers/tamag1.cpp b/src/mame/drivers/tamag1.cpp index 96b257613c1..328c45b5de3 100644 --- a/src/mame/drivers/tamag1.cpp +++ b/src/mame/drivers/tamag1.cpp @@ -155,7 +155,7 @@ MACHINE_CONFIG_START(tamag1_state::tama) MCFG_PALETTE_INIT_OWNER(tamag1_state, tama) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END diff --git a/src/mame/drivers/tandy2k.cpp b/src/mame/drivers/tandy2k.cpp index 99227b391c8..76bfa63c86e 100644 --- a/src/mame/drivers/tandy2k.cpp +++ b/src/mame/drivers/tandy2k.cpp @@ -815,7 +815,7 @@ MACHINE_CONFIG_START(tandy2k_state::tandy2k) MCFG_TIMER_DRIVER_ADD("vidldsh", tandy2k_state, vidldsh_tick) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mame/drivers/tank8.cpp b/src/mame/drivers/tank8.cpp index 3b8f586ae60..323fbe244c8 100644 --- a/src/mame/drivers/tank8.cpp +++ b/src/mame/drivers/tank8.cpp @@ -351,7 +351,7 @@ MACHINE_CONFIG_START(tank8_state::tank8) MCFG_PALETTE_INIT_OWNER(tank8_state, tank8) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("discrete", DISCRETE, tank8_discrete) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80) diff --git a/src/mame/drivers/tankbatt.cpp b/src/mame/drivers/tankbatt.cpp index 7958dbd0e1c..e76d845d508 100644 --- a/src/mame/drivers/tankbatt.cpp +++ b/src/mame/drivers/tankbatt.cpp @@ -306,7 +306,7 @@ MACHINE_CONFIG_START(tankbatt_state::tankbatt) MCFG_PALETTE_INIT_OWNER(tankbatt_state, tankbatt) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("samples", SAMPLES) MCFG_SAMPLES_CHANNELS(3) diff --git a/src/mame/drivers/tankbust.cpp b/src/mame/drivers/tankbust.cpp index f663cd09c7d..401b514d263 100644 --- a/src/mame/drivers/tankbust.cpp +++ b/src/mame/drivers/tankbust.cpp @@ -364,7 +364,7 @@ MACHINE_CONFIG_START(tankbust_state::tankbust) MCFG_PALETTE_INIT_OWNER(tankbust_state, tankbust) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay1", AY8910, XTAL(14'318'181)/16) /* Verified on PCB */ MCFG_AY8910_PORT_A_READ_CB(READ8(*this, tankbust_state, soundlatch_r)) diff --git a/src/mame/drivers/taotaido.cpp b/src/mame/drivers/taotaido.cpp index a6eebb7d9a0..b8c1fb37164 100644 --- a/src/mame/drivers/taotaido.cpp +++ b/src/mame/drivers/taotaido.cpp @@ -393,7 +393,8 @@ MACHINE_CONFIG_START(taotaido_state::taotaido) MCFG_VSYSTEM_SPR_GFXDECODE("gfxdecode") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) diff --git a/src/mame/drivers/tapatune.cpp b/src/mame/drivers/tapatune.cpp index 725dd37266e..5543834a4e0 100644 --- a/src/mame/drivers/tapatune.cpp +++ b/src/mame/drivers/tapatune.cpp @@ -529,7 +529,8 @@ MACHINE_CONFIG_START(tapatune_state::tapatune_base) MCFG_TICKET_DISPENSER_ADD("ticket", attotime::from_msec(100), TICKET_MOTOR_ACTIVE_LOW, TICKET_STATUS_ACTIVE_LOW) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("bsmt", BSMT2000, XTAL(24'000'000)) MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) diff --git a/src/mame/drivers/targeth.cpp b/src/mame/drivers/targeth.cpp index 4c1f8c4228c..ee3893c3da0 100644 --- a/src/mame/drivers/targeth.cpp +++ b/src/mame/drivers/targeth.cpp @@ -299,7 +299,7 @@ MACHINE_CONFIG_START(targeth_state::targeth) MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, XTAL(1'000'000), okim6295_device::PIN7_HIGH) // 1MHz resonator - pin 7 not verified MCFG_DEVICE_ADDRESS_MAP(0, oki_map) diff --git a/src/mame/drivers/tasman.cpp b/src/mame/drivers/tasman.cpp index 7903db4bdc2..3c58a6a7b1b 100644 --- a/src/mame/drivers/tasman.cpp +++ b/src/mame/drivers/tasman.cpp @@ -682,7 +682,8 @@ MACHINE_CONFIG_START(kongambl_state::kongambl) MCFG_K056832_CONFIG("gfx1", K056832_BPP_8TASMAN, 0, 0, "none") MCFG_K056832_PALETTE("palette") - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MACHINE_CONFIG_END diff --git a/src/mame/drivers/tatsumi.cpp b/src/mame/drivers/tatsumi.cpp index 4167c16a0e8..c9a7b85f5e9 100644 --- a/src/mame/drivers/tatsumi.cpp +++ b/src/mame/drivers/tatsumi.cpp @@ -898,7 +898,8 @@ MACHINE_CONFIG_START(apache3_state::apache3) MCFG_VIDEO_START_OVERRIDE(apache3_state, apache3) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2151, CLOCK_1 / 4) MCFG_YM2151_IRQ_HANDLER(INPUTLINE("audiocpu", INPUT_LINE_IRQ0)) @@ -946,7 +947,8 @@ MACHINE_CONFIG_START(roundup5_state::roundup5) MCFG_VIDEO_START_OVERRIDE(roundup5_state,roundup5) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2151, CLOCK_1 / 4) MCFG_YM2151_IRQ_HANDLER(INPUTLINE("audiocpu", INPUT_LINE_IRQ0)) @@ -1002,7 +1004,8 @@ MACHINE_CONFIG_START(cyclwarr_state::cyclwarr) MCFG_VIDEO_START_OVERRIDE(cyclwarr_state, cyclwarr) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -1060,7 +1063,8 @@ MACHINE_CONFIG_START(cyclwarr_state::bigfight) MCFG_VIDEO_START_OVERRIDE(cyclwarr_state, bigfight) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/tattack.cpp b/src/mame/drivers/tattack.cpp index 9e7afd96042..c489fb8be52 100644 --- a/src/mame/drivers/tattack.cpp +++ b/src/mame/drivers/tattack.cpp @@ -421,7 +421,7 @@ MACHINE_CONFIG_START(tattack_state::tattack) MCFG_PALETTE_INIT_OWNER(tattack_state, tattack) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("samples", SAMPLES) MCFG_SAMPLES_CHANNELS(4) MCFG_SAMPLES_NAMES(tattack_sample_names) diff --git a/src/mame/drivers/tavernie.cpp b/src/mame/drivers/tavernie.cpp index 45af28ab8fe..9663389f0b9 100644 --- a/src/mame/drivers/tavernie.cpp +++ b/src/mame/drivers/tavernie.cpp @@ -300,7 +300,7 @@ MACHINE_CONFIG_START(tavernie_state::cpu09) MCFG_MACHINE_RESET_OVERRIDE(tavernie_state, cpu09) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.05) diff --git a/src/mame/drivers/taxidriv.cpp b/src/mame/drivers/taxidriv.cpp index 5092a90e7cf..7fcbd1bcd44 100644 --- a/src/mame/drivers/taxidriv.cpp +++ b/src/mame/drivers/taxidriv.cpp @@ -394,7 +394,7 @@ MACHINE_CONFIG_START(taxidriv_state::taxidriv) MCFG_PALETTE_INIT_OWNER(taxidriv_state, taxidriv) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay1", AY8910, 1250000) MCFG_AY8910_PORT_A_READ_CB(READ8(*this, taxidriv_state, p8910_0a_r)) diff --git a/src/mame/drivers/tbowl.cpp b/src/mame/drivers/tbowl.cpp index 2b14ef6ca44..fa9ca156b44 100644 --- a/src/mame/drivers/tbowl.cpp +++ b/src/mame/drivers/tbowl.cpp @@ -475,7 +475,7 @@ MACHINE_CONFIG_START(tbowl_state::tbowl) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) diff --git a/src/mame/drivers/tceptor.cpp b/src/mame/drivers/tceptor.cpp index 5be7cc5dc0c..6fdb0d42dd1 100644 --- a/src/mame/drivers/tceptor.cpp +++ b/src/mame/drivers/tceptor.cpp @@ -370,7 +370,8 @@ MACHINE_CONFIG_START(tceptor_state::tceptor) MCFG_SCREEN_PALETTE("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2151, XTAL(14'318'181)/4) MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) diff --git a/src/mame/drivers/tec1.cpp b/src/mame/drivers/tec1.cpp index e109a26474c..e93aeebbb7e 100644 --- a/src/mame/drivers/tec1.cpp +++ b/src/mame/drivers/tec1.cpp @@ -425,7 +425,7 @@ MACHINE_CONFIG_START(tec1_state::tec1) MCFG_DEFAULT_LAYOUT(layout_tec1) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) MACHINE_CONFIG_END @@ -440,7 +440,7 @@ MACHINE_CONFIG_START(tec1_state::tecjmon) MCFG_DEFAULT_LAYOUT(layout_tec1) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") diff --git a/src/mame/drivers/tecmo.cpp b/src/mame/drivers/tecmo.cpp index 6182dd9afb2..758c40bda8a 100644 --- a/src/mame/drivers/tecmo.cpp +++ b/src/mame/drivers/tecmo.cpp @@ -740,7 +740,7 @@ MACHINE_CONFIG_START(tecmo_state::rygar) MCFG_DEVICE_ADD("spritegen", TECMO_SPRITE, 0) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("soundcpu", INPUT_LINE_NMI)) diff --git a/src/mame/drivers/tecmo16.cpp b/src/mame/drivers/tecmo16.cpp index 50639b7489e..d36f0d830b8 100644 --- a/src/mame/drivers/tecmo16.cpp +++ b/src/mame/drivers/tecmo16.cpp @@ -398,7 +398,8 @@ MACHINE_CONFIG_START(tecmo16_state::fstarfrc) MCFG_TECMO_MIXER_BGPEN(0x000 + 0x300) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) diff --git a/src/mame/drivers/tecmosys.cpp b/src/mame/drivers/tecmosys.cpp index 12d12479666..117052a8eb8 100644 --- a/src/mame/drivers/tecmosys.cpp +++ b/src/mame/drivers/tecmosys.cpp @@ -483,7 +483,8 @@ MACHINE_CONFIG_START(tecmosys_state::tecmosys) MCFG_PALETTE_FORMAT(xGGGGGRRRRRBBBBB) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(WRITELINE("soundnmi", input_merger_device, in_w<0>)) diff --git a/src/mame/drivers/tehkanwc.cpp b/src/mame/drivers/tehkanwc.cpp index e4938852812..130f7116981 100644 --- a/src/mame/drivers/tehkanwc.cpp +++ b/src/mame/drivers/tehkanwc.cpp @@ -700,7 +700,7 @@ MACHINE_CONFIG_START(tehkanwc_state::tehkanwc) MCFG_PALETTE_ENDIANNESS(ENDIANNESS_BIG) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_8_ADD("soundlatch2") diff --git a/src/mame/drivers/tek405x.cpp b/src/mame/drivers/tek405x.cpp index d2f21df7d91..87680ad8dcc 100644 --- a/src/mame/drivers/tek405x.cpp +++ b/src/mame/drivers/tek405x.cpp @@ -1015,7 +1015,7 @@ MACHINE_CONFIG_START(tek4051_state::tek4051) MCFG_PALETTE_ADD_MONOCHROME("palette") // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) @@ -1122,7 +1122,7 @@ MACHINE_CONFIG_START(tek4052_state::tek4052) MCFG_PALETTE_ADD_MONOCHROME("palette") // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mame/drivers/tek440x.cpp b/src/mame/drivers/tek440x.cpp index 566901089ea..05fa25a54a6 100644 --- a/src/mame/drivers/tek440x.cpp +++ b/src/mame/drivers/tek440x.cpp @@ -222,7 +222,7 @@ MACHINE_CONFIG_START(tek440x_state::tek4404) MCFG_RS232_DSR_HANDLER(WRITELINE("aica", mos6551_device, write_dsr)) MCFG_RS232_CTS_HANDLER(WRITELINE("aica", mos6551_device, write_cts)) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("snsnd", SN76496, VIDEO_CLOCK / 8) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80) diff --git a/src/mame/drivers/tempest.cpp b/src/mame/drivers/tempest.cpp index 4aeb0387791..72ebab985f8 100644 --- a/src/mame/drivers/tempest.cpp +++ b/src/mame/drivers/tempest.cpp @@ -623,7 +623,7 @@ MACHINE_CONFIG_START(tempest_state::tempest) MCFG_MATHBOX_ADD("mathbox") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("pokey1", POKEY, MASTER_CLOCK / 8) MCFG_POKEY_POT0_R_CB(READ8(*this, tempest_state, input_port_1_bit_r)) diff --git a/src/mame/drivers/terracre.cpp b/src/mame/drivers/terracre.cpp index 22d5f10b497..23f3078c5fc 100644 --- a/src/mame/drivers/terracre.cpp +++ b/src/mame/drivers/terracre.cpp @@ -480,7 +480,7 @@ MACHINE_CONFIG_START(terracre_state::ym3526) MCFG_PALETTE_INDIRECT_ENTRIES(256) MCFG_PALETTE_INIT_OWNER(terracre_state, terracre) - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/tetrisp2.cpp b/src/mame/drivers/tetrisp2.cpp index 62f2aa220ed..ac09e5084b3 100644 --- a/src/mame/drivers/tetrisp2.cpp +++ b/src/mame/drivers/tetrisp2.cpp @@ -1719,7 +1719,8 @@ MACHINE_CONFIG_START(tetrisp2_state::tetrisp2) MCFG_VIDEO_START_OVERRIDE(tetrisp2_state,tetrisp2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymz", YMZ280B, 16934400) MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) @@ -1753,7 +1754,7 @@ MACHINE_CONFIG_START(tetrisp2_state::nndmseal) MCFG_VIDEO_START_OVERRIDE(tetrisp2_state,nndmseal) // bg layer offset /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, XTAL(2'000'000), okim6295_device::PIN7_HIGH) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -1786,7 +1787,8 @@ MACHINE_CONFIG_START(tetrisp2_state::rockn) MCFG_VIDEO_START_OVERRIDE(tetrisp2_state,rockntread) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymz", YMZ280B, 16934400) MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) @@ -1820,7 +1822,8 @@ MACHINE_CONFIG_START(tetrisp2_state::rockn2) MCFG_VIDEO_START_OVERRIDE(tetrisp2_state,rockntread) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymz", YMZ280B, 16934400) MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) @@ -1870,7 +1873,8 @@ MACHINE_CONFIG_START(tetrisp2_state::rocknms) MCFG_VIDEO_START_OVERRIDE(tetrisp2_state,rocknms) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymz", YMZ280B, 16934400) MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) @@ -1933,7 +1937,8 @@ MACHINE_CONFIG_START(stepstag_state::stepstag) MCFG_DEFAULT_LAYOUT(layout_stepstag) // sound hardware - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_16_ADD("soundlatch") @@ -2005,7 +2010,8 @@ MACHINE_CONFIG_START(stepstag_state::vjdash) // 4 Screens MCFG_DEFAULT_LAYOUT(layout_vjdash) // sound hardware - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_16_ADD("soundlatch") diff --git a/src/mame/drivers/tg100.cpp b/src/mame/drivers/tg100.cpp index 16b818f9eb5..f2145df773d 100644 --- a/src/mame/drivers/tg100.cpp +++ b/src/mame/drivers/tg100.cpp @@ -77,7 +77,8 @@ MACHINE_CONFIG_START(tg100_state::tg100) MCFG_DEVICE_PROGRAM_MAP( tg100_map ) MCFG_DEVICE_IO_MAP( tg100_io_map ) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymw258", MULTIPCM, 9400000) MCFG_DEVICE_ADDRESS_MAP(0, ymw258_map) diff --git a/src/mame/drivers/thayers.cpp b/src/mame/drivers/thayers.cpp index eb0fe6d3732..53e468e46f7 100644 --- a/src/mame/drivers/thayers.cpp +++ b/src/mame/drivers/thayers.cpp @@ -819,7 +819,8 @@ MACHINE_CONFIG_START(thayers_state::thayers) MCFG_PALETTE_ADD("palette", 256) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); // SSI 263 @ 2MHz MCFG_DEVICE_MODIFY("laserdisc") diff --git a/src/mame/drivers/thedealr.cpp b/src/mame/drivers/thedealr.cpp index e54c1e32470..bc0c1273c21 100644 --- a/src/mame/drivers/thedealr.cpp +++ b/src/mame/drivers/thedealr.cpp @@ -565,7 +565,7 @@ MACHINE_CONFIG_START(thedealr_state::thedealr) MCFG_PALETTE_INIT_OWNER(thedealr_state,thedealr) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", YM2149, XTAL(16'000'000)/8) // 2 MHz? MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW2")) MCFG_AY8910_PORT_B_READ_CB(IOPORT("DSW1")) diff --git a/src/mame/drivers/thedeep.cpp b/src/mame/drivers/thedeep.cpp index 26ee9f31945..b2e33b1cfe4 100644 --- a/src/mame/drivers/thedeep.cpp +++ b/src/mame/drivers/thedeep.cpp @@ -442,7 +442,7 @@ MACHINE_CONFIG_START(thedeep_state::thedeep) MCFG_DECO_MXC06_RAMSIZE(0x400) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) diff --git a/src/mame/drivers/thepit.cpp b/src/mame/drivers/thepit.cpp index 6e63803a35f..9382698479f 100644 --- a/src/mame/drivers/thepit.cpp +++ b/src/mame/drivers/thepit.cpp @@ -748,7 +748,7 @@ MACHINE_CONFIG_START(thepit_state::thepit) MCFG_SCREEN_PALETTE("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/thief.cpp b/src/mame/drivers/thief.cpp index 6fd03c82e2b..d6cd2393500 100644 --- a/src/mame/drivers/thief.cpp +++ b/src/mame/drivers/thief.cpp @@ -416,7 +416,7 @@ MACHINE_CONFIG_START(thief_state::thief) MCFG_PALETTE_ADD("palette", 16) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay1", AY8910, XTAL(8'000'000)/2/4) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/thomson.cpp b/src/mame/drivers/thomson.cpp index 9284160a92a..10bea1efa57 100644 --- a/src/mame/drivers/thomson.cpp +++ b/src/mame/drivers/thomson.cpp @@ -649,7 +649,7 @@ MACHINE_CONFIG_START(thomson_state::to7) MCFG_VIDEO_START_OVERRIDE( thomson_state, thom ) /* sound */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("buzzer", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) MCFG_DEVICE_ADD("dac", DAC_6BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) // unknown DAC (6-bit game extension DAC) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) diff --git a/src/mame/drivers/thoop2.cpp b/src/mame/drivers/thoop2.cpp index e6671500f82..418924d2f0f 100644 --- a/src/mame/drivers/thoop2.cpp +++ b/src/mame/drivers/thoop2.cpp @@ -299,7 +299,7 @@ MACHINE_CONFIG_START(thoop2_state::thoop2) MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, XTAL(1'000'000), okim6295_device::PIN7_HIGH) // 1MHz resonator - pin 7 not connected MCFG_DEVICE_ADDRESS_MAP(0, oki_map) diff --git a/src/mame/drivers/thunderj.cpp b/src/mame/drivers/thunderj.cpp index 63d635cc9c4..fb270f4d8af 100644 --- a/src/mame/drivers/thunderj.cpp +++ b/src/mame/drivers/thunderj.cpp @@ -277,7 +277,7 @@ MACHINE_CONFIG_START(thunderj_state::thunderj) MCFG_SCREEN_PALETTE("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_ATARI_JSA_II_ADD("jsa", INPUTLINE("maincpu", M68K_IRQ_6)) MCFG_ATARI_JSA_TEST_PORT("260012", 1) diff --git a/src/mame/drivers/thunderx.cpp b/src/mame/drivers/thunderx.cpp index eb41a27c0bc..e9ddaa3fcc4 100644 --- a/src/mame/drivers/thunderx.cpp +++ b/src/mame/drivers/thunderx.cpp @@ -680,7 +680,7 @@ MACHINE_CONFIG_START(thunderx_state::scontra) MCFG_K051960_CB(thunderx_state, sprite_callback) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/ti99_4p.cpp b/src/mame/drivers/ti99_4p.cpp index 9599b0a4074..f00e3c8b46a 100644 --- a/src/mame/drivers/ti99_4p.cpp +++ b/src/mame/drivers/ti99_4p.cpp @@ -1035,7 +1035,7 @@ MACHINE_CONFIG_START(ti99_4p_state::ti99_4p_60hz) MCFG_RAM_DEFAULT_VALUE(0) // Cassette drives - MCFG_SPEAKER_STANDARD_MONO("cass_out") + SPEAKER(config, "cass_out").front_center(); MCFG_CASSETTE_ADD( "cassette" ) MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") diff --git a/src/mame/drivers/ti99_4x.cpp b/src/mame/drivers/ti99_4x.cpp index 403103a8039..516bfc6c090 100644 --- a/src/mame/drivers/ti99_4x.cpp +++ b/src/mame/drivers/ti99_4x.cpp @@ -890,13 +890,13 @@ MACHINE_CONFIG_START(ti99_4x_state::ti99_4) MCFG_IOPORT_READY_HANDLER( WRITELINE(TI99_DATAMUX_TAG, bus::ti99::internal::datamux_device, ready_line) ) // Sound hardware - MCFG_SPEAKER_STANDARD_MONO("sound_out") + SPEAKER(config, "sound_out").front_center(); MCFG_DEVICE_ADD(TI_SOUNDCHIP_TAG, SN94624, 3579545/8) /* 3.579545 MHz */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "sound_out", 0.75) MCFG_SN76496_READY_HANDLER( WRITELINE(*this, ti99_4x_state, console_ready_sound) ) // Cassette drives - MCFG_SPEAKER_STANDARD_MONO("cass_out") + SPEAKER(config, "cass_out").front_center(); MCFG_CASSETTE_ADD( "cassette" ) MCFG_CASSETTE_ADD( "cassette2" ) @@ -1009,13 +1009,13 @@ MACHINE_CONFIG_START(ti99_4x_state::ti99_4a) MCFG_IOPORT_READY_HANDLER( WRITELINE(TI99_DATAMUX_TAG, bus::ti99::internal::datamux_device, ready_line) ) // Sound hardware - MCFG_SPEAKER_STANDARD_MONO("sound_out") + SPEAKER(config, "sound_out").front_center(); MCFG_DEVICE_ADD(TI_SOUNDCHIP_TAG, SN94624, 3579545/8) /* 3.579545 MHz */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "sound_out", 0.75) MCFG_SN76496_READY_HANDLER( WRITELINE(*this, ti99_4x_state, console_ready_sound) ) // Cassette drives - MCFG_SPEAKER_STANDARD_MONO("cass_out") + SPEAKER(config, "cass_out").front_center(); MCFG_CASSETTE_ADD( "cassette" ) MCFG_CASSETTE_ADD( "cassette2" ) @@ -1172,7 +1172,7 @@ MACHINE_CONFIG_START(ti99_4x_state::ti99_4ev_60hz) MCFG_IOPORT_READY_HANDLER( WRITELINE(TI99_DATAMUX_TAG, bus::ti99::internal::datamux_device, ready_line) ) // Cassette drives - MCFG_SPEAKER_STANDARD_MONO("cass_out") + SPEAKER(config, "cass_out").front_center(); MCFG_CASSETTE_ADD( "cassette" ) MCFG_CASSETTE_ADD( "cassette2" ) diff --git a/src/mame/drivers/ti99_8.cpp b/src/mame/drivers/ti99_8.cpp index 741d4a37e03..e26c51307d1 100644 --- a/src/mame/drivers/ti99_8.cpp +++ b/src/mame/drivers/ti99_8.cpp @@ -777,7 +777,7 @@ MACHINE_CONFIG_START(ti99_8_state::ti99_8) MCFG_HEXBUS_ADD( TI_HEXBUS_TAG ) // Sound hardware - MCFG_SPEAKER_STANDARD_MONO("sound_out") + SPEAKER(config, "sound_out").front_center(); MCFG_DEVICE_ADD(TI_SOUNDCHIP_TAG, SN76496, 3579545) /* 3.579545 MHz */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "sound_out", 0.75) MCFG_SN76496_READY_HANDLER(WRITELINE(TI998_MAINBOARD_TAG, bus::ti99::internal::mainboard8_device, sound_ready)) @@ -785,14 +785,14 @@ MACHINE_CONFIG_START(ti99_8_state::ti99_8) // Speech hardware // Note: SPEECHROM uses its tag for referencing the region MCFG_DEVICE_ADD(TI998_SPEECHROM_REG, SPEECHROM, 0) - MCFG_SPEAKER_STANDARD_MONO("speech_out") + SPEAKER(config, "speech_out").front_center(); MCFG_DEVICE_ADD(TI998_SPEECHSYN_TAG, CD2501ECD, 640000L) MCFG_TMS52XX_READYQ_HANDLER(WRITELINE(TI998_MAINBOARD_TAG, bus::ti99::internal::mainboard8_device, speech_ready)) MCFG_TMS52XX_SPEECHROM(TI998_SPEECHROM_REG) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speech_out", 0.50) // Cassette drive - MCFG_SPEAKER_STANDARD_MONO("cass_out") + SPEAKER(config, "cass_out").front_center(); MCFG_CASSETTE_ADD( "cassette" ) MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "cass_out", 0.25) diff --git a/src/mame/drivers/tiamc1.cpp b/src/mame/drivers/tiamc1.cpp index 95c55a8595e..130e60fc223 100644 --- a/src/mame/drivers/tiamc1.cpp +++ b/src/mame/drivers/tiamc1.cpp @@ -350,7 +350,7 @@ MACHINE_CONFIG_START(tiamc1_state::tiamc1) MCFG_PALETTE_INIT_OWNER(tiamc1_state, tiamc1) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("2x8253", TIAMC1, SND_CLOCK) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/ticalc1x.cpp b/src/mame/drivers/ticalc1x.cpp index 0d748712f01..dbe9c2ce5ad 100644 --- a/src/mame/drivers/ticalc1x.cpp +++ b/src/mame/drivers/ticalc1x.cpp @@ -1252,7 +1252,7 @@ MACHINE_CONFIG_START(mathmarv_state::mathmarv) MCFG_DEFAULT_LAYOUT(layout_mathmarv) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END diff --git a/src/mame/drivers/tickee.cpp b/src/mame/drivers/tickee.cpp index 26d9cd6fedf..46ed8bdd475 100644 --- a/src/mame/drivers/tickee.cpp +++ b/src/mame/drivers/tickee.cpp @@ -782,7 +782,7 @@ MACHINE_CONFIG_START(tickee_state::tickee) MCFG_SCREEN_UPDATE_DEVICE("maincpu", tms34010_device, tms340x0_rgb32) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ym1", YM2149, VIDEO_CLOCK/8) MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW")) @@ -832,7 +832,7 @@ MACHINE_CONFIG_START(tickee_state::rapidfir) MCFG_SCREEN_UPDATE_DEVICE("maincpu", tms34010_device, tms340x0_rgb32) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, OKI_CLOCK, okim6295_device::PIN7_HIGH) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) @@ -863,7 +863,7 @@ MACHINE_CONFIG_START(tickee_state::mouseatk) MCFG_SCREEN_UPDATE_DEVICE("maincpu", tms34010_device, tms340x0_rgb32) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ym", YM2149, OKI_CLOCK) MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW")) diff --git a/src/mame/drivers/tigeroad.cpp b/src/mame/drivers/tigeroad.cpp index 45e8c28fd42..5fb41cb9d8e 100644 --- a/src/mame/drivers/tigeroad.cpp +++ b/src/mame/drivers/tigeroad.cpp @@ -681,7 +681,7 @@ MACHINE_CONFIG_START(tigeroad_state::tigeroad) MCFG_PALETTE_FORMAT(xxxxRRRRGGGGBBBB) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_8_ADD("soundlatch2") @@ -759,7 +759,7 @@ MACHINE_CONFIG_START(tigeroad_state::f1dream_comad) MCFG_PALETTE_FORMAT(xxxxRRRRGGGGBBBB) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/tiki100.cpp b/src/mame/drivers/tiki100.cpp index 8a0ba7a87ac..f29a462feb0 100644 --- a/src/mame/drivers/tiki100.cpp +++ b/src/mame/drivers/tiki100.cpp @@ -771,7 +771,7 @@ MACHINE_CONFIG_START(tiki100_state::tiki100) MCFG_TIMER_DRIVER_ADD_PERIODIC("tape", tiki100_state, tape_tick, attotime::from_hz(44100)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD(AY8912_TAG, AY8912, XTAL(8'000'000)/4) MCFG_AY8910_OUTPUT_TYPE(AY8910_SINGLE_OUTPUT) MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(*this, tiki100_state, video_scroll_w)) diff --git a/src/mame/drivers/timelimt.cpp b/src/mame/drivers/timelimt.cpp index d33e3a3d92f..b56a3360721 100644 --- a/src/mame/drivers/timelimt.cpp +++ b/src/mame/drivers/timelimt.cpp @@ -260,7 +260,7 @@ MACHINE_CONFIG_START(timelimt_state::timelimt) MCFG_PALETTE_INIT_OWNER(timelimt_state, timelimt) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/tispeak.cpp b/src/mame/drivers/tispeak.cpp index 433572affc9..f0c6271fd41 100644 --- a/src/mame/drivers/tispeak.cpp +++ b/src/mame/drivers/tispeak.cpp @@ -1299,7 +1299,7 @@ MACHINE_CONFIG_START(tispeak_state::snmath) /* sound hardware */ MCFG_DEVICE_ADD("tms6100", TMS6100, MASTER_CLOCK/4) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("tms5100", CD2801, MASTER_CLOCK) tms5110_route(config); MACHINE_CONFIG_END @@ -1404,7 +1404,7 @@ MACHINE_CONFIG_START(tispeak_state::snspellc) /* sound hardware */ MCFG_DEVICE_ADD("tms6100", TMS6100, MASTER_CLOCK/4) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("tms5100", TMC0281D, MASTER_CLOCK) tms5110_route(config); @@ -1440,7 +1440,7 @@ MACHINE_CONFIG_START(tispeak_state::vocaid) /* sound hardware */ MCFG_DEVICE_ADD("tms6100", TMS6100, MASTER_CLOCK/4) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("tms5100", CD2802, MASTER_CLOCK) tms5110_route(config); MACHINE_CONFIG_END @@ -1471,7 +1471,7 @@ MACHINE_CONFIG_START(tispeak_state::k28m2) /* sound hardware */ MCFG_DEVICE_ADD("tms6100", TMS6100, MASTER_CLOCK/4) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("tms5100", TMS5110A, MASTER_CLOCK) tms5110_route(config); diff --git a/src/mame/drivers/tispellb.cpp b/src/mame/drivers/tispellb.cpp index 35de2223520..cfdcc553d36 100644 --- a/src/mame/drivers/tispellb.cpp +++ b/src/mame/drivers/tispellb.cpp @@ -385,7 +385,7 @@ MACHINE_CONFIG_START(tispellb_state::rev2) MCFG_DEFAULT_LAYOUT(layout_spellb) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END diff --git a/src/mame/drivers/tk2000.cpp b/src/mame/drivers/tk2000.cpp index c0bcd428d6e..1c9d0113f7a 100644 --- a/src/mame/drivers/tk2000.cpp +++ b/src/mame/drivers/tk2000.cpp @@ -593,7 +593,7 @@ MACHINE_CONFIG_START(tk2000_state::tk2000) MCFG_PALETTE_INIT_OWNER(tk2000_state, tk2000) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD(A2_SPEAKER_TAG, SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) diff --git a/src/mame/drivers/tm990189.cpp b/src/mame/drivers/tm990189.cpp index 90a98eb1f4e..c70b433b04a 100644 --- a/src/mame/drivers/tm990189.cpp +++ b/src/mame/drivers/tm990189.cpp @@ -823,7 +823,7 @@ MACHINE_CONFIG_START(tm990189_state::tm990_189) MCFG_DEFAULT_LAYOUT(layout_tm990189) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) @@ -884,7 +884,7 @@ MACHINE_CONFIG_START(tm990189_state::tm990_189_v) MCFG_DEFAULT_LAYOUT(layout_tm990189v) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) /* one two-level buzzer */ diff --git a/src/mame/drivers/tmaster.cpp b/src/mame/drivers/tmaster.cpp index 42b695597a3..11be568539c 100644 --- a/src/mame/drivers/tmaster.cpp +++ b/src/mame/drivers/tmaster.cpp @@ -393,7 +393,7 @@ MACHINE_CONFIG_START(tmaster_state::tm) MCFG_CESBLIT_IRQ_CB(WRITELINE(*this, tmaster_state, blitter_irq_callback)) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, XTAL(24'000'000) / 16, okim6295_device::PIN7_HIGH) /* 1.5Mhz? clock frequency & pin 7 not verified */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/tmc1800.cpp b/src/mame/drivers/tmc1800.cpp index 175effaa81e..bcd09b0bf5f 100644 --- a/src/mame/drivers/tmc1800.cpp +++ b/src/mame/drivers/tmc1800.cpp @@ -728,7 +728,7 @@ MACHINE_CONFIG_START(tmc1800_state::tmc1800) tmc1800_video(config); // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) @@ -759,7 +759,7 @@ MACHINE_CONFIG_START(osc1000b_state::osc1000b) osc1000b_video(config); // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mame/drivers/tmc2000e.cpp b/src/mame/drivers/tmc2000e.cpp index 6a7bece2f4b..f396c5412b1 100644 --- a/src/mame/drivers/tmc2000e.cpp +++ b/src/mame/drivers/tmc2000e.cpp @@ -295,7 +295,7 @@ MACHINE_CONFIG_START(tmc2000e_state::tmc2000e) MCFG_SCREEN_UPDATE_DEVICE(CDP1864_TAG, cdp1864_device, screen_update) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_CDP1864_ADD(CDP1864_TAG, SCREEN_TAG, XTAL(1'750'000), GND, INPUTLINE(CDP1802_TAG, COSMAC_INPUT_LINE_INT), INPUTLINE(CDP1802_TAG, COSMAC_INPUT_LINE_DMAOUT), INPUTLINE(CDP1802_TAG, COSMAC_INPUT_LINE_EF1), NOOP, READLINE(*this, tmc2000e_state, rdata_r), READLINE(*this, tmc2000e_state, bdata_r), READLINE(*this, tmc2000e_state, gdata_r)) MCFG_CDP1864_CHROMINANCE(RES_K(2.2), RES_K(1), RES_K(5.1), RES_K(4.7)) // unverified MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mame/drivers/tmmjprd.cpp b/src/mame/drivers/tmmjprd.cpp index f4d1daa65a8..154906757dd 100644 --- a/src/mame/drivers/tmmjprd.cpp +++ b/src/mame/drivers/tmmjprd.cpp @@ -810,7 +810,8 @@ MACHINE_CONFIG_START(tmmjprd_state::tmmjprd) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_I5000_SND_ADD("i5000snd", XTAL(40'000'000)) MCFG_SOUND_ROUTE(0, "rspeaker", 1.00) diff --git a/src/mame/drivers/tmnt.cpp b/src/mame/drivers/tmnt.cpp index 6ecc0f65501..9e167e5d15b 100644 --- a/src/mame/drivers/tmnt.cpp +++ b/src/mame/drivers/tmnt.cpp @@ -1953,7 +1953,7 @@ MACHINE_CONFIG_START(tmnt_state::cuebrick) MCFG_K051960_PLANEORDER(K051960_PLANEORDER_MIA) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2151, XTAL(3'579'545)) MCFG_YM2151_IRQ_HANDLER(INPUTLINE("maincpu", M68K_IRQ_6)) @@ -2005,7 +2005,7 @@ MACHINE_CONFIG_START(tmnt_state::mia) MCFG_K051960_PLANEORDER(K051960_PLANEORDER_MIA) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -2071,7 +2071,7 @@ MACHINE_CONFIG_START(tmnt_state::tmnt) MCFG_K051960_PLANEORDER(K051960_PLANEORDER_MIA) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -2137,7 +2137,7 @@ MACHINE_CONFIG_START(tmnt_state::punkshot) MCFG_K053251_ADD("k053251") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2151, XTAL(3'579'545)) MCFG_SOUND_ROUTE(0, "mono", 1.0) @@ -2192,7 +2192,8 @@ MACHINE_CONFIG_START(tmnt_state::lgtnfght) MCFG_K053251_ADD("k053251") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2151, XTAL(3'579'545)) MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) @@ -2253,7 +2254,8 @@ MACHINE_CONFIG_START(tmnt_state::blswhstl) MCFG_K054000_ADD("k054000") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2151, XTAL(3'579'545)) MCFG_SOUND_ROUTE(0, "lspeaker", 0.70) @@ -2333,7 +2335,8 @@ MACHINE_CONFIG_START(tmnt_state::glfgreat) MCFG_K053251_ADD("k053251") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_K053260_ADD("k053260", XTAL(3'579'545)) MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) @@ -2400,7 +2403,8 @@ MACHINE_CONFIG_START(tmnt_state::prmrsocr) MCFG_K053251_ADD("k053251") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_8_ADD("soundlatch2") @@ -2464,7 +2468,8 @@ MACHINE_CONFIG_START(tmnt_state::tmnt2) MCFG_K053251_ADD("k053251") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2151, XTAL(3'579'545)) MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) @@ -2523,7 +2528,8 @@ MACHINE_CONFIG_START(tmnt_state::ssriders) MCFG_K053251_ADD("k053251") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2151, XTAL(3'579'545)) MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) @@ -2574,7 +2580,8 @@ MACHINE_CONFIG_START(tmnt_state::sunsetbl) MCFG_K053251_ADD("k053251") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("oki", OKIM6295, 1056000, okim6295_device::PIN7_HIGH) // clock frequency & pin 7 not verified MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 1.0) @@ -2625,7 +2632,8 @@ MACHINE_CONFIG_START(tmnt_state::thndrx2) MCFG_K054000_ADD("k054000") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2151, XTAL(3'579'545)) MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) diff --git a/src/mame/drivers/tnzs.cpp b/src/mame/drivers/tnzs.cpp index 8509b79f839..20a3f4ead24 100644 --- a/src/mame/drivers/tnzs.cpp +++ b/src/mame/drivers/tnzs.cpp @@ -1565,7 +1565,7 @@ MACHINE_CONFIG_START(tnzs_base_state::tnzs_base) MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MACHINE_CONFIG_END MACHINE_CONFIG_START(tnzs_mcu_state::tnzs) diff --git a/src/mame/drivers/toaplan1.cpp b/src/mame/drivers/toaplan1.cpp index a6d41236a5b..2f29b4f014a 100644 --- a/src/mame/drivers/toaplan1.cpp +++ b/src/mame/drivers/toaplan1.cpp @@ -1946,7 +1946,7 @@ MACHINE_CONFIG_START(toaplan1_rallybik_state::rallybik) MCFG_VIDEO_START_OVERRIDE(toaplan1_rallybik_state,rallybik) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM3812, XTAL(28'000'000)/8) MCFG_YM3812_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) @@ -1983,7 +1983,7 @@ MACHINE_CONFIG_START(toaplan1_state::truxton) MCFG_VIDEO_START_OVERRIDE(toaplan1_state,toaplan1) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM3812, XTAL(28'000'000)/8) MCFG_YM3812_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) @@ -2020,7 +2020,7 @@ MACHINE_CONFIG_START(toaplan1_state::hellfire) MCFG_VIDEO_START_OVERRIDE(toaplan1_state,toaplan1) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM3812, XTAL(28'000'000)/8) MCFG_YM3812_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) @@ -2057,7 +2057,7 @@ MACHINE_CONFIG_START(toaplan1_state::zerowing) MCFG_VIDEO_START_OVERRIDE(toaplan1_state,toaplan1) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM3812, XTAL(28'000'000)/8) MCFG_YM3812_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) @@ -2099,7 +2099,7 @@ MACHINE_CONFIG_START(toaplan1_state::demonwld) MCFG_VIDEO_START_OVERRIDE(toaplan1_state,toaplan1) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM3812, XTAL(28'000'000)/8) MCFG_YM3812_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) @@ -2136,7 +2136,7 @@ MACHINE_CONFIG_START(toaplan1_state::samesame) MCFG_VIDEO_START_OVERRIDE(toaplan1_state,toaplan1) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM3812, XTAL(28'000'000)/8) MCFG_YM3812_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) @@ -2173,7 +2173,7 @@ MACHINE_CONFIG_START(toaplan1_state::outzone) MCFG_VIDEO_START_OVERRIDE(toaplan1_state,toaplan1) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM3812, XTAL(28'000'000)/8) MCFG_YM3812_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) @@ -2210,7 +2210,7 @@ MACHINE_CONFIG_START(toaplan1_state::outzonecv) MCFG_VIDEO_START_OVERRIDE(toaplan1_state,toaplan1) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM3812, XTAL(28'000'000)/8) MCFG_YM3812_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) @@ -2247,7 +2247,7 @@ MACHINE_CONFIG_START(toaplan1_state::vimana) MCFG_VIDEO_START_OVERRIDE(toaplan1_state,toaplan1) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM3812, XTAL(28'000'000)/8) /* verified on pcb */ MCFG_YM3812_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) diff --git a/src/mame/drivers/toaplan2.cpp b/src/mame/drivers/toaplan2.cpp index 5f2071556d0..7e2dced7d46 100644 --- a/src/mame/drivers/toaplan2.cpp +++ b/src/mame/drivers/toaplan2.cpp @@ -3272,7 +3272,7 @@ MACHINE_CONFIG_START(toaplan2_state::tekipaki) MCFG_VIDEO_START_OVERRIDE(toaplan2_state,toaplan2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -3315,7 +3315,7 @@ MACHINE_CONFIG_START(toaplan2_state::ghox) MCFG_VIDEO_START_OVERRIDE(toaplan2_state,toaplan2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2151, XTAL(27'000'000)/8) /* verified on pcb */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -3406,7 +3406,7 @@ MACHINE_CONFIG_START(toaplan2_state::dogyuun) MCFG_VIDEO_START_OVERRIDE(toaplan2_state,toaplan2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2151, XTAL(27'000'000)/8) /* verified on pcb */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.5) @@ -3452,7 +3452,7 @@ MACHINE_CONFIG_START(toaplan2_state::kbash) MCFG_VIDEO_START_OVERRIDE(toaplan2_state,toaplan2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2151, XTAL(27'000'000)/8) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.5) @@ -3489,7 +3489,7 @@ MACHINE_CONFIG_START(toaplan2_state::kbash2) MCFG_VIDEO_START_OVERRIDE(toaplan2_state,toaplan2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki1", OKIM6295, XTAL(16'000'000)/16, okim6295_device::PIN7_HIGH) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -3525,7 +3525,8 @@ MACHINE_CONFIG_START(toaplan2_state::truxton2) /* sound hardware */ #ifdef TRUXTON2_STEREO // music data is stereo... - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2151, XTAL(27'000'000)/8) MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) @@ -3535,7 +3536,7 @@ MACHINE_CONFIG_START(toaplan2_state::truxton2) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 1.0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 1.0) #else // ...but the hardware is mono - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2151, XTAL(27'000'000)/8) /* verified on pcb */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -3580,7 +3581,7 @@ MACHINE_CONFIG_START(toaplan2_state::pipibibs) MCFG_VIDEO_START_OVERRIDE(toaplan2_state,toaplan2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM3812, XTAL(27'000'000)/8) /* verified on pcb */ MCFG_YM3812_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) @@ -3623,7 +3624,7 @@ MACHINE_CONFIG_START(toaplan2_state::pipibibsbl) MCFG_VIDEO_START_OVERRIDE(toaplan2_state,toaplan2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM3812, XTAL(27'000'000)/8) MCFG_YM3812_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) @@ -3702,7 +3703,7 @@ MACHINE_CONFIG_START(toaplan2_state::fixeight) MCFG_VIDEO_START_OVERRIDE(toaplan2_state,truxton2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2151, XTAL(27'000'000)/8) /* verified on pcb */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.5) @@ -3741,7 +3742,7 @@ MACHINE_CONFIG_START(toaplan2_state::fixeightbl) MCFG_VIDEO_START_OVERRIDE(toaplan2_state,fixeightbl) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, XTAL(14'000'000)/16, okim6295_device::PIN7_LOW) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -3781,7 +3782,7 @@ MACHINE_CONFIG_START(toaplan2_state::vfive) MCFG_VIDEO_START_OVERRIDE(toaplan2_state,toaplan2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2151, XTAL(27'000'000)/8) /* verified on pcb */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -3825,7 +3826,7 @@ MACHINE_CONFIG_START(toaplan2_state::batsugun) MCFG_VIDEO_START_OVERRIDE(toaplan2_state,toaplan2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2151, XTAL(27'000'000)/8) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.5) @@ -3864,7 +3865,7 @@ MACHINE_CONFIG_START(toaplan2_state::pwrkick) MCFG_VIDEO_START_OVERRIDE(toaplan2_state,toaplan2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); /* empty YM2151 socket*/ MCFG_DEVICE_ADD("oki", OKIM6295, XTAL(27'000'000)/8, okim6295_device::PIN7_HIGH) // not confirmed MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.5) @@ -3897,7 +3898,7 @@ MACHINE_CONFIG_START(toaplan2_state::othldrby) MCFG_VIDEO_START_OVERRIDE(toaplan2_state,toaplan2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, XTAL(27'000'000)/8, okim6295_device::PIN7_HIGH) // not confirmed MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.5) @@ -3927,7 +3928,7 @@ MACHINE_CONFIG_START(toaplan2_state::enmadaio) MCFG_VIDEO_START_OVERRIDE(toaplan2_state,toaplan2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2151, XTAL(27'000'000)/8) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.5) @@ -3964,7 +3965,7 @@ MACHINE_CONFIG_START(toaplan2_state::snowbro2) MCFG_VIDEO_START_OVERRIDE(toaplan2_state,toaplan2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2151, XTAL(27'000'000)/8) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -4009,7 +4010,7 @@ MACHINE_CONFIG_START(toaplan2_state::mahoudai) MCFG_VIDEO_START_OVERRIDE(toaplan2_state,bgaregga) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2151, XTAL(27'000'000)/8) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -4054,7 +4055,7 @@ MACHINE_CONFIG_START(toaplan2_state::shippumd) MCFG_VIDEO_START_OVERRIDE(toaplan2_state,bgaregga) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2151, XTAL(27'000'000)/8) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -4098,7 +4099,7 @@ MACHINE_CONFIG_START(toaplan2_state::bgaregga) MCFG_VIDEO_START_OVERRIDE(toaplan2_state,bgaregga) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", 0)) @@ -4159,7 +4160,7 @@ MACHINE_CONFIG_START(toaplan2_state::batrider) MCFG_VIDEO_START_OVERRIDE(toaplan2_state,batrider) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_8_ADD("soundlatch2") @@ -4220,7 +4221,7 @@ MACHINE_CONFIG_START(toaplan2_state::bbakraid) MCFG_VIDEO_START_OVERRIDE(toaplan2_state,batrider) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_8_ADD("soundlatch2") diff --git a/src/mame/drivers/toki.cpp b/src/mame/drivers/toki.cpp index 98c32b14ece..484acfb07cb 100644 --- a/src/mame/drivers/toki.cpp +++ b/src/mame/drivers/toki.cpp @@ -522,7 +522,7 @@ MACHINE_CONFIG_START(toki_state::toki) /* KOYO 20.000MHz near the cpu */ MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM3812, XTAL(14'318'181)/4) MCFG_YM3812_IRQ_HANDLER(WRITELINE("seibu_sound", seibu_sound_device, fm_irqhandler)) @@ -575,7 +575,7 @@ MACHINE_CONFIG_START(toki_state::tokib) MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/tomcat.cpp b/src/mame/drivers/tomcat.cpp index b7163c0b178..4771c984df5 100644 --- a/src/mame/drivers/tomcat.cpp +++ b/src/mame/drivers/tomcat.cpp @@ -372,7 +372,8 @@ MACHINE_CONFIG_START(tomcat_state::tomcat) MCFG_DEVICE_ADD("avg", AVG_TOMCAT, 0) MCFG_AVGDVG_VECTOR("vector") - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("pokey1", POKEY, XTAL(14'318'181) / 8) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.20) diff --git a/src/mame/drivers/tonton.cpp b/src/mame/drivers/tonton.cpp index d6edb8964df..1d308ec4146 100644 --- a/src/mame/drivers/tonton.cpp +++ b/src/mame/drivers/tonton.cpp @@ -238,7 +238,7 @@ MACHINE_CONFIG_START(tonton_state::tonton) MCFG_TICKET_DISPENSER_ADD("hopper", attotime::from_msec(HOPPER_PULSE), TICKET_MOTOR_ACTIVE_HIGH, TICKET_STATUS_ACTIVE_LOW ) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", YM2149, YM2149_CLOCK) /* Guess. According to other MSX2 based gambling games */ /* AY8910: Port A out: FF diff --git a/src/mame/drivers/toobin.cpp b/src/mame/drivers/toobin.cpp index db052459a9b..4637acf767d 100644 --- a/src/mame/drivers/toobin.cpp +++ b/src/mame/drivers/toobin.cpp @@ -230,7 +230,8 @@ MACHINE_CONFIG_START(toobin_state::toobin) MCFG_PALETTE_ADD("palette", 1024) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_ATARI_JSA_I_ADD("jsa", WRITELINE(*this, toobin_state, sound_int_write_line)) MCFG_ATARI_JSA_TEST_PORT("FF9000", 12) diff --git a/src/mame/drivers/topspeed.cpp b/src/mame/drivers/topspeed.cpp index 33be5218afa..66901fb5c2b 100644 --- a/src/mame/drivers/topspeed.cpp +++ b/src/mame/drivers/topspeed.cpp @@ -629,7 +629,8 @@ MACHINE_CONFIG_START(topspeed_state::topspeed) MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR) // sound hardware - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2151, XTAL(16'000'000) / 4) MCFG_YM2151_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) diff --git a/src/mame/drivers/toratora.cpp b/src/mame/drivers/toratora.cpp index 700d9fae1d3..24611a61e6d 100644 --- a/src/mame/drivers/toratora.cpp +++ b/src/mame/drivers/toratora.cpp @@ -426,7 +426,7 @@ MACHINE_CONFIG_START(toratora_state::toratora) MCFG_SCREEN_UPDATE_DRIVER(toratora_state, screen_update_toratora) /* audio hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("sn1", SN76477) MCFG_SN76477_NOISE_PARAMS(RES_K(47), RES_K(470), CAP_P(470)) // noise + filter diff --git a/src/mame/drivers/tourtabl.cpp b/src/mame/drivers/tourtabl.cpp index 517ab55e403..5c5edd5bbbe 100644 --- a/src/mame/drivers/tourtabl.cpp +++ b/src/mame/drivers/tourtabl.cpp @@ -181,7 +181,7 @@ MACHINE_CONFIG_START(tourtabl_state::tourtabl) MCFG_SCREEN_PALETTE("tia_video:palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_TIA_ADD("tia", MASTER_CLOCK/114) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/tourvis.cpp b/src/mame/drivers/tourvis.cpp index 439c637fbe5..c628c53ab74 100644 --- a/src/mame/drivers/tourvis.cpp +++ b/src/mame/drivers/tourvis.cpp @@ -423,7 +423,8 @@ MACHINE_CONFIG_START(tourvision_state::tourvision) MCFG_I8155_OUT_PORTC_CB(WRITE8(*this, tourvision_state, tourvision_i8155_c_w)) MCFG_I8155_OUT_TIMEROUT_CB(WRITELINE(*this, tourvision_state, tourvision_timer_out)) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker","rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("c6280", C6280, PCE_MAIN_CLOCK/6) MCFG_C6280_CPU("maincpu") MCFG_SOUND_ROUTE(0, "lspeaker", 1.00) diff --git a/src/mame/drivers/toypop.cpp b/src/mame/drivers/toypop.cpp index 3f5490d5389..abc7b7bf544 100644 --- a/src/mame/drivers/toypop.cpp +++ b/src/mame/drivers/toypop.cpp @@ -707,7 +707,7 @@ MACHINE_CONFIG_START(namcos16_state::liblrabl) MCFG_PALETTE_INIT_OWNER(namcos16_state, toypop) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("namco", NAMCO_15XX, 24000) MCFG_NAMCO_AUDIO_VOICES(8) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/tp84.cpp b/src/mame/drivers/tp84.cpp index e2b01d1a4a2..1243d1c0d0d 100644 --- a/src/mame/drivers/tp84.cpp +++ b/src/mame/drivers/tp84.cpp @@ -370,7 +370,7 @@ MACHINE_CONFIG_START(tp84_state::tp84) MCFG_PALETTE_INIT_OWNER(tp84_state, tp84) /* audio hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/trackfld.cpp b/src/mame/drivers/trackfld.cpp index 3120f904307..064972d008b 100644 --- a/src/mame/drivers/trackfld.cpp +++ b/src/mame/drivers/trackfld.cpp @@ -944,7 +944,7 @@ MACHINE_CONFIG_START(trackfld_state::trackfld) MCFG_VIDEO_START_OVERRIDE(trackfld_state,trackfld) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -1020,7 +1020,7 @@ MACHINE_CONFIG_START(trackfld_state::yieartf) MCFG_VIDEO_START_OVERRIDE(trackfld_state,trackfld) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/tranz330.cpp b/src/mame/drivers/tranz330.cpp index 1d75c22be54..d9bc53824f5 100644 --- a/src/mame/drivers/tranz330.cpp +++ b/src/mame/drivers/tranz330.cpp @@ -182,7 +182,7 @@ void tranz330_state::tranz330(machine_config &config) config.m_default_layout = &layout_tranz330; // sound - SPEAKER(config, "mono").standard_mono(); + SPEAKER(config, "mono").front_center(); SPEAKER_SOUND(config, "speaker", 0) .add_route(ALL_OUTPUTS, "mono", 0.25); } diff --git a/src/mame/drivers/triplhnt.cpp b/src/mame/drivers/triplhnt.cpp index f1153aa1685..5167d3635c7 100644 --- a/src/mame/drivers/triplhnt.cpp +++ b/src/mame/drivers/triplhnt.cpp @@ -326,7 +326,7 @@ MACHINE_CONFIG_START(triplhnt_state::triplhnt) MCFG_PALETTE_INIT_OWNER(triplhnt_state, triplhnt) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("samples", SAMPLES) MCFG_SAMPLES_CHANNELS(2) /* 2 channels */ diff --git a/src/mame/drivers/trs80.cpp b/src/mame/drivers/trs80.cpp index 8c045d5698b..765cd95205d 100644 --- a/src/mame/drivers/trs80.cpp +++ b/src/mame/drivers/trs80.cpp @@ -623,7 +623,7 @@ MACHINE_CONFIG_START(trs80_state::trs80) // the original model I, level I, MCFG_PALETTE_ADD_MONOCHROME("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") diff --git a/src/mame/drivers/trs80dt1.cpp b/src/mame/drivers/trs80dt1.cpp index 933da7140d7..e6b4ea0e586 100644 --- a/src/mame/drivers/trs80dt1.cpp +++ b/src/mame/drivers/trs80dt1.cpp @@ -340,7 +340,7 @@ MACHINE_CONFIG_START(trs80dt1_state::trs80dt1) MCFG_7474_COMP_OUTPUT_CB(INPUTLINE("maincpu", MCS51_INT1_LINE)) MCFG_DEVCB_INVERT // /Q connects directly to /INT1, so we need to invert? /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, 2000) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) MACHINE_CONFIG_END diff --git a/src/mame/drivers/truco.cpp b/src/mame/drivers/truco.cpp index bde86316cba..8b4a92e060d 100644 --- a/src/mame/drivers/truco.cpp +++ b/src/mame/drivers/truco.cpp @@ -453,7 +453,7 @@ MACHINE_CONFIG_START(truco_state::truco) MCFG_MC6845_CHAR_WIDTH(4) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.4) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) diff --git a/src/mame/drivers/trucocl.cpp b/src/mame/drivers/trucocl.cpp index 69e99bce43b..343654cd9a6 100644 --- a/src/mame/drivers/trucocl.cpp +++ b/src/mame/drivers/trucocl.cpp @@ -165,7 +165,7 @@ MACHINE_CONFIG_START(trucocl_state::trucocl) MCFG_PALETTE_INIT_OWNER(trucocl_state, trucocl) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) // unknown DAC MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) diff --git a/src/mame/drivers/trvmadns.cpp b/src/mame/drivers/trvmadns.cpp index 1e6fef491c2..8b8a731992c 100644 --- a/src/mame/drivers/trvmadns.cpp +++ b/src/mame/drivers/trvmadns.cpp @@ -405,7 +405,7 @@ MACHINE_CONFIG_START(trvmadns_state::trvmadns) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, XTAL(10'000'000)/2/4) //? MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/trvquest.cpp b/src/mame/drivers/trvquest.cpp index e77a7fecbdc..b8497a552b9 100644 --- a/src/mame/drivers/trvquest.cpp +++ b/src/mame/drivers/trvquest.cpp @@ -192,7 +192,7 @@ MACHINE_CONFIG_START(gameplan_state::trvquest) trvquest_video(config); /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay1", AY8910, XTAL(6'000'000)/2) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mame/drivers/tryout.cpp b/src/mame/drivers/tryout.cpp index e2a6741cbfd..14c0d68ad3c 100644 --- a/src/mame/drivers/tryout.cpp +++ b/src/mame/drivers/tryout.cpp @@ -214,7 +214,7 @@ MACHINE_CONFIG_START(tryout_state::tryout) MCFG_PALETTE_INIT_OWNER(tryout_state, tryout) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/tsamurai.cpp b/src/mame/drivers/tsamurai.cpp index 785a5e9dba3..e86e47f8bde 100644 --- a/src/mame/drivers/tsamurai.cpp +++ b/src/mame/drivers/tsamurai.cpp @@ -753,7 +753,7 @@ MACHINE_CONFIG_START(tsamurai_state::tsamurai) MCFG_VIDEO_START_OVERRIDE(tsamurai_state,tsamurai) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, XTAL(24'000'000)/8) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.1) @@ -801,7 +801,7 @@ MACHINE_CONFIG_START(tsamurai_state::vsgongf) MCFG_VIDEO_START_OVERRIDE(tsamurai_state,vsgongf) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -857,7 +857,7 @@ MACHINE_CONFIG_START(tsamurai_state::m660) MCFG_VIDEO_START_OVERRIDE(tsamurai_state,m660) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, XTAL(24'000'000)/8) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.1) diff --git a/src/mame/drivers/tsispch.cpp b/src/mame/drivers/tsispch.cpp index 7d7b6ea2dd0..69579bcd40d 100644 --- a/src/mame/drivers/tsispch.cpp +++ b/src/mame/drivers/tsispch.cpp @@ -405,7 +405,7 @@ MACHINE_CONFIG_START(tsispch_state::prose2k) MCFG_I8251_TXEMPTY_HANDLER(WRITELINE(*this, tsispch_state, i8251_txempty_int)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_12BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 1.0) // unknown DAC (TODO: correctly figure out how the DAC works; apparently it is connected to the serial output of the upd7720, which will be "fun" to connect up) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT) diff --git a/src/mame/drivers/ttchamp.cpp b/src/mame/drivers/ttchamp.cpp index 02249af946c..a1dff777f5a 100644 --- a/src/mame/drivers/ttchamp.cpp +++ b/src/mame/drivers/ttchamp.cpp @@ -662,7 +662,7 @@ MACHINE_CONFIG_START(ttchamp_state::ttchamp) MCFG_NVRAM_ADD_0FILL("backram") - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, 8000000/8, okim6295_device::PIN7_HIGH) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/tubep.cpp b/src/mame/drivers/tubep.cpp index b7671cfef27..74d37900790 100644 --- a/src/mame/drivers/tubep.cpp +++ b/src/mame/drivers/tubep.cpp @@ -864,7 +864,7 @@ MACHINE_CONFIG_START(tubep_state::tubep) MCFG_PALETTE_INIT_OWNER(tubep_state,tubep) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay1", AY8910, 19968000 / 8 / 2) MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(*this, tubep_state, ay8910_portA_0_w)) /* write port A */ @@ -937,7 +937,7 @@ MACHINE_CONFIG_START(tubep_state::rjammer) MCFG_PALETTE_INIT_OWNER(tubep_state,rjammer) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay1", AY8910, 19968000 / 8 / 2) MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(*this, tubep_state, ay8910_portA_0_w)) /* write port A */ diff --git a/src/mame/drivers/tugboat.cpp b/src/mame/drivers/tugboat.cpp index 0e5f3b63d76..847a98d3ca4 100644 --- a/src/mame/drivers/tugboat.cpp +++ b/src/mame/drivers/tugboat.cpp @@ -385,7 +385,7 @@ MACHINE_CONFIG_START(tugboat_state::tugboat) MCFG_PALETTE_INIT_OWNER(tugboat_state, tugboat) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8912, XTAL(10'000'000)/8) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.35) diff --git a/src/mame/drivers/tumbleb.cpp b/src/mame/drivers/tumbleb.cpp index 1c0d507720f..623cd0a5332 100644 --- a/src/mame/drivers/tumbleb.cpp +++ b/src/mame/drivers/tumbleb.cpp @@ -2050,7 +2050,7 @@ MACHINE_CONFIG_START(tumbleb_state::tumblepb) MCFG_VIDEO_START_OVERRIDE(tumbleb_state,tumblepb) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, 8000000/10, okim6295_device::PIN7_HIGH) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.70) @@ -2088,7 +2088,7 @@ MACHINE_CONFIG_START(tumbleb_state::tumbleb2) MCFG_VIDEO_START_OVERRIDE(tumbleb_state,tumblepb) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, 8000000/10, okim6295_device::PIN7_HIGH) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.70) @@ -2129,7 +2129,7 @@ MACHINE_CONFIG_START(tumbleb_state::jumpkids) MCFG_VIDEO_START_OVERRIDE(tumbleb_state,tumblepb) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -2169,7 +2169,7 @@ MACHINE_CONFIG_START(tumbleb_state::fncywld) MCFG_VIDEO_START_OVERRIDE(tumbleb_state,fncywld) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2151, 32220000/9) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.20) @@ -2229,7 +2229,7 @@ MACHINE_CONFIG_START(tumbleb_state::htchctch) MCFG_VIDEO_START_OVERRIDE(tumbleb_state,tumblepb) /* sound hardware - same as hyperpac */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -2343,7 +2343,7 @@ MACHINE_CONFIG_START(tumbleb_state::suprtrio) MCFG_VIDEO_START_OVERRIDE(tumbleb_state,suprtrio) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -2382,7 +2382,7 @@ MACHINE_CONFIG_START(tumbleb_state::pangpang) MCFG_VIDEO_START_OVERRIDE(tumbleb_state,pangpang) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, 8000000/10, okim6295_device::PIN7_HIGH) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.70) diff --git a/src/mame/drivers/tunhunt.cpp b/src/mame/drivers/tunhunt.cpp index dda1b529f08..91eb0bb86f5 100644 --- a/src/mame/drivers/tunhunt.cpp +++ b/src/mame/drivers/tunhunt.cpp @@ -291,7 +291,7 @@ MACHINE_CONFIG_START(tunhunt_state::tunhunt) MCFG_PALETTE_INIT_OWNER(tunhunt_state, tunhunt) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("pokey1", POKEY, 12.096_MHz_XTAL/10) MCFG_POKEY_ALLPOT_R_CB(IOPORT("DSW")) diff --git a/src/mame/drivers/turrett.cpp b/src/mame/drivers/turrett.cpp index bc4f2e5c39f..07a711e2034 100644 --- a/src/mame/drivers/turrett.cpp +++ b/src/mame/drivers/turrett.cpp @@ -376,7 +376,8 @@ MACHINE_CONFIG_START(turrett_state::turrett) MCFG_PALETTE_ADD_RRRRRGGGGGBBBBB("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ttsound", TURRETT, R3041_CLOCK) // ? MCFG_DEVICE_ADDRESS_MAP(0, turrett_sound_map) diff --git a/src/mame/drivers/tutor.cpp b/src/mame/drivers/tutor.cpp index 33915ba8704..0d4a12b652b 100644 --- a/src/mame/drivers/tutor.cpp +++ b/src/mame/drivers/tutor.cpp @@ -755,7 +755,7 @@ MACHINE_CONFIG_START(tutor_state::tutor) MCFG_SCREEN_UPDATE_DEVICE( "tms9928a", tms9928a_device, screen_update ) /* sound */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("sn76489a", SN76489A, 3579545) /* 3.579545 MHz */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75) diff --git a/src/mame/drivers/tv910.cpp b/src/mame/drivers/tv910.cpp index 23ded4031d9..8514a60233d 100644 --- a/src/mame/drivers/tv910.cpp +++ b/src/mame/drivers/tv910.cpp @@ -552,7 +552,7 @@ MACHINE_CONFIG_START(tv910_state::tv910) MCFG_RS232_DCD_HANDLER(WRITELINE(ACIA_TAG, mos6551_device, write_dcd)) MCFG_RS232_CTS_HANDLER(WRITELINE(ACIA_TAG, mos6551_device, write_cts)) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("bell", BEEP, MASTER_CLOCK / 8400) // 1620 Hz (Row 10 signal) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) MACHINE_CONFIG_END diff --git a/src/mame/drivers/tv912.cpp b/src/mame/drivers/tv912.cpp index ba51d3d952b..9d2d504ec4f 100644 --- a/src/mame/drivers/tv912.cpp +++ b/src/mame/drivers/tv912.cpp @@ -903,7 +903,7 @@ MACHINE_CONFIG_START(tv912_state::tv912) MCFG_DEVICE_ADD("rs232", RS232_PORT, default_rs232_devices, "loopback") - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beep", BEEP, XTAL(23'814'000) / 7 / 11 / 256) // nominally 1200 Hz MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) MACHINE_CONFIG_END diff --git a/src/mame/drivers/tv990.cpp b/src/mame/drivers/tv990.cpp index fd104f3828b..539e90b4c95 100644 --- a/src/mame/drivers/tv990.cpp +++ b/src/mame/drivers/tv990.cpp @@ -414,7 +414,7 @@ MACHINE_CONFIG_START(tv990_state::tv990) MCFG_NVRAM_ADD_0FILL("nvram") - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beep", BEEP, 1000); //whats the freq? MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) MACHINE_CONFIG_END diff --git a/src/mame/drivers/tvboy.cpp b/src/mame/drivers/tvboy.cpp index a61fcef179e..74c633c3e0a 100644 --- a/src/mame/drivers/tvboy.cpp +++ b/src/mame/drivers/tvboy.cpp @@ -95,7 +95,7 @@ MACHINE_CONFIG_START(tvboy_state::tvboyii) MCFG_SCREEN_PALETTE("tia_video:palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_TIA_ADD("tia", MASTER_CLOCK_PAL/114) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.90) diff --git a/src/mame/drivers/tvc.cpp b/src/mame/drivers/tvc.cpp index 075a6242ae7..fbee3d1c3e1 100644 --- a/src/mame/drivers/tvc.cpp +++ b/src/mame/drivers/tvc.cpp @@ -795,7 +795,7 @@ MACHINE_CONFIG_START(tvc_state::tvc) MCFG_RAM_EXTRA_OPTIONS("32K") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("custom", TVC_SOUND, 0) MCFG_TVC_SOUND_SNDINT_CALLBACK(WRITELINE(*this, tvc_state, int_ff_set)) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75) diff --git a/src/mame/drivers/tvgame.cpp b/src/mame/drivers/tvgame.cpp index 3818c501d3c..9015961aeef 100644 --- a/src/mame/drivers/tvgame.cpp +++ b/src/mame/drivers/tvgame.cpp @@ -115,7 +115,7 @@ MACHINE_CONFIG_START(tvgame_state::tvgame) MCFG_PALETTE_ADD_MONOCHROME("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/twin16.cpp b/src/mame/drivers/twin16.cpp index f8b5784e99b..aa2ed660833 100644 --- a/src/mame/drivers/twin16.cpp +++ b/src/mame/drivers/twin16.cpp @@ -681,7 +681,8 @@ MACHINE_CONFIG_START(twin16_state::twin16) MCFG_PALETTE_ENABLE_SHADOWS() // sound hardware - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -735,7 +736,8 @@ MACHINE_CONFIG_START(fround_state::fround) MCFG_PALETTE_ENABLE_SHADOWS() /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/twincobr.cpp b/src/mame/drivers/twincobr.cpp index 50cc0c7f480..75836b9f2b5 100644 --- a/src/mame/drivers/twincobr.cpp +++ b/src/mame/drivers/twincobr.cpp @@ -709,7 +709,7 @@ MACHINE_CONFIG_START(twincobr_state::twincobr) MCFG_VIDEO_START_OVERRIDE(twincobr_state,toaplan0) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM3812, XTAL(28'000'000)/8) MCFG_YM3812_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) diff --git a/src/mame/drivers/twinkle.cpp b/src/mame/drivers/twinkle.cpp index 4a21047c400..b6eabfdc5e1 100644 --- a/src/mame/drivers/twinkle.cpp +++ b/src/mame/drivers/twinkle.cpp @@ -1127,7 +1127,8 @@ MACHINE_CONFIG_START(twinkle_state::twinkle) MCFG_PSXGPU_ADD( "maincpu", "gpu", CXD8561Q, 0x200000, XTAL(53'693'175) ) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("speakerleft", "speakerright") + SPEAKER(config, "speakerleft").front_left(); + SPEAKER(config, "speakerright").front_right(); MCFG_SPU_ADD( "spu", XTAL(67'737'600)/2 ) MCFG_SOUND_ROUTE( 0, "speakerleft", 0.75 ) diff --git a/src/mame/drivers/twins.cpp b/src/mame/drivers/twins.cpp index a5ac53011a9..95ad4846c34 100644 --- a/src/mame/drivers/twins.cpp +++ b/src/mame/drivers/twins.cpp @@ -407,7 +407,7 @@ MACHINE_CONFIG_START(twins_state::twins) MCFG_PALETTE_ADD("palette", 0x100) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, 2000000) MCFG_AY8910_PORT_A_READ_CB(IOPORT("P1")) @@ -456,7 +456,7 @@ MACHINE_CONFIG_START(twins_state::twinsa) MCFG_24C02_ADD("i2cmem") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, XTAL(16'000'000)/8) /* verified on pcb */ MCFG_AY8910_PORT_A_READ_CB(IOPORT("P1")) @@ -581,7 +581,7 @@ MACHINE_CONFIG_START(twins_state::spider) MCFG_24C02_ADD("i2cmem") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, 2000000) MCFG_AY8910_PORT_A_READ_CB(IOPORT("P1")) diff --git a/src/mame/drivers/tx1.cpp b/src/mame/drivers/tx1.cpp index af561d92686..e515a96dfd5 100644 --- a/src/mame/drivers/tx1.cpp +++ b/src/mame/drivers/tx1.cpp @@ -664,9 +664,10 @@ MACHINE_CONFIG_START(tx1_state::tx1) MCFG_VIDEO_START_OVERRIDE(tx1_state,tx1) - MCFG_SPEAKER_STANDARD_STEREO("frontleft", "frontright") -// MCFG_SPEAKER_STANDARD_STEREO("rearleft", "rearright") /* Atari TX-1 TM262 manual shows 4 speakers (TX-1 Audio PCB Assembly A042016-01 A) */ - + SPEAKER(config, "frontleft", -0.2, 0.0, 1.0); + SPEAKER(config, "frontright", 0.2, 0.0, 1.0); +// SPEAKER(config, "rearleft", -0.2, 0.0, -0.5); /* Atari TX-1 TM262 manual shows 4 speakers (TX-1 Audio PCB Assembly A042016-01 A) */ +// SPEAKER(config, "rearright", 0.2, 0.0, -0.5); MCFG_DEVICE_ADD("aysnd", AY8910, TX1_PIXEL_CLOCK / 8) MCFG_AY8910_PORT_A_WRITE_CB(WRITE8("tx1", tx1_sound_device, ay8910_a_w)) @@ -726,8 +727,10 @@ MACHINE_CONFIG_START(tx1_state::buggyboy) MCFG_PALETTE_INIT_OWNER(tx1_state,buggyboy) MCFG_VIDEO_START_OVERRIDE(tx1_state,buggyboy) - MCFG_SPEAKER_STANDARD_STEREO("frontleft", "frontright") -// MCFG_SPEAKER_STANDARD_STEREO("rearleft", "rearright") + SPEAKER(config, "frontleft", -0.2, 0.0, 1.0); + SPEAKER(config, "frontright", 0.2, 0.0, 1.0); +// SPEAKER(config, "rearleft", -0.2, 0.0, -0.5); /* Atari TX-1 TM262 manual shows 4 speakers (TX-1 Audio PCB Assembly A042016-01 A) */ +// SPEAKER(config, "rearright", 0.2, 0.0, -0.5); MCFG_DEVICE_ADD("ym1", YM2149, BUGGYBOY_ZCLK / 4) MCFG_AY8910_PORT_A_WRITE_CB(WRITE8("buggyboy", buggyboy_sound_device, ym1_a_w)) @@ -772,8 +775,10 @@ MACHINE_CONFIG_START(tx1_state::buggybjr) MCFG_PALETTE_INIT_OWNER(tx1_state,buggyboy) MCFG_VIDEO_START_OVERRIDE(tx1_state,buggybjr) - MCFG_SPEAKER_STANDARD_STEREO("frontleft", "frontright") -// MCFG_SPEAKER_STANDARD_STEREO("rearleft", "rearright") + SPEAKER(config, "frontleft", -0.2, 0.0, 1.0); + SPEAKER(config, "frontright", 0.2, 0.0, 1.0); +// SPEAKER(config, "rearleft", -0.2, 0.0, -0.5); +// SPEAKER(config, "rearright", 0.2, 0.0, -0.5); MCFG_DEVICE_ADD("ym1", YM2149, BUGGYBOY_ZCLK / 4) /* YM2149 IC19 */ MCFG_AY8910_PORT_A_READ_CB(IOPORT("YM2149_IC19_A")) diff --git a/src/mame/drivers/uapce.cpp b/src/mame/drivers/uapce.cpp index 7ddadd9aec9..9cd44e29e17 100644 --- a/src/mame/drivers/uapce.cpp +++ b/src/mame/drivers/uapce.cpp @@ -331,7 +331,8 @@ MACHINE_CONFIG_START(uapce_state::uapce) MCFG_HUC6270_VRAM_SIZE(0x10000) MCFG_HUC6270_IRQ_CHANGED_CB(INPUTLINE("maincpu", 0)) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker","rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("c6280", C6280, PCE_MAIN_CLOCK/6) MCFG_C6280_CPU("maincpu") MCFG_SOUND_ROUTE(0, "lspeaker", 0.5) diff --git a/src/mame/drivers/ultraman.cpp b/src/mame/drivers/ultraman.cpp index 3fd94e9ed31..2bd5a329d2b 100644 --- a/src/mame/drivers/ultraman.cpp +++ b/src/mame/drivers/ultraman.cpp @@ -224,7 +224,8 @@ MACHINE_CONFIG_START(ultraman_state::ultraman) MCFG_K051316_CB(ultraman_state, zoom_callback_3) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/ultratnk.cpp b/src/mame/drivers/ultratnk.cpp index be8dc7afb54..d89310db163 100644 --- a/src/mame/drivers/ultratnk.cpp +++ b/src/mame/drivers/ultratnk.cpp @@ -318,7 +318,7 @@ MACHINE_CONFIG_START(ultratnk_state::ultratnk) MCFG_PALETTE_INIT_OWNER(ultratnk_state, ultratnk) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("discrete", DISCRETE, ultratnk_discrete) MCFG_SOUND_ROUTE(0, "mono", 1.0) diff --git a/src/mame/drivers/ultrsprt.cpp b/src/mame/drivers/ultrsprt.cpp index 8cbd70ef485..f29bd2d610d 100644 --- a/src/mame/drivers/ultrsprt.cpp +++ b/src/mame/drivers/ultrsprt.cpp @@ -268,7 +268,8 @@ MACHINE_CONFIG_START(ultrsprt_state::ultrsprt) MCFG_K056800_ADD("k056800", XTAL(18'432'000)) MCFG_K056800_INT_HANDLER(INPUTLINE("audiocpu", M68K_IRQ_6)) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("k054539", K054539, XTAL(18'432'000)) MCFG_K054539_TIMER_HANDLER(INPUTLINE("audiocpu", M68K_IRQ_5)) diff --git a/src/mame/drivers/umipoker.cpp b/src/mame/drivers/umipoker.cpp index 4663fed0490..494c40b5c44 100644 --- a/src/mame/drivers/umipoker.cpp +++ b/src/mame/drivers/umipoker.cpp @@ -722,7 +722,7 @@ MACHINE_CONFIG_START(umipoker_state::umipoker) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ym", YM3812, XTAL(14'318'181)/4) // 3.579545MHz MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/unichamp.cpp b/src/mame/drivers/unichamp.cpp index f228a37baff..8b13c5e847f 100644 --- a/src/mame/drivers/unichamp.cpp +++ b/src/mame/drivers/unichamp.cpp @@ -264,7 +264,7 @@ MACHINE_CONFIG_START(unichamp_state::unichamp) MCFG_PALETTE_INIT_OWNER(unichamp_state, unichamp) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GIC_ADD( "gic", XTAL(3'579'545), "screen", READ8(*this, unichamp_state, unichamp_gicram_r) ) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.40) diff --git a/src/mame/drivers/unico.cpp b/src/mame/drivers/unico.cpp index 26e9461a50d..be7306ee024 100644 --- a/src/mame/drivers/unico.cpp +++ b/src/mame/drivers/unico.cpp @@ -589,7 +589,8 @@ MACHINE_CONFIG_START(unico_state::burglarx) MCFG_PALETTE_ADD("palette", 8192) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM3812, XTAL(14'318'181)/4) /* 3.579545 MHz */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.40) @@ -626,7 +627,8 @@ MACHINE_CONFIG_START(zeropnt_state::zeropnt) MCFG_PALETTE_ADD("palette", 8192) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM3812, XTAL(14'318'181)/4) /* 3.579545 MHz */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.40) @@ -665,7 +667,8 @@ MACHINE_CONFIG_START(zeropnt2_state::zeropnt2) MCFG_PALETTE_ADD("palette", 8192) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2151, XTAL(14'318'181)/4) /* 3.579545 MHz */ MCFG_SOUND_ROUTE(0, "lspeaker", 0.70) diff --git a/src/mame/drivers/unior.cpp b/src/mame/drivers/unior.cpp index 4d71b0f1f67..048b4ad35f1 100644 --- a/src/mame/drivers/unior.cpp +++ b/src/mame/drivers/unior.cpp @@ -395,7 +395,7 @@ MACHINE_CONFIG_START(unior_state::unior) MCFG_PALETTE_INIT_OWNER(unior_state,unior) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/univac.cpp b/src/mame/drivers/univac.cpp index 9241c266aa2..8cf776b9a7b 100644 --- a/src/mame/drivers/univac.cpp +++ b/src/mame/drivers/univac.cpp @@ -351,7 +351,7 @@ MACHINE_CONFIG_START(univac_state::uts20) MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE("uart", z80sio_device, ctsb_w)) // FIXME: hacked in permanent loopback to pass test /* Sound */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, 950) // guess MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.05) MACHINE_CONFIG_END diff --git a/src/mame/drivers/unkhorse.cpp b/src/mame/drivers/unkhorse.cpp index 984f98e426b..154bc2cc0de 100644 --- a/src/mame/drivers/unkhorse.cpp +++ b/src/mame/drivers/unkhorse.cpp @@ -213,7 +213,7 @@ MACHINE_CONFIG_START(horse_state::horse) MCFG_PALETTE_ADD_3BIT_BGR("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END diff --git a/src/mame/drivers/upscope.cpp b/src/mame/drivers/upscope.cpp index 6b8c9c2eb9f..fb7c4dee579 100644 --- a/src/mame/drivers/upscope.cpp +++ b/src/mame/drivers/upscope.cpp @@ -287,7 +287,8 @@ MACHINE_CONFIG_START(upscope_state::upscope) MCFG_VIDEO_START_OVERRIDE(upscope_state,amiga) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("amiga", PAULA_8364, amiga_state::CLK_C1_NTSC) MCFG_SOUND_ROUTE(0, "rspeaker", 0.50) diff --git a/src/mame/drivers/usgames.cpp b/src/mame/drivers/usgames.cpp index 61af4fa703a..e181a5ac0ec 100644 --- a/src/mame/drivers/usgames.cpp +++ b/src/mame/drivers/usgames.cpp @@ -245,7 +245,7 @@ MACHINE_CONFIG_START(usgames_state::usg32) MCFG_MC6845_CHAR_WIDTH(8) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8912, 2000000) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30) diff --git a/src/mame/drivers/ut88.cpp b/src/mame/drivers/ut88.cpp index 97ee70367a9..e5d44ed739f 100644 --- a/src/mame/drivers/ut88.cpp +++ b/src/mame/drivers/ut88.cpp @@ -208,7 +208,7 @@ MACHINE_CONFIG_START(ut88_state::ut88) MCFG_GFXDECODE_ADD("gfxdecode", "palette", ut88 ) /* audio hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) @@ -242,7 +242,7 @@ MACHINE_CONFIG_START(ut88_state::ut88mini) MCFG_DEFAULT_LAYOUT(layout_ut88mini) /* Cassette */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) diff --git a/src/mame/drivers/uzebox.cpp b/src/mame/drivers/uzebox.cpp index dbad8ba8842..32e7f0010ad 100644 --- a/src/mame/drivers/uzebox.cpp +++ b/src/mame/drivers/uzebox.cpp @@ -300,7 +300,7 @@ MACHINE_CONFIG_START(uzebox_state::uzebox) MCFG_SCREEN_UPDATE_DRIVER(uzebox_state, screen_update_uzebox) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(0, "mono", 1.00) diff --git a/src/mame/drivers/v6809.cpp b/src/mame/drivers/v6809.cpp index c7273eb9a74..fba9e193ae3 100644 --- a/src/mame/drivers/v6809.cpp +++ b/src/mame/drivers/v6809.cpp @@ -295,7 +295,7 @@ MACHINE_CONFIG_START(v6809_state::v6809) MCFG_GFXDECODE_ADD("gfxdecode", "palette", v6809) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/vamphalf.cpp b/src/mame/drivers/vamphalf.cpp index 8b836e7f3ad..ebcb2946fcc 100644 --- a/src/mame/drivers/vamphalf.cpp +++ b/src/mame/drivers/vamphalf.cpp @@ -1063,7 +1063,8 @@ MACHINE_CONFIG_START(vamphalf_state::common) MACHINE_CONFIG_END MACHINE_CONFIG_START(vamphalf_state::sound_ym_oki) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2151, XTAL(28'000'000)/8) /* 3.5MHz */ MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) @@ -1082,7 +1083,8 @@ MACHINE_CONFIG_START(vamphalf_state::sound_ym_banked_oki) MACHINE_CONFIG_END MACHINE_CONFIG_START(vamphalf_state::sound_suplup) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2151, XTAL(14'318'181)/4) /* 3.579545 MHz */ MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) @@ -1095,7 +1097,8 @@ MACHINE_CONFIG_END MACHINE_CONFIG_START(vamphalf_state::sound_qs1000) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(WRITELINE("qs1000", qs1000_device, set_irq)) @@ -1237,7 +1240,8 @@ MACHINE_CONFIG_START(vamphalf_state::aoh) MCFG_GFXDECODE_ADD("gfxdecode", "palette", vamphalf) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2151, XTAL(3'579'545)) MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) diff --git a/src/mame/drivers/vaportra.cpp b/src/mame/drivers/vaportra.cpp index cc97e006dae..5b7e4896a94 100644 --- a/src/mame/drivers/vaportra.cpp +++ b/src/mame/drivers/vaportra.cpp @@ -272,7 +272,7 @@ MACHINE_CONFIG_START(vaportra_state::vaportra) MCFG_DECO_MXC06_GFXDECODE("gfxdecode") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", 0)) diff --git a/src/mame/drivers/vastar.cpp b/src/mame/drivers/vastar.cpp index e221bf7962f..3bbbe3065cd 100644 --- a/src/mame/drivers/vastar.cpp +++ b/src/mame/drivers/vastar.cpp @@ -452,7 +452,7 @@ MACHINE_CONFIG_START(vastar_state::vastar) MCFG_PALETTE_ADD_RRRRGGGGBBBB_PROMS("palette", "proms", 256) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, XTAL(18'432'000)/12) MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW1")) diff --git a/src/mame/drivers/vball.cpp b/src/mame/drivers/vball.cpp index 051d16dc529..f6c3be18a01 100644 --- a/src/mame/drivers/vball.cpp +++ b/src/mame/drivers/vball.cpp @@ -418,7 +418,8 @@ MACHINE_CONFIG_START(vball_state::vball) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); // The sound system comes all but verbatim from Double Dragon MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/vboy.cpp b/src/mame/drivers/vboy.cpp index 8fbc7920e12..6695b7c01b0 100644 --- a/src/mame/drivers/vboy.cpp +++ b/src/mame/drivers/vboy.cpp @@ -1389,7 +1389,8 @@ MACHINE_CONFIG_START(vboy_state::vboy) MCFG_SOFTWARE_LIST_ADD("cart_list","vboy") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("vbsnd", VBOYSND) MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) MCFG_SOUND_ROUTE(1, "rspeaker", 1.0) diff --git a/src/mame/drivers/vc4000.cpp b/src/mame/drivers/vc4000.cpp index b0eff20b5b0..ef822f4bfb9 100644 --- a/src/mame/drivers/vc4000.cpp +++ b/src/mame/drivers/vc4000.cpp @@ -546,7 +546,7 @@ MACHINE_CONFIG_START(vc4000_state::vc4000) MCFG_PALETTE_INIT_OWNER(vc4000_state, vc4000) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("custom", VC4000_SND, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/vcombat.cpp b/src/mame/drivers/vcombat.cpp index 46dd6b467c7..be552ae3c89 100644 --- a/src/mame/drivers/vcombat.cpp +++ b/src/mame/drivers/vcombat.cpp @@ -594,7 +594,7 @@ MACHINE_CONFIG_START(vcombat_state::vcombat) MCFG_SCREEN_RAW_PARAMS(XTAL(12'000'000) / 2, 400, 0, 256, 291, 0, 208) MCFG_SCREEN_UPDATE_DRIVER(vcombat_state, screen_update_vcombat_aux) - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_10BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 1.0) // unknown DAC MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT) @@ -628,7 +628,7 @@ MACHINE_CONFIG_START(vcombat_state::shadfgtr) MCFG_SCREEN_RAW_PARAMS(XTAL(20'000'000) / 4, 320, 0, 256, 277, 0, 224) MCFG_SCREEN_UPDATE_DRIVER(vcombat_state, screen_update_vcombat_main) - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_10BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 1.0) // unknown DAC MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT) diff --git a/src/mame/drivers/vd.cpp b/src/mame/drivers/vd.cpp index 6daaeeaaf3c..d611131c93c 100644 --- a/src/mame/drivers/vd.cpp +++ b/src/mame/drivers/vd.cpp @@ -194,7 +194,8 @@ MACHINE_CONFIG_START(vd_state::vd) /* Sound */ genpin_audio(config); - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ay1", AY8910, 2000000) //? MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.33/3) MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW2")) diff --git a/src/mame/drivers/vector06.cpp b/src/mame/drivers/vector06.cpp index db20dee1220..6d3615daaa9 100644 --- a/src/mame/drivers/vector06.cpp +++ b/src/mame/drivers/vector06.cpp @@ -180,7 +180,7 @@ MACHINE_CONFIG_START(vector06_state::vector06) MCFG_PALETTE_ADD("palette", 16) MCFG_PALETTE_INIT_OWNER(vector06_state, vector06) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mame/drivers/vectrex.cpp b/src/mame/drivers/vectrex.cpp index 7073cbd7710..c2cacc20234 100644 --- a/src/mame/drivers/vectrex.cpp +++ b/src/mame/drivers/vectrex.cpp @@ -110,7 +110,7 @@ MACHINE_CONFIG_START(vectrex_base_state::vectrex_base) MCFG_SCREEN_UPDATE_DRIVER(vectrex_base_state, screen_update_vectrex) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", MC1408, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) // mc1408.ic301 (also used for vector generation) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT) diff --git a/src/mame/drivers/vega.cpp b/src/mame/drivers/vega.cpp index 60ee41482ba..008b99292e4 100644 --- a/src/mame/drivers/vega.cpp +++ b/src/mame/drivers/vega.cpp @@ -836,7 +836,7 @@ MACHINE_CONFIG_START(vega_state::vega) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay8910", AY8910, 1500000 ) MCFG_AY8910_PORT_A_READ_CB(READ8(*this, vega_state, ay8910_pa_r)) diff --git a/src/mame/drivers/vegaeo.cpp b/src/mame/drivers/vegaeo.cpp index ea4bbf2561e..1670e7bd36a 100644 --- a/src/mame/drivers/vegaeo.cpp +++ b/src/mame/drivers/vegaeo.cpp @@ -193,7 +193,8 @@ MACHINE_CONFIG_START(vegaeo_state::vega) MCFG_VIDEO_START_OVERRIDE(vegaeo_state,vega) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(WRITELINE("qs1000", qs1000_device, set_irq)) diff --git a/src/mame/drivers/vendetta.cpp b/src/mame/drivers/vendetta.cpp index 46df9f5a2ff..3b9ee509f90 100644 --- a/src/mame/drivers/vendetta.cpp +++ b/src/mame/drivers/vendetta.cpp @@ -484,7 +484,8 @@ MACHINE_CONFIG_START(vendetta_state::vendetta) MCFG_K054000_ADD("k054000") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2151, XTAL(3'579'545)) /* verified with PCB */ MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) diff --git a/src/mame/drivers/vertigo.cpp b/src/mame/drivers/vertigo.cpp index 2756809ab66..7dc0defcbab 100644 --- a/src/mame/drivers/vertigo.cpp +++ b/src/mame/drivers/vertigo.cpp @@ -171,7 +171,8 @@ MACHINE_CONFIG_START(vertigo_state::exidy440_audio) MCFG_DEVICE_PROGRAM_MAP(exidy440_audio_map) MCFG_DEVICE_VBLANK_INT_DRIVER("screen", driver_device, irq0_line_assert) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("custom", EXIDY440, EXIDY440_MC3418_CLOCK) MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) diff --git a/src/mame/drivers/vg5k.cpp b/src/mame/drivers/vg5k.cpp index c31d58deb76..8e1efe3c1b1 100644 --- a/src/mame/drivers/vg5k.cpp +++ b/src/mame/drivers/vg5k.cpp @@ -389,7 +389,7 @@ MACHINE_CONFIG_START(vg5k_state::vg5k) MCFG_PALETTE_ADD("palette", 8) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.125) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) diff --git a/src/mame/drivers/vgmplay.cpp b/src/mame/drivers/vgmplay.cpp index 1f76c789023..a62b1a469c8 100644 --- a/src/mame/drivers/vgmplay.cpp +++ b/src/mame/drivers/vgmplay.cpp @@ -1628,7 +1628,8 @@ MACHINE_CONFIG_START(vgmplay_state::vgmplay) MCFG_DEVICE_ADD("file", BITBANGER, 0) MCFG_BITBANGER_READONLY(true) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ym2612", YM2612, 7670454) MCFG_SOUND_ROUTE(0, "lspeaker", 1) diff --git a/src/mame/drivers/vic10.cpp b/src/mame/drivers/vic10.cpp index 9cb9ed00a67..43f3d1b67e7 100644 --- a/src/mame/drivers/vic10.cpp +++ b/src/mame/drivers/vic10.cpp @@ -718,7 +718,7 @@ MACHINE_CONFIG_START(vic10_state::vic10) MCFG_SCREEN_UPDATE_DEVICE(MOS6566_TAG, mos6566_device, screen_update) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD(MOS6581_TAG, MOS6581, XTAL(8'000'000)/8) MCFG_MOS6581_POTX_CALLBACK(READ8(*this, vic10_state, sid_potx_r)) MCFG_MOS6581_POTY_CALLBACK(READ8(*this, vic10_state, sid_poty_r)) diff --git a/src/mame/drivers/vic20.cpp b/src/mame/drivers/vic20.cpp index 88c4c8312c5..870b5a46732 100644 --- a/src/mame/drivers/vic20.cpp +++ b/src/mame/drivers/vic20.cpp @@ -865,7 +865,7 @@ MACHINE_CONFIG_START(vic20_state::ntsc) MCFG_VIA6522_IRQ_HANDLER(INPUTLINE(M6502_TAG, M6502_IRQ_LINE)) // video/sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_MOS6560_ADD(M6560_TAG, SCREEN_TAG, MOS6560_CLOCK, vic_videoram_map, vic_colorram_map) MCFG_MOS6560_POTX_CALLBACK(READ8(CONTROL1_TAG, vcs_control_port_device, pot_x_r)) MCFG_MOS6560_POTY_CALLBACK(READ8(CONTROL1_TAG, vcs_control_port_device, pot_y_r)) @@ -913,7 +913,7 @@ MACHINE_CONFIG_START(vic20_state::pal) MCFG_VIA6522_IRQ_HANDLER(INPUTLINE(M6502_TAG, M6502_IRQ_LINE)) // video/sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_MOS6561_ADD(M6560_TAG, SCREEN_TAG, MOS6561_CLOCK, vic_videoram_map, vic_colorram_map) MCFG_MOS6560_POTX_CALLBACK(READ8(CONTROL1_TAG, vcs_control_port_device, pot_x_r)) MCFG_MOS6560_POTY_CALLBACK(READ8(CONTROL1_TAG, vcs_control_port_device, pot_y_r)) diff --git a/src/mame/drivers/vicdual.cpp b/src/mame/drivers/vicdual.cpp index b1d59374808..9371e0b4a08 100644 --- a/src/mame/drivers/vicdual.cpp +++ b/src/mame/drivers/vicdual.cpp @@ -342,7 +342,7 @@ MACHINE_CONFIG_START(vicdual_state::depthch) MCFG_SCREEN_UPDATE_DRIVER(vicdual_state, screen_update_bw) /* audio hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); depthch_audio(config); MACHINE_CONFIG_END @@ -541,7 +541,7 @@ MACHINE_CONFIG_START(vicdual_state::frogs) MCFG_SCREEN_UPDATE_DRIVER(vicdual_state, screen_update_bw) /* audio hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); frogs_audio(config); MACHINE_CONFIG_END @@ -787,7 +787,7 @@ MACHINE_CONFIG_START(vicdual_state::headon) MCFG_SCREEN_UPDATE_DRIVER(vicdual_state, screen_update_bw_or_color) /* audio hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); headon_audio(config); MACHINE_CONFIG_END @@ -1012,7 +1012,7 @@ MACHINE_CONFIG_START(vicdual_state::headon2) MCFG_SCREEN_UPDATE_DRIVER(vicdual_state, screen_update_color) /* audio hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); headon_audio(config); MACHINE_CONFIG_END @@ -2094,7 +2094,7 @@ MACHINE_CONFIG_START(vicdual_state::invho2) MCFG_DEVICE_IO_MAP(invho2_io_map) /* audio hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); invinco_audio(config); headon_audio(config); MACHINE_CONFIG_END @@ -2109,7 +2109,7 @@ MACHINE_CONFIG_START(vicdual_state::invds) MCFG_DEVICE_IO_MAP(invds_io_map) /* audio hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); invinco_audio(config); MACHINE_CONFIG_END @@ -2131,7 +2131,7 @@ MACHINE_CONFIG_START(vicdual_state::sspacaho) MCFG_DEVICE_IO_MAP(sspacaho_io_map) /* audio hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); headon_audio(config); MACHINE_CONFIG_END @@ -2155,7 +2155,7 @@ MACHINE_CONFIG_START(vicdual_state::carnival) MCFG_QUANTUM_PERFECT_CPU("maincpu") /* audio hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); carnival_audio(config); MACHINE_CONFIG_END @@ -2176,7 +2176,7 @@ MACHINE_CONFIG_START(vicdual_state::tranqgun) MCFG_DEVICE_IO_MAP(tranqgun_io_map) /* audio hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); tranqgun_audio(config); MACHINE_CONFIG_END @@ -2189,7 +2189,7 @@ MACHINE_CONFIG_START(vicdual_state::brdrline) MCFG_DEVICE_IO_MAP(brdrline_io_map) /* audio hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); brdrline_audio(config); MACHINE_CONFIG_END @@ -2202,7 +2202,7 @@ MACHINE_CONFIG_START(vicdual_state::pulsar) MCFG_DEVICE_IO_MAP(pulsar_io_map) /* audio hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); pulsar_audio(config); MACHINE_CONFIG_END @@ -2233,7 +2233,7 @@ MACHINE_CONFIG_START(vicdual_state::headonn) MCFG_DEVICE_IO_MAP(headonn_io_map) /* audio hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); headon_audio(config); MACHINE_CONFIG_END @@ -2667,7 +2667,7 @@ MACHINE_CONFIG_START(vicdual_state::invinco) MCFG_SCREEN_UPDATE_DRIVER(vicdual_state, screen_update_color) /* audio hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); invinco_audio(config); MACHINE_CONFIG_END diff --git a/src/mame/drivers/victor9k.cpp b/src/mame/drivers/victor9k.cpp index 52e1cd159c9..a3c71018d20 100644 --- a/src/mame/drivers/victor9k.cpp +++ b/src/mame/drivers/victor9k.cpp @@ -700,7 +700,7 @@ MACHINE_CONFIG_START(victor9k_state::victor9k) MCFG_MC6845_OUT_VSYNC_CB(WRITELINE(*this, victor9k_state, vert_w)) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD(HC55516_TAG, HC55516, 0) //MCFG_HC55516_DIG_OUT_CB(WRITELINE(MC6852_TAG, mc6852_device, rx_w)) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mame/drivers/vidbrain.cpp b/src/mame/drivers/vidbrain.cpp index fad4a334526..d25df3e93a8 100644 --- a/src/mame/drivers/vidbrain.cpp +++ b/src/mame/drivers/vidbrain.cpp @@ -518,7 +518,7 @@ MACHINE_CONFIG_START(vidbrain_state::vidbrain) MCFG_UV201_DB_CALLBACK(READ8(*this, vidbrain_state, memory_read_byte)) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_2BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.167) // 74ls74.u16 + 120k + 56k MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT) diff --git a/src/mame/drivers/videopin.cpp b/src/mame/drivers/videopin.cpp index 7185345b388..f7e67762ddf 100644 --- a/src/mame/drivers/videopin.cpp +++ b/src/mame/drivers/videopin.cpp @@ -380,7 +380,7 @@ MACHINE_CONFIG_START(videopin_state::videopin) MCFG_PALETTE_ADD_MONOCHROME("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("discrete", DISCRETE, videopin_discrete) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/videopkr.cpp b/src/mame/drivers/videopkr.cpp index b70cfbc092b..6ddb142641c 100644 --- a/src/mame/drivers/videopkr.cpp +++ b/src/mame/drivers/videopkr.cpp @@ -1301,7 +1301,7 @@ MACHINE_CONFIG_START(videopkr_state::videopkr) MCFG_PALETTE_INIT_OWNER(videopkr_state, videopkr) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", MC1408, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.275) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT) diff --git a/src/mame/drivers/vigilant.cpp b/src/mame/drivers/vigilant.cpp index 0853b8ff047..a5487f0e6fa 100644 --- a/src/mame/drivers/vigilant.cpp +++ b/src/mame/drivers/vigilant.cpp @@ -509,7 +509,8 @@ MACHINE_CONFIG_START(vigilant_state::vigilant) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(WRITELINE("soundirq", rst_neg_buffer_device, rst18_w)) @@ -559,7 +560,8 @@ MACHINE_CONFIG_START(vigilant_state::buccanrs) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(WRITELINE("soundirq", rst_neg_buffer_device, rst18_w)) @@ -625,7 +627,8 @@ MACHINE_CONFIG_START(vigilant_state::kikcubic) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(WRITELINE("soundirq", rst_neg_buffer_device, rst18_w)) diff --git a/src/mame/drivers/vindictr.cpp b/src/mame/drivers/vindictr.cpp index 1b5db861260..2d85954f1e9 100644 --- a/src/mame/drivers/vindictr.cpp +++ b/src/mame/drivers/vindictr.cpp @@ -211,7 +211,8 @@ MACHINE_CONFIG_START(vindictr_state::vindictr) MCFG_SCREEN_PALETTE("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_ATARI_JSA_I_ADD("jsa", INPUTLINE("maincpu", M68K_IRQ_6)) MCFG_ATARI_JSA_TEST_PORT("260010", 1) diff --git a/src/mame/drivers/vip.cpp b/src/mame/drivers/vip.cpp index 31e847b9b27..15141559dbf 100644 --- a/src/mame/drivers/vip.cpp +++ b/src/mame/drivers/vip.cpp @@ -737,7 +737,7 @@ MACHINE_CONFIG_START(vip_state::vip) MCFG_SCREEN_UPDATE_DRIVER(vip_state, screen_update) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD(DISCRETE_TAG, DISCRETE, vip_discrete) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80) diff --git a/src/mame/drivers/viper.cpp b/src/mame/drivers/viper.cpp index 147b7c7e8bb..4cd5c9b00be 100644 --- a/src/mame/drivers/viper.cpp +++ b/src/mame/drivers/viper.cpp @@ -2413,7 +2413,8 @@ MACHINE_CONFIG_START(viper_state::viper) MCFG_TIMER_ADD_NONE("ds2430_timer2") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_M48T58_ADD( "m48t58" ) MACHINE_CONFIG_END diff --git a/src/mame/drivers/vis.cpp b/src/mame/drivers/vis.cpp index 37fa09e00a5..d14a24cf064 100644 --- a/src/mame/drivers/vis.cpp +++ b/src/mame/drivers/vis.cpp @@ -131,7 +131,8 @@ void vis_audio_device::device_timer(emu_timer &timer, device_timer_id id, int pa } MACHINE_CONFIG_START(vis_audio_device::device_add_mconfig) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymf262", YMF262, XTAL(14'318'181)) MCFG_SOUND_ROUTE(0, "lspeaker", 1.00) MCFG_SOUND_ROUTE(1, "rspeaker", 1.00) diff --git a/src/mame/drivers/vixen.cpp b/src/mame/drivers/vixen.cpp index 2fd382e804b..583ec81218a 100644 --- a/src/mame/drivers/vixen.cpp +++ b/src/mame/drivers/vixen.cpp @@ -759,7 +759,7 @@ MACHINE_CONFIG_START(vixen_state::vixen) MCFG_PALETTE_ADD_MONOCHROME("palette") // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD(DISCRETE_TAG, DISCRETE, vixen_discrete) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.20) diff --git a/src/mame/drivers/vk100.cpp b/src/mame/drivers/vk100.cpp index 1ac53cfedd8..b9871ec9980 100644 --- a/src/mame/drivers/vk100.cpp +++ b/src/mame/drivers/vk100.cpp @@ -1072,7 +1072,7 @@ MACHINE_CONFIG_START(vk100_state::vk100) MCFG_DEFAULT_LAYOUT( layout_vk100 ) - MCFG_SPEAKER_STANDARD_MONO( "mono" ) + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD( "beeper", BEEP, 116 ) // 116 hz (page 172 of TM), but duty cycle is wrong here! MCFG_SOUND_ROUTE( ALL_OUTPUTS, "mono", 0.25 ) MACHINE_CONFIG_END diff --git a/src/mame/drivers/vlc.cpp b/src/mame/drivers/vlc.cpp index d428cc2f2c7..d311d849cc7 100644 --- a/src/mame/drivers/vlc.cpp +++ b/src/mame/drivers/vlc.cpp @@ -611,7 +611,7 @@ MACHINE_CONFIG_START(nevada_state::nevada) MCFG_MC6845_CHAR_WIDTH(8) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8912, SOUND_CLOCK) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75) diff --git a/src/mame/drivers/volfied.cpp b/src/mame/drivers/volfied.cpp index 5bcbc0bfe33..7a50bacde8c 100644 --- a/src/mame/drivers/volfied.cpp +++ b/src/mame/drivers/volfied.cpp @@ -278,7 +278,7 @@ MACHINE_CONFIG_START(volfied_state::volfied) MCFG_PC090OJ_PALETTE("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2203, 4000000) MCFG_YM2203_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) diff --git a/src/mame/drivers/votrpss.cpp b/src/mame/drivers/votrpss.cpp index 872c369ed15..2558daa8a75 100644 --- a/src/mame/drivers/votrpss.cpp +++ b/src/mame/drivers/votrpss.cpp @@ -252,7 +252,7 @@ MACHINE_CONFIG_START(votrpss_state::votrpss) //MCFG_DEFAULT_LAYOUT(layout_votrpss) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ay", AY8910, XTAL(8'000'000)/4) /* 2.000 MHz, verified */ MCFG_AY8910_PORT_B_READ_CB(IOPORT("DSW1")) // port B read MCFG_AY8910_PORT_A_WRITE_CB(WRITE8("votrax", votrax_sc01_device, write)) // port A write diff --git a/src/mame/drivers/votrtnt.cpp b/src/mame/drivers/votrtnt.cpp index 0af59a2ea52..bca311d20c0 100644 --- a/src/mame/drivers/votrtnt.cpp +++ b/src/mame/drivers/votrtnt.cpp @@ -159,7 +159,7 @@ MACHINE_CONFIG_START(votrtnt_state::votrtnt) MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE("acia", acia6850_device, write_rxc)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("votrax", VOTRAX_SC01, 720000) /* 720kHz? needs verify */ MCFG_VOTRAX_SC01_REQUEST_CB(INPUTLINE("maincpu", INPUT_LINE_IRQ0)) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) diff --git a/src/mame/drivers/voyager.cpp b/src/mame/drivers/voyager.cpp index 6eb8137131f..d2614e29eea 100644 --- a/src/mame/drivers/voyager.cpp +++ b/src/mame/drivers/voyager.cpp @@ -518,7 +518,8 @@ MACHINE_CONFIG_START(voyager_state::voyager) pcvideo_trident_vga(config); /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker","rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MACHINE_CONFIG_END DRIVER_INIT_MEMBER(voyager_state,voyager) diff --git a/src/mame/drivers/vpoker.cpp b/src/mame/drivers/vpoker.cpp index 04deea8e314..3892b4a8681 100644 --- a/src/mame/drivers/vpoker.cpp +++ b/src/mame/drivers/vpoker.cpp @@ -657,7 +657,7 @@ MACHINE_CONFIG_START(vpoker_state::vpoker) MCFG_PTM6840_IRQ_CB(WRITELINE(*this, vpoker_state, ptm_irq)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); // MCFG_DEVICE_ADD("aysnd", AY8910, 8000000/4 /* guess */) // MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30) MACHINE_CONFIG_END diff --git a/src/mame/drivers/vroulet.cpp b/src/mame/drivers/vroulet.cpp index f7beb50b3de..5865ae22d26 100644 --- a/src/mame/drivers/vroulet.cpp +++ b/src/mame/drivers/vroulet.cpp @@ -308,7 +308,7 @@ MACHINE_CONFIG_START(vroulet_state::vroulet) MCFG_PALETTE_ADD("palette", 128*4) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8910, 2000000) MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSWA")) diff --git a/src/mame/drivers/vsnes.cpp b/src/mame/drivers/vsnes.cpp index 0bfca44f913..27eb1358c8f 100644 --- a/src/mame/drivers/vsnes.cpp +++ b/src/mame/drivers/vsnes.cpp @@ -1723,7 +1723,7 @@ MACHINE_CONFIG_START(vsnes_state::vsnes) MCFG_PPU2C0X_INT_CALLBACK(INPUTLINE("maincpu", INPUT_LINE_NMI)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MACHINE_CONFIG_END MACHINE_CONFIG_START(vsnes_state::jajamaru) @@ -1803,7 +1803,7 @@ MACHINE_CONFIG_START(vsnes_state::vsdual) MCFG_PPU2C0X_INT_CALLBACK(INPUTLINE("sub", INPUT_LINE_NMI)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MACHINE_CONFIG_END MACHINE_CONFIG_START(vsnes_state::vsdual_pi) @@ -1843,7 +1843,7 @@ MACHINE_CONFIG_START(vsnes_state::vsnes_bootleg) MCFG_PPU2C0X_IGNORE_SPRITE_WRITE_LIMIT // bootleg seems to need this - code to set the sprite address is replaced with complete copy loops?? /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); // PCB has 2, code accesses 3? which 2 really exist? MCFG_DEVICE_ADD("sn1", SN76489, XTAL(16'000'000)/4) diff --git a/src/mame/drivers/vtech1.cpp b/src/mame/drivers/vtech1.cpp index c9f5d534c08..412e495aeff 100644 --- a/src/mame/drivers/vtech1.cpp +++ b/src/mame/drivers/vtech1.cpp @@ -453,7 +453,7 @@ MACHINE_CONFIG_START(vtech1_state::laser110) // other lines not connected // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) diff --git a/src/mame/drivers/vtech2.cpp b/src/mame/drivers/vtech2.cpp index 21e11540ae8..750a72739b8 100644 --- a/src/mame/drivers/vtech2.cpp +++ b/src/mame/drivers/vtech2.cpp @@ -438,7 +438,7 @@ MACHINE_CONFIG_START(vtech2_state::laser350) MCFG_PALETTE_INIT_OWNER(vtech2_state, vtech2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) diff --git a/src/mame/drivers/vulgus.cpp b/src/mame/drivers/vulgus.cpp index b762f5126e3..3f8069a53b4 100644 --- a/src/mame/drivers/vulgus.cpp +++ b/src/mame/drivers/vulgus.cpp @@ -243,7 +243,7 @@ MACHINE_CONFIG_START(vulgus_state::vulgus) MCFG_PALETTE_INIT_OWNER(vulgus_state, vulgus) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/wacky_gator.cpp b/src/mame/drivers/wacky_gator.cpp index c055fb5c635..77e0bd617fe 100644 --- a/src/mame/drivers/wacky_gator.cpp +++ b/src/mame/drivers/wacky_gator.cpp @@ -296,7 +296,7 @@ MACHINE_CONFIG_START(wackygtr_state::wackygtr) MCFG_DEFAULT_LAYOUT(layout_wackygtr) /* Sound */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("msm", MSM5205, XTAL(384'000) ) MCFG_MSM5205_VCLK_CB(WRITELINE(*this, wackygtr_state, adpcm_int)) /* IRQ handler */ MCFG_MSM5205_PRESCALER_SELECTOR(S48_4B) /* 8 KHz, 4 Bits */ diff --git a/src/mame/drivers/wallc.cpp b/src/mame/drivers/wallc.cpp index f79ddda3c67..0d6ad0a847b 100644 --- a/src/mame/drivers/wallc.cpp +++ b/src/mame/drivers/wallc.cpp @@ -505,7 +505,7 @@ MACHINE_CONFIG_START(wallc_state::wallc) MCFG_PALETTE_INIT_OWNER(wallc_state, wallc) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8912, 12288000 / 8) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30) MACHINE_CONFIG_END diff --git a/src/mame/drivers/wardner.cpp b/src/mame/drivers/wardner.cpp index 3eb092a88e6..52815b62ce2 100644 --- a/src/mame/drivers/wardner.cpp +++ b/src/mame/drivers/wardner.cpp @@ -439,7 +439,7 @@ MACHINE_CONFIG_START(wardner_state::wardner) MCFG_VIDEO_START_OVERRIDE(wardner_state,toaplan0) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM3812, XTAL(14'000'000)/4) MCFG_YM3812_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) diff --git a/src/mame/drivers/warpwarp.cpp b/src/mame/drivers/warpwarp.cpp index ae2db5f16a8..62ce3a22a6d 100644 --- a/src/mame/drivers/warpwarp.cpp +++ b/src/mame/drivers/warpwarp.cpp @@ -744,7 +744,7 @@ MACHINE_CONFIG_START(warpwarp_state::geebee) MCFG_VIDEO_START_OVERRIDE(warpwarp_state,geebee) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("geebee_custom", GEEBEE_SOUND, MASTER_CLOCK) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) @@ -812,7 +812,7 @@ MACHINE_CONFIG_START(warpwarp_state::bombbee) MCFG_VIDEO_START_OVERRIDE(warpwarp_state,warpwarp) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("warpwarp_custom", WARPWARP_SOUND, MASTER_CLOCK) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/warriorb.cpp b/src/mame/drivers/warriorb.cpp index 76d6967104d..851cdbb6d76 100644 --- a/src/mame/drivers/warriorb.cpp +++ b/src/mame/drivers/warriorb.cpp @@ -498,7 +498,8 @@ MACHINE_CONFIG_START(warriorb_state::darius2d) MCFG_TC0110PCR_PALETTE("palette2") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2610, 16000000/2) MCFG_YM2610_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) @@ -584,7 +585,8 @@ MACHINE_CONFIG_START(warriorb_state::warriorb) MCFG_TC0110PCR_PALETTE("palette2") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2610B, 16000000/2) MCFG_YM2610_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) diff --git a/src/mame/drivers/wc90.cpp b/src/mame/drivers/wc90.cpp index 3426be9e4ea..bc03fd292a1 100644 --- a/src/mame/drivers/wc90.cpp +++ b/src/mame/drivers/wc90.cpp @@ -380,7 +380,7 @@ MACHINE_CONFIG_START(wc90_state::wc90) MCFG_DEVICE_ADD("spritegen", TECMO_SPRITE, 0) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) diff --git a/src/mame/drivers/wc90b.cpp b/src/mame/drivers/wc90b.cpp index 35e8c7caa73..e150d3be2fb 100644 --- a/src/mame/drivers/wc90b.cpp +++ b/src/mame/drivers/wc90b.cpp @@ -383,7 +383,7 @@ MACHINE_CONFIG_START(wc90b_state::wc90b) MCFG_PALETTE_ENDIANNESS(ENDIANNESS_BIG) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/wecleman.cpp b/src/mame/drivers/wecleman.cpp index 5c37a3fa4a2..d8e09cbf049 100644 --- a/src/mame/drivers/wecleman.cpp +++ b/src/mame/drivers/wecleman.cpp @@ -1074,7 +1074,8 @@ MACHINE_CONFIG_START(wecleman_state::wecleman) MCFG_VIDEO_START_OVERRIDE(wecleman_state,wecleman) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -1162,7 +1163,8 @@ MACHINE_CONFIG_START(wecleman_state::hotchase) MCFG_K051316_CB(wecleman_state, hotchase_zoom_callback_2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/welltris.cpp b/src/mame/drivers/welltris.cpp index 67a4793bcb4..7b89421266b 100644 --- a/src/mame/drivers/welltris.cpp +++ b/src/mame/drivers/welltris.cpp @@ -702,7 +702,7 @@ MACHINE_CONFIG_START(welltris_state::welltris) MCFG_VSYSTEM_SPR2_GFXDECODE("gfxdecode") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) diff --git a/src/mame/drivers/wgp.cpp b/src/mame/drivers/wgp.cpp index bf36a56454d..0fef653343d 100644 --- a/src/mame/drivers/wgp.cpp +++ b/src/mame/drivers/wgp.cpp @@ -950,7 +950,8 @@ MACHINE_CONFIG_START(wgp_state::wgp) MCFG_TC0100SCN_PALETTE("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2610, 16000000/2) MCFG_YM2610_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) // assumes Z80 sandwiched between 68Ks diff --git a/src/mame/drivers/wheelfir.cpp b/src/mame/drivers/wheelfir.cpp index 3c4f699939f..6b78ee816cf 100644 --- a/src/mame/drivers/wheelfir.cpp +++ b/src/mame/drivers/wheelfir.cpp @@ -765,7 +765,8 @@ MACHINE_CONFIG_START(wheelfir_state::wheelfir) MCFG_GENERIC_LATCH_16_ADD("soundlatch") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ldac", DAC_10BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 1.0) // unknown DAC MCFG_DEVICE_ADD("rdac", DAC_10BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 1.0) // unknown DAC MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) diff --git a/src/mame/drivers/wico.cpp b/src/mame/drivers/wico.cpp index 7b6f4dd2f35..94fcf8863fb 100644 --- a/src/mame/drivers/wico.cpp +++ b/src/mame/drivers/wico.cpp @@ -453,7 +453,7 @@ MACHINE_CONFIG_START(wico_state::wico) /* Sound */ genpin_audio(config); - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("sn76494", SN76494, XTAL(10'000'000) / 64) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75) MACHINE_CONFIG_END diff --git a/src/mame/drivers/wildpkr.cpp b/src/mame/drivers/wildpkr.cpp index cf6c36391eb..de6222a19e4 100644 --- a/src/mame/drivers/wildpkr.cpp +++ b/src/mame/drivers/wildpkr.cpp @@ -484,7 +484,7 @@ MACHINE_CONFIG_START(wildpkr_state::wildpkr) MCFG_PALETTE_INIT_OWNER(wildpkr_state, wildpkr) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("aysnd", AY8930, AY_CLOCK) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) MACHINE_CONFIG_END @@ -525,7 +525,7 @@ MACHINE_CONFIG_START(wildpkr_state::tabpkr) MCFG_PALETTE_INIT_OWNER(wildpkr_state, wildpkr) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("dac", AD557, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) diff --git a/src/mame/drivers/williams.cpp b/src/mame/drivers/williams.cpp index c234a45b987..8f1e32e3c16 100644 --- a/src/mame/drivers/williams.cpp +++ b/src/mame/drivers/williams.cpp @@ -1489,7 +1489,7 @@ MACHINE_CONFIG_START(williams_state::williams) MCFG_VIDEO_START_OVERRIDE(williams_state,williams) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", MC1408, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) // mc1408.ic6 MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT) @@ -1707,7 +1707,8 @@ MACHINE_CONFIG_START(blaster_state::blaster) MCFG_DEVICE_REMOVE("dac") MCFG_DEVICE_REMOVE("vref") - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ldac", MC1408, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.25) // unknown DAC MCFG_DEVICE_ADD("rdac", MC1408, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 0.25) // unknown DAC MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) @@ -1753,7 +1754,7 @@ MACHINE_CONFIG_START(williams2_state::williams2) MCFG_VIDEO_START_OVERRIDE(williams2_state,williams2) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", MC1408, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) // unknown DAC MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT) diff --git a/src/mame/drivers/wink.cpp b/src/mame/drivers/wink.cpp index c7ed6c58c8c..cde4e5a61e1 100644 --- a/src/mame/drivers/wink.cpp +++ b/src/mame/drivers/wink.cpp @@ -417,7 +417,7 @@ MACHINE_CONFIG_START(wink_state::wink) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/wiping.cpp b/src/mame/drivers/wiping.cpp index ad01d013325..13a705f046c 100644 --- a/src/mame/drivers/wiping.cpp +++ b/src/mame/drivers/wiping.cpp @@ -319,7 +319,7 @@ MACHINE_CONFIG_START(wiping_state::wiping) MCFG_PALETTE_INIT_OWNER(wiping_state, wiping) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("wiping", WIPING_CUSTOM, 96000) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/witch.cpp b/src/mame/drivers/witch.cpp index 969eff12feb..a0463f26c58 100644 --- a/src/mame/drivers/witch.cpp +++ b/src/mame/drivers/witch.cpp @@ -991,7 +991,7 @@ MACHINE_CONFIG_START(witch_state::witch) MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_ES8712_ADD("essnd", 0) MCFG_ES8712_MSM_WRITE_CALLBACK(WRITE8("msm", msm5205_device, data_w)) diff --git a/src/mame/drivers/wiz.cpp b/src/mame/drivers/wiz.cpp index 9cf21111e27..3352d21a7d9 100644 --- a/src/mame/drivers/wiz.cpp +++ b/src/mame/drivers/wiz.cpp @@ -815,7 +815,7 @@ MACHINE_CONFIG_START(wiz_state::kungfut) MCFG_PALETTE_INIT_OWNER(wiz_state, wiz) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/wmg.cpp b/src/mame/drivers/wmg.cpp index 33cfc5c3600..17d4e5ddece 100644 --- a/src/mame/drivers/wmg.cpp +++ b/src/mame/drivers/wmg.cpp @@ -517,7 +517,7 @@ MACHINE_CONFIG_START(wmg_state::wmg) MCFG_VIDEO_START_OVERRIDE(williams_state,williams) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", MC1408, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) // unknown DAC MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) diff --git a/src/mame/drivers/wolfpack.cpp b/src/mame/drivers/wolfpack.cpp index 4e27be882c2..5a7b9113f13 100644 --- a/src/mame/drivers/wolfpack.cpp +++ b/src/mame/drivers/wolfpack.cpp @@ -328,7 +328,7 @@ MACHINE_CONFIG_START(wolfpack_state::wolfpack) MCFG_PALETTE_INIT_OWNER(wolfpack_state, wolfpack) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speech", S14001A, 20000) /* RC Clock (C=100pf, R=470K-670K ohms, adjustable) ranging from 14925.37313hz to 21276.59574hz, likely factory set to 20000hz since anything below 19500 is too slow */ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) MACHINE_CONFIG_END diff --git a/src/mame/drivers/wpc_an.cpp b/src/mame/drivers/wpc_an.cpp index b27dc6cc6d0..cdf5771e645 100644 --- a/src/mame/drivers/wpc_an.cpp +++ b/src/mame/drivers/wpc_an.cpp @@ -342,7 +342,7 @@ MACHINE_CONFIG_END MACHINE_CONFIG_START(wpc_an_state::wpc_an) wpc_an_base(config); - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("wpcsnd", WPCSND) MCFG_WPC_ROM_REGION("sound1") MCFG_WPC_SOUND_REPLY_CALLBACK(WRITELINE(*this, wpc_an_state,wpcsnd_reply_w)) @@ -352,7 +352,7 @@ MACHINE_CONFIG_END MACHINE_CONFIG_START(wpc_an_state::wpc_an_dd) wpc_an_base(config); - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("bg", S11C_BG) MCFG_S11C_BG_ROM_REGION(":sound1") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 1.0) diff --git a/src/mame/drivers/wpc_dot.cpp b/src/mame/drivers/wpc_dot.cpp index 3dd9b13798b..50f55895ed6 100644 --- a/src/mame/drivers/wpc_dot.cpp +++ b/src/mame/drivers/wpc_dot.cpp @@ -315,7 +315,7 @@ MACHINE_CONFIG_START(wpc_dot_state::wpc_dot) MCFG_WPC_SOUND_DATA(READ8(*this, wpc_dot_state,wpc_sound_data_r),WRITE8(*this, wpc_dot_state,wpc_sound_data_w)) MCFG_WPC_DMDBANK(WRITE8(*this, wpc_dot_state,wpc_dmdbank_w)) - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("wpcsnd", WPCSND) MCFG_WPC_ROM_REGION("sound1") MCFG_WPC_SOUND_REPLY_CALLBACK(WRITELINE(*this, wpc_dot_state,wpcsnd_reply_w)) diff --git a/src/mame/drivers/wpc_flip1.cpp b/src/mame/drivers/wpc_flip1.cpp index c01b65f5ae0..b93114ccf3e 100644 --- a/src/mame/drivers/wpc_flip1.cpp +++ b/src/mame/drivers/wpc_flip1.cpp @@ -171,7 +171,7 @@ MACHINE_CONFIG_START(wpc_flip1_state::wpc_flip1) MCFG_WPC_SOUND_DATA(READ8(*this, wpc_dot_state,wpc_sound_data_r),WRITE8(*this, wpc_dot_state,wpc_sound_data_w)) MCFG_WPC_DMDBANK(WRITE8(*this, wpc_dot_state,wpc_dmdbank_w)) - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("wpcsnd", WPCSND) MCFG_WPC_ROM_REGION("sound1") MCFG_WPC_SOUND_REPLY_CALLBACK(WRITELINE(*this, wpc_dot_state,wpcsnd_reply_w)) diff --git a/src/mame/drivers/wpc_flip2.cpp b/src/mame/drivers/wpc_flip2.cpp index 2be57442110..32c39fd2859 100644 --- a/src/mame/drivers/wpc_flip2.cpp +++ b/src/mame/drivers/wpc_flip2.cpp @@ -200,7 +200,7 @@ MACHINE_CONFIG_START(wpc_flip2_state::wpc_flip2) MCFG_WPC_SOUND_DATA(READ8(*this, wpc_dot_state,wpc_sound_data_r),WRITE8(*this, wpc_dot_state,wpc_sound_data_w)) MCFG_WPC_DMDBANK(WRITE8(*this, wpc_dot_state,wpc_dmdbank_w)) - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("wpcsnd", WPCSND) MCFG_WPC_ROM_REGION("sound1") MCFG_WPC_SOUND_REPLY_CALLBACK(WRITELINE(*this, wpc_dot_state,wpcsnd_reply_w)) diff --git a/src/mame/drivers/wrally.cpp b/src/mame/drivers/wrally.cpp index db4214c5b40..adb1b490b9d 100644 --- a/src/mame/drivers/wrally.cpp +++ b/src/mame/drivers/wrally.cpp @@ -298,7 +298,7 @@ MACHINE_CONFIG_START(wrally_state::wrally) MCFG_ADDRESSABLE_LATCH_Q7_OUT_CB(NOOP) /* ??? */ /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("oki", OKIM6295, XTAL(1'000'000), okim6295_device::PIN7_HIGH) /* verified on pcb */ MCFG_DEVICE_ADDRESS_MAP(0, oki_map) diff --git a/src/mame/drivers/wswan.cpp b/src/mame/drivers/wswan.cpp index 29da78f4a2e..24a50f9707b 100644 --- a/src/mame/drivers/wswan.cpp +++ b/src/mame/drivers/wswan.cpp @@ -143,7 +143,8 @@ MACHINE_CONFIG_START(wswan_state::wswan) MCFG_PALETTE_INIT_OWNER(wswan_state, wswan) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD(m_sound, WSWAN_SND, 0) MCFG_SOUND_ROUTE(0, "lspeaker", 0.50) MCFG_SOUND_ROUTE(1, "rspeaker", 0.50) diff --git a/src/mame/drivers/wwfsstar.cpp b/src/mame/drivers/wwfsstar.cpp index 00aff0dcda5..ea262539a10 100644 --- a/src/mame/drivers/wwfsstar.cpp +++ b/src/mame/drivers/wwfsstar.cpp @@ -434,7 +434,8 @@ MACHINE_CONFIG_START(wwfsstar_state::wwfsstar) MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI)) diff --git a/src/mame/drivers/wyvernf0.cpp b/src/mame/drivers/wyvernf0.cpp index 3eefb0f1fb0..07afd4559d2 100644 --- a/src/mame/drivers/wyvernf0.cpp +++ b/src/mame/drivers/wyvernf0.cpp @@ -676,7 +676,7 @@ MACHINE_CONFIG_START(wyvernf0_state::wyvernf0) MCFG_VIDEO_START_OVERRIDE(wyvernf0_state,wyvernf0) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/x07.cpp b/src/mame/drivers/x07.cpp index c1a0261b8e6..6b48c637502 100644 --- a/src/mame/drivers/x07.cpp +++ b/src/mame/drivers/x07.cpp @@ -1501,7 +1501,7 @@ MACHINE_CONFIG_START(x07_state::x07) MCFG_GFXDECODE_ADD("gfxdecode", "palette", x07) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO( "mono" ) + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD( "beeper", BEEP, 0 ) MCFG_SOUND_ROUTE( ALL_OUTPUTS, "mono", 0.50 ) MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") diff --git a/src/mame/drivers/x1.cpp b/src/mame/drivers/x1.cpp index 74f0864f765..67ebe6f1240 100644 --- a/src/mame/drivers/x1.cpp +++ b/src/mame/drivers/x1.cpp @@ -2265,7 +2265,8 @@ MACHINE_CONFIG_START(x1_state::x1) MCFG_GENERIC_CARTSLOT_ADD("cartslot", generic_plain_slot, "x1_cart") MCFG_GENERIC_EXTENSIONS("bin,rom") - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); /* TODO:is the AY mono or stereo? Also volume balance isn't right. */ MCFG_DEVICE_ADD("ay", AY8910, MAIN_CLOCK/8) diff --git a/src/mame/drivers/x1twin.cpp b/src/mame/drivers/x1twin.cpp index bde3d971d9f..1073a7158f4 100644 --- a/src/mame/drivers/x1twin.cpp +++ b/src/mame/drivers/x1twin.cpp @@ -491,12 +491,13 @@ MACHINE_CONFIG_START(x1twin_state::x1twin) MCFG_GENERIC_CARTSLOT_ADD("cartslot", generic_plain_slot, "x1_cart") MCFG_GENERIC_EXTENSIONS("bin,rom") - MCFG_SPEAKER_ADD("x1_l",-0.2, 0.0, 1.0) - MCFG_SPEAKER_ADD("x1_r",0.2, 0.0, 1.0) - MCFG_SPEAKER_ADD("pce_l",-0.2, 0.0, 1.0) - MCFG_SPEAKER_ADD("pce_r",0.2, 0.0, 1.0) + SPEAKER(config, "x1_l").front_left(); + SPEAKER(config, "x1_r").front_right(); + SPEAKER(config, "pce_l").front_left(); + SPEAKER(config, "pce_r").front_right(); -// MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") +// SPEAKER(config, "lspeaker").front_left(); +// SPEAKER(config, "rspeaker").front_right(); /* TODO:is the AY mono or stereo? Also volume balance isn't right. */ MCFG_DEVICE_ADD("ay", AY8910, MAIN_CLOCK/8) diff --git a/src/mame/drivers/x68k.cpp b/src/mame/drivers/x68k.cpp index ccd53898d06..3ae4e0fffec 100644 --- a/src/mame/drivers/x68k.cpp +++ b/src/mame/drivers/x68k.cpp @@ -1694,7 +1694,8 @@ MACHINE_CONFIG_START(x68k_state::x68000) MCFG_DEFAULT_LAYOUT( layout_x68000 ) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ym2151", YM2151, 4000000) MCFG_YM2151_IRQ_HANDLER(WRITELINE(*this, x68k_state,x68k_fm_irq)) MCFG_YM2151_PORT_WRITE_HANDLER(WRITE8(*this, x68k_state,x68k_ct_w)) // CT1, CT2 from YM2151 port 0x1b diff --git a/src/mame/drivers/xain.cpp b/src/mame/drivers/xain.cpp index 4d8ac3dbdb0..60bd9e54440 100644 --- a/src/mame/drivers/xain.cpp +++ b/src/mame/drivers/xain.cpp @@ -480,7 +480,7 @@ MACHINE_CONFIG_START(xain_state::xsleena) MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", M6809_IRQ_LINE)) diff --git a/src/mame/drivers/xavix.cpp b/src/mame/drivers/xavix.cpp index 60817898cc4..e9fd3f4dda5 100644 --- a/src/mame/drivers/xavix.cpp +++ b/src/mame/drivers/xavix.cpp @@ -660,7 +660,7 @@ MACHINE_CONFIG_START(xavix_state::xavix) MCFG_PALETTE_ADD("palette", 256) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); // sound is PCM MACHINE_CONFIG_END diff --git a/src/mame/drivers/xbox.cpp b/src/mame/drivers/xbox.cpp index 8da39f7d2e0..73735c0733a 100644 --- a/src/mame/drivers/xbox.cpp +++ b/src/mame/drivers/xbox.cpp @@ -186,7 +186,7 @@ MACHINE_CONFIG_START(xbox_state::xbox) MCFG_USB_PORT_ADD(":pci:02.0:port4", usb_xbox, nullptr, false) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); // MCFG_DEVICE_ADD("aysnd", AY8910, MAIN_CLOCK/4) // MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30) diff --git a/src/mame/drivers/xerox820.cpp b/src/mame/drivers/xerox820.cpp index 80343d7e35d..1218e98ba29 100644 --- a/src/mame/drivers/xerox820.cpp +++ b/src/mame/drivers/xerox820.cpp @@ -674,7 +674,7 @@ MACHINE_CONFIG_END MACHINE_CONFIG_START(bigboard_state::bigboard) xerox820(config); /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, 950) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) /* bigboard only */ MACHINE_CONFIG_END @@ -695,7 +695,7 @@ MACHINE_CONFIG_START(xerox820ii_state::xerox820ii) MCFG_PALETTE_ADD_MONOCHROME("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/xexex.cpp b/src/mame/drivers/xexex.cpp index a90bcc3d9b2..897b6227899 100644 --- a/src/mame/drivers/xexex.cpp +++ b/src/mame/drivers/xexex.cpp @@ -518,7 +518,8 @@ MACHINE_CONFIG_START(xexex_state::xexex) MCFG_DEVICE_ADD("k054338", K054338, 0) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_K054321_ADD("k054321", "lspeaker", "rspeaker") diff --git a/src/mame/drivers/xmen.cpp b/src/mame/drivers/xmen.cpp index cbd16afb735..c454bda0b1f 100644 --- a/src/mame/drivers/xmen.cpp +++ b/src/mame/drivers/xmen.cpp @@ -336,7 +336,8 @@ MACHINE_CONFIG_START(xmen_state::xmen) MCFG_K053251_ADD("k053251") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_K054321_ADD("k054321", "lspeaker", "rspeaker") @@ -403,7 +404,8 @@ MACHINE_CONFIG_START(xmen_state::xmen6p) MCFG_K054321_ADD("k054321", "lspeaker", "rspeaker") /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2151, XTAL(16'000'000)/4) MCFG_SOUND_ROUTE(0, "lspeaker", 0.20) diff --git a/src/mame/drivers/xorworld.cpp b/src/mame/drivers/xorworld.cpp index b904f4e300f..96ca3810b7c 100644 --- a/src/mame/drivers/xorworld.cpp +++ b/src/mame/drivers/xorworld.cpp @@ -186,7 +186,7 @@ MACHINE_CONFIG_START(xorworld_state::xorworld) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SAA1099_ADD("saa", 8000000 /* guess */) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) MACHINE_CONFIG_END diff --git a/src/mame/drivers/xtheball.cpp b/src/mame/drivers/xtheball.cpp index 1cb9b239613..5056b82ec9f 100644 --- a/src/mame/drivers/xtheball.cpp +++ b/src/mame/drivers/xtheball.cpp @@ -334,7 +334,7 @@ MACHINE_CONFIG_START(xtheball_state::xtheball) MCFG_SCREEN_UPDATE_DEVICE("maincpu", tms34010_device, tms340x0_rgb32) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) // unknown DAC MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) diff --git a/src/mame/drivers/xxmissio.cpp b/src/mame/drivers/xxmissio.cpp index ef7b09bbdbf..7b1cfb7bfcb 100644 --- a/src/mame/drivers/xxmissio.cpp +++ b/src/mame/drivers/xxmissio.cpp @@ -292,7 +292,7 @@ MACHINE_CONFIG_START(xxmissio_state::xxmissio) MCFG_PALETTE_FORMAT_CLASS(1, xxmissio_state, BBGGRRII) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ym1", YM2203, 12000000/8) MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW1")) diff --git a/src/mame/drivers/xybots.cpp b/src/mame/drivers/xybots.cpp index 7d127e8aa61..424f7f1b11a 100644 --- a/src/mame/drivers/xybots.cpp +++ b/src/mame/drivers/xybots.cpp @@ -208,7 +208,8 @@ MACHINE_CONFIG_START(xybots_state::xybots) MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, xybots_state, video_int_write_line)) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_ATARI_JSA_I_ADD("jsa", INPUTLINE("maincpu", M68K_IRQ_2)) MCFG_ATARI_JSA_TEST_PORT("FFE200", 8) diff --git a/src/mame/drivers/xyonix.cpp b/src/mame/drivers/xyonix.cpp index 93de46eeea3..15425e03e0c 100644 --- a/src/mame/drivers/xyonix.cpp +++ b/src/mame/drivers/xyonix.cpp @@ -268,7 +268,7 @@ MACHINE_CONFIG_START(xyonix_state::xyonix) MCFG_PALETTE_INIT_OWNER(xyonix_state, xyonix) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("sn1", SN76496, 16000000/4) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) diff --git a/src/mame/drivers/y2.cpp b/src/mame/drivers/y2.cpp index 3164c42597e..da21bffb575 100644 --- a/src/mame/drivers/y2.cpp +++ b/src/mame/drivers/y2.cpp @@ -75,7 +75,7 @@ MACHINE_CONFIG_START(system_board_y2_state::system_board_y2) MCFG_PALETTE_ADD("palette", 0x1000) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MACHINE_CONFIG_END ROM_START( kof2002um ) diff --git a/src/mame/drivers/yiear.cpp b/src/mame/drivers/yiear.cpp index c413a83bae7..785dcb5f7cc 100644 --- a/src/mame/drivers/yiear.cpp +++ b/src/mame/drivers/yiear.cpp @@ -304,7 +304,7 @@ MACHINE_CONFIG_START(yiear_state::yiear) MCFG_PALETTE_INIT_OWNER(yiear_state, yiear) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("trackfld_audio", TRACKFLD_AUDIO, 0) diff --git a/src/mame/drivers/ymmu100.cpp b/src/mame/drivers/ymmu100.cpp index a307745e577..0188c355a5c 100644 --- a/src/mame/drivers/ymmu100.cpp +++ b/src/mame/drivers/ymmu100.cpp @@ -452,7 +452,8 @@ MACHINE_CONFIG_START(mu100_state::mu100) MCFG_SCREEN_VISIBLE_AREA(0, 899, 0, 240) MCFG_DEFAULT_LAYOUT(layout_lcd) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_MIDI_PORT_ADD("mdin", midiin_slot, "midiin") MCFG_MIDI_RX_HANDLER(WRITELINE("maincpu:sci0", h8_sci_device, rx_w)) diff --git a/src/mame/drivers/yunsun16.cpp b/src/mame/drivers/yunsun16.cpp index 85ca0e9906b..10c60ceb6e4 100644 --- a/src/mame/drivers/yunsun16.cpp +++ b/src/mame/drivers/yunsun16.cpp @@ -614,7 +614,8 @@ MACHINE_CONFIG_START(yunsun16_state::magicbub) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -654,7 +655,8 @@ MACHINE_CONFIG_START(yunsun16_state::shocking) MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("oki", OKIM6295, XTAL(16'000'000)/16, okim6295_device::PIN7_HIGH) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 1.0) diff --git a/src/mame/drivers/yunsung8.cpp b/src/mame/drivers/yunsung8.cpp index c30e10b6973..54ceda5da9a 100644 --- a/src/mame/drivers/yunsung8.cpp +++ b/src/mame/drivers/yunsung8.cpp @@ -363,7 +363,8 @@ MACHINE_CONFIG_START(yunsung8_state::yunsung8) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", 0)) diff --git a/src/mame/drivers/yuvomz80.cpp b/src/mame/drivers/yuvomz80.cpp index 10b5fd57774..a5e35dfba87 100644 --- a/src/mame/drivers/yuvomz80.cpp +++ b/src/mame/drivers/yuvomz80.cpp @@ -109,7 +109,8 @@ MACHINE_CONFIG_START(yuvomz80_state::goldhexa) MCFG_DEVICE_ADD("ppi2", I8255A, 0) MCFG_DEVICE_ADD("ppi3", I8255A, 0) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymz", YMZ280B, XTAL(16'934'400)) MCFG_SOUND_ROUTE(0, "lspeaker", 1.00) MCFG_SOUND_ROUTE(1, "rspeaker", 1.00) @@ -123,7 +124,7 @@ MACHINE_CONFIG_START(yuvomz80_state::hexapres) MCFG_DEVICE_PROGRAM_MAP(audio_mem_map) MCFG_DEVICE_IO_MAP(hexapres_audio_io_map) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2610, 8000000) // type guessed MCFG_YM2610_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) MCFG_SOUND_ROUTE(0, "mono", 0.25) diff --git a/src/mame/drivers/z1013.cpp b/src/mame/drivers/z1013.cpp index 7904faa8f6d..ade01619763 100644 --- a/src/mame/drivers/z1013.cpp +++ b/src/mame/drivers/z1013.cpp @@ -387,7 +387,7 @@ MACHINE_CONFIG_START(z1013_state::z1013) MCFG_PALETTE_ADD_MONOCHROME("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mame/drivers/z88.cpp b/src/mame/drivers/z88.cpp index 0a76470650a..322ba36ab8f 100644 --- a/src/mame/drivers/z88.cpp +++ b/src/mame/drivers/z88.cpp @@ -653,7 +653,7 @@ MACHINE_CONFIG_START(z88_state::z88) MCFG_UPD65031_MEM_UPDATE_CB(z88_state, bankswitch_update) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/z9001.cpp b/src/mame/drivers/z9001.cpp index 3659f4a24b4..350c5995b86 100644 --- a/src/mame/drivers/z9001.cpp +++ b/src/mame/drivers/z9001.cpp @@ -223,7 +223,7 @@ MACHINE_CONFIG_START(z9001_state::z9001) MCFG_PALETTE_ADD("palette", 16) /* Sound */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MCFG_DEVICE_ADD("beeper", BEEP, 800) diff --git a/src/mame/drivers/zac2650.cpp b/src/mame/drivers/zac2650.cpp index f0fc17f7eeb..f234793b912 100644 --- a/src/mame/drivers/zac2650.cpp +++ b/src/mame/drivers/zac2650.cpp @@ -251,7 +251,7 @@ MACHINE_CONFIG_START(zac2650_state::tinvader) MCFG_PALETTE_INIT_OWNER(zac2650_state, zac2650) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("s2636", S2636, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mame/drivers/zaccaria.cpp b/src/mame/drivers/zaccaria.cpp index 7482cb63a02..ae2ae5cfd21 100644 --- a/src/mame/drivers/zaccaria.cpp +++ b/src/mame/drivers/zaccaria.cpp @@ -370,7 +370,7 @@ MACHINE_CONFIG_START(zaccaria_state::zaccaria) MCFG_PALETTE_INIT_OWNER(zaccaria_state, zaccaria) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("audiopcb", ZACCARIA_1B11142) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 1.0) MACHINE_CONFIG_END diff --git a/src/mame/drivers/zaurus.cpp b/src/mame/drivers/zaurus.cpp index 4cb322c87d1..d8b7bba64ad 100644 --- a/src/mame/drivers/zaurus.cpp +++ b/src/mame/drivers/zaurus.cpp @@ -1770,7 +1770,7 @@ MACHINE_CONFIG_START(zaurus_state::zaurus) MCFG_PALETTE_ADD("palette", 8) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); // MCFG_DEVICE_ADD("aysnd", AY8910, MAIN_CLOCK/4) // MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30) MACHINE_CONFIG_END diff --git a/src/mame/drivers/zaxxon.cpp b/src/mame/drivers/zaxxon.cpp index a298ca7becf..50a2fce074d 100644 --- a/src/mame/drivers/zaxxon.cpp +++ b/src/mame/drivers/zaxxon.cpp @@ -957,7 +957,7 @@ MACHINE_CONFIG_START(zaxxon_state::zaxxon) root(config); /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); zaxxon_samples(config); MACHINE_CONFIG_END @@ -995,7 +995,7 @@ MACHINE_CONFIG_START(zaxxon_state::futspye) MCFG_SCREEN_UPDATE_DRIVER(zaxxon_state, screen_update_futspy) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); zaxxon_samples(config); MACHINE_CONFIG_END @@ -1019,7 +1019,7 @@ MACHINE_CONFIG_START(zaxxon_state::razmataze) MCFG_SCREEN_UPDATE_DRIVER(zaxxon_state, screen_update_razmataz) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_SEGAUSBROM_ADD("usbsnd") MACHINE_CONFIG_END @@ -1070,7 +1070,7 @@ MACHINE_CONFIG_START(zaxxon_state::congo) MCFG_SCREEN_UPDATE_DRIVER(zaxxon_state, screen_update_congo) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/zerozone.cpp b/src/mame/drivers/zerozone.cpp index 57178ba84d2..096d71598da 100644 --- a/src/mame/drivers/zerozone.cpp +++ b/src/mame/drivers/zerozone.cpp @@ -197,7 +197,7 @@ MACHINE_CONFIG_START(zerozone_state::zerozone) MCFG_PALETTE_FORMAT(RRRRGGGGBBBBRGBx) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/zn.cpp b/src/mame/drivers/zn.cpp index c1eee1de8a4..f2a92a3157d 100644 --- a/src/mame/drivers/zn.cpp +++ b/src/mame/drivers/zn.cpp @@ -405,7 +405,8 @@ MACHINE_CONFIG_START(zn_state::zn1_1mb_vram) MCFG_PSXGPU_ADD( "maincpu", "gpu", CXD8561Q, 0x100000, XTAL(53'693'175) ) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") @@ -451,7 +452,8 @@ MACHINE_CONFIG_START(zn_state::zn2) MCFG_PSXGPU_ADD( "maincpu", "gpu", CXD8654Q, 0x200000, XTAL(53'693'175) ) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/zodiack.cpp b/src/mame/drivers/zodiack.cpp index 412782a3cd4..2fb04d67b3e 100644 --- a/src/mame/drivers/zodiack.cpp +++ b/src/mame/drivers/zodiack.cpp @@ -593,7 +593,7 @@ MACHINE_CONFIG_START(zodiack_state::zodiack) MCFG_PALETTE_INIT_OWNER(zodiack_state,zodiack) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_GENERIC_LATCH_8_ADD("soundlatch") diff --git a/src/mame/drivers/zorba.cpp b/src/mame/drivers/zorba.cpp index 533261ac9eb..c7f5b1f8e5a 100644 --- a/src/mame/drivers/zorba.cpp +++ b/src/mame/drivers/zorba.cpp @@ -149,7 +149,7 @@ MACHINE_CONFIG_START(zorba_state::zorba) MCFG_PALETTE_ADD_MONOCHROME_HIGHLIGHT(m_palette) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD(m_beep, BEEP, 800) // should be horizontal frequency / 16, so depends on CRTC parameters MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) diff --git a/src/mame/drivers/zr107.cpp b/src/mame/drivers/zr107.cpp index 033117b47ea..013de144d41 100644 --- a/src/mame/drivers/zr107.cpp +++ b/src/mame/drivers/zr107.cpp @@ -821,7 +821,8 @@ MACHINE_CONFIG_START(zr107_state::zr107) MCFG_K056800_ADD("k056800", XTAL(18'432'000)) MCFG_K056800_INT_HANDLER(INPUTLINE("audiocpu", M68K_IRQ_1)) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("k054539_1", K054539, XTAL(18'432'000)) MCFG_DEVICE_ADDRESS_MAP(0, k054539_map) @@ -900,7 +901,8 @@ MACHINE_CONFIG_START(zr107_state::jetwave) MCFG_K056800_ADD("k056800", XTAL(18'432'000)) MCFG_K056800_INT_HANDLER(INPUTLINE("audiocpu", M68K_IRQ_1)) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("k054539_1", K054539, XTAL(18'432'000)) MCFG_DEVICE_ADDRESS_MAP(0, k054539_map) diff --git a/src/mame/drivers/zrt80.cpp b/src/mame/drivers/zrt80.cpp index 5093e779ac2..2ade3c2dc55 100644 --- a/src/mame/drivers/zrt80.cpp +++ b/src/mame/drivers/zrt80.cpp @@ -289,7 +289,7 @@ MACHINE_CONFIG_START(zrt80_state::zrt80) MCFG_PALETTE_ADD_MONOCHROME("palette") /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, 800) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/drivers/zwackery.cpp b/src/mame/drivers/zwackery.cpp index bea5c6ba9be..79a387474dd 100644 --- a/src/mame/drivers/zwackery.cpp +++ b/src/mame/drivers/zwackery.cpp @@ -536,7 +536,7 @@ MACHINE_CONFIG_START(zwackery_state::zwackery) MCFG_VIDEO_START_OVERRIDE(zwackery_state, zwackery) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("csd", MIDWAY_CHEAP_SQUEAK_DELUXE) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 1.0) MACHINE_CONFIG_END diff --git a/src/mame/drivers/zx.cpp b/src/mame/drivers/zx.cpp index 9a1bd9ebd20..806e4c965e2 100644 --- a/src/mame/drivers/zx.cpp +++ b/src/mame/drivers/zx.cpp @@ -382,7 +382,7 @@ MACHINE_CONFIG_START(zx_state::zx81_spk ) zx81(config); /* sound hardware */ /* Used by pc8300/lambda/pow3000 */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75) MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") diff --git a/src/mame/etc/korgm1.cpp b/src/mame/etc/korgm1.cpp index a67159fad23..ffc459f2177 100644 --- a/src/mame/etc/korgm1.cpp +++ b/src/mame/etc/korgm1.cpp @@ -189,7 +189,7 @@ MACHINE_CONFIG_START(korgm1_state::korgm1) MCFG_PALETTE_ADD("palette", 8) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); // MCFG_DEVICE_ADD("aysnd", AY8910, MAIN_CLOCK/4) // MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30) MACHINE_CONFIG_END diff --git a/src/mame/etc/template_driver.cpp b/src/mame/etc/template_driver.cpp index 68862fabaa7..0daeec4366c 100644 --- a/src/mame/etc/template_driver.cpp +++ b/src/mame/etc/template_driver.cpp @@ -171,7 +171,7 @@ MACHINE_CONFIG_START(xxx_state::xxx) MCFG_PALETTE_INIT_OWNER(xxx_state, xxx) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); // MCFG_DEVICE_ADD("aysnd", AY8910, MAIN_CLOCK/4) // MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30) MACHINE_CONFIG_END diff --git a/src/mame/machine/at.cpp b/src/mame/machine/at.cpp index 1451ef259d9..cf46cc0f03c 100644 --- a/src/mame/machine/at.cpp +++ b/src/mame/machine/at.cpp @@ -128,7 +128,7 @@ MACHINE_CONFIG_START(at_mb_device::device_add_mconfig) MCFG_MC146818_CENTURY_INDEX(0x32) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/machine/cit101_kbd.cpp b/src/mame/machine/cit101_kbd.cpp index 2ee02093e38..c1552101670 100644 --- a/src/mame/machine/cit101_kbd.cpp +++ b/src/mame/machine/cit101_kbd.cpp @@ -154,7 +154,7 @@ INPUT_PORTS_START(cit101_hle_keyboard) INPUT_PORTS_END MACHINE_CONFIG_START(cit101_hle_keyboard_device::device_add_mconfig) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, 786) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) MACHINE_CONFIG_END diff --git a/src/mame/machine/compiskb.cpp b/src/mame/machine/compiskb.cpp index fb7c282aa6e..69498be7f6d 100644 --- a/src/mame/machine/compiskb.cpp +++ b/src/mame/machine/compiskb.cpp @@ -65,7 +65,7 @@ MACHINE_CONFIG_START(compis_keyboard_device::device_add_mconfig) MCFG_MCS48_PORT_T1_IN_CB(NOOP) // ??? // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD(SPEAKER_TAG, SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END diff --git a/src/mame/machine/dec_lk201.cpp b/src/mame/machine/dec_lk201.cpp index cc7efb52f15..8abaf035594 100644 --- a/src/mame/machine/dec_lk201.cpp +++ b/src/mame/machine/dec_lk201.cpp @@ -215,7 +215,7 @@ MACHINE_CONFIG_START(lk201_device::device_add_mconfig) MCFG_DEVICE_ADD(LK201_CPU_TAG, M68HC05EG, XTAL(4'000'000)) // actually 68HC05C4, clock verified by Lord_Nightmare MCFG_DEVICE_PROGRAM_MAP(lk201_map) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD(LK201_SPK_TAG, BEEP, 2000) // clocked by a 555 timer at E8, the volume of the beep is controllable by: (8051 model) P2.0 thru P2.3, or (6805 model) the upper 4 bits of the LED data latch MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) MACHINE_CONFIG_END diff --git a/src/mame/machine/genpin.cpp b/src/mame/machine/genpin.cpp index c35073f09ee..4702ab1227e 100644 --- a/src/mame/machine/genpin.cpp +++ b/src/mame/machine/genpin.cpp @@ -12,7 +12,7 @@ This is for common pinball machine coding. MACHINE_CONFIG_START(genpin_class::genpin_audio) - MCFG_SPEAKER_STANDARD_MONO("mechvol") + SPEAKER(config, "mechvol").front_center(); MCFG_DEVICE_ADD("samples", SAMPLES) MCFG_SAMPLES_CHANNELS(6) MCFG_SAMPLES_NAMES(genpin_sample_names) diff --git a/src/mame/machine/hec2hrp.cpp b/src/mame/machine/hec2hrp.cpp index 00b7be2b622..0a4d30f5eac 100644 --- a/src/mame/machine/hec2hrp.cpp +++ b/src/mame/machine/hec2hrp.cpp @@ -804,7 +804,7 @@ static DISCRETE_SOUND_START( hec2hrp_discrete ) DISCRETE_SOUND_END MACHINE_CONFIG_START(hec2hrp_state::hector_audio) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); 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*/ diff --git a/src/mame/machine/inder_sb.cpp b/src/mame/machine/inder_sb.cpp index 8b11331eb63..817a9aca0c3 100644 --- a/src/mame/machine/inder_sb.cpp +++ b/src/mame/machine/inder_sb.cpp @@ -160,7 +160,7 @@ MACHINE_CONFIG_START(inder_sb_device::device_add_mconfig) // runs in IM2 , vector set to 0x20 , values there are 0xCC, 0x02, 0xE6, 0x02, 0x09, 0x03, 0x23, 0x03 (so 02cc, 02e6, 0309, 0323, all of which are valid irq handlers) MCFG_Z80CTC_INTR_CB(INPUTLINE("audiocpu", 0)) - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac0", DAC_8BIT_R2R_TWOS_COMPLEMENT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) // unknown DAC MCFG_DEVICE_ADD("dac1", DAC_8BIT_R2R_TWOS_COMPLEMENT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) // unknown DAC MCFG_DEVICE_ADD("dac2", DAC_8BIT_R2R_TWOS_COMPLEMENT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) // unknown DAC diff --git a/src/mame/machine/kay_kbd.cpp b/src/mame/machine/kay_kbd.cpp index 932527690fc..d52476735c9 100644 --- a/src/mame/machine/kay_kbd.cpp +++ b/src/mame/machine/kay_kbd.cpp @@ -358,7 +358,7 @@ MACHINE_CONFIG_START(kaypro_10_keyboard_device::device_add_mconfig) MCFG_MCS48_PORT_BUS_IN_CB(READ8(*this, kaypro_10_keyboard_device, bus_r)) MCFG_MCS48_PORT_BUS_OUT_CB(WRITE8(*this, kaypro_10_keyboard_device, bus_w)) - MCFG_SPEAKER_STANDARD_MONO("keyboard") + SPEAKER(config, "keyboard").front_center(); MCFG_DEVICE_ADD("bell", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "keyboard", 0.25) MACHINE_CONFIG_END diff --git a/src/mame/machine/km035.cpp b/src/mame/machine/km035.cpp index d5186ee16ed..3aa2dc7e4a2 100644 --- a/src/mame/machine/km035.cpp +++ b/src/mame/machine/km035.cpp @@ -66,7 +66,7 @@ MACHINE_CONFIG_START(km035_device::device_add_mconfig) MCFG_MCS48_PORT_T0_IN_CB(READLINE(*this, km035_device, t0_r)) MCFG_MCS48_PORT_T1_IN_CB(READLINE(*this, km035_device, t1_r)) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD(KM035_SPK_TAG, BEEP, 3250) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) MACHINE_CONFIG_END diff --git a/src/mame/machine/megadriv.cpp b/src/mame/machine/megadriv.cpp index 4091f2ef70e..ad13828f377 100644 --- a/src/mame/machine/megadriv.cpp +++ b/src/mame/machine/megadriv.cpp @@ -917,7 +917,8 @@ MACHINE_CONFIG_START(md_base_state::md_ntsc) MCFG_VIDEO_START_OVERRIDE(md_base_state, megadriv) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2612, MASTER_CLOCK_NTSC/7) /* 7.67 MHz */ MCFG_SOUND_ROUTE(0, "lspeaker", 0.50) @@ -973,7 +974,8 @@ MACHINE_CONFIG_START(md_base_state::md_pal) MCFG_VIDEO_START_OVERRIDE(md_base_state, megadriv) /* sound hardware */ - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_DEVICE_ADD("ymsnd", YM2612, MASTER_CLOCK_PAL/7) /* 7.67 MHz */ MCFG_SOUND_ROUTE(0, "lspeaker", 0.50) diff --git a/src/mame/machine/mm1kb.cpp b/src/mame/machine/mm1kb.cpp index fe649ab2518..98e4108dbec 100644 --- a/src/mame/machine/mm1kb.cpp +++ b/src/mame/machine/mm1kb.cpp @@ -58,7 +58,7 @@ bool mm1_keyboard_device::first_time = true; //------------------------------------------------- MACHINE_CONFIG_START(mm1_keyboard_device::device_add_mconfig) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("keyboard_and_chassis_sounds", SAMPLES) MCFG_SAMPLES_CHANNELS(2) MCFG_SAMPLES_NAMES(mm1_kb_sample_names) diff --git a/src/mame/machine/mmboard.cpp b/src/mame/machine/mmboard.cpp index 129d8d6b2ae..0ceef258991 100644 --- a/src/mame/machine/mmboard.cpp +++ b/src/mame/machine/mmboard.cpp @@ -333,7 +333,7 @@ MACHINE_CONFIG_START(mephisto_display_modul_device::device_add_mconfig) MCFG_HD44780_LCD_SIZE(2, 16) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, 3250) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) MACHINE_CONFIG_END diff --git a/src/mame/machine/mpu4.cpp b/src/mame/machine/mpu4.cpp index a41c0410049..a75ac253531 100644 --- a/src/mame/machine/mpu4.cpp +++ b/src/mame/machine/mpu4.cpp @@ -3097,7 +3097,8 @@ MACHINE_CONFIG_START(mpu4_state::mpu4base) mpu4_common(config); - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_NVRAM_ADD_0FILL("nvram") diff --git a/src/mame/machine/ms7004.cpp b/src/mame/machine/ms7004.cpp index 19096297cbe..bc84c17bb40 100644 --- a/src/mame/machine/ms7004.cpp +++ b/src/mame/machine/ms7004.cpp @@ -67,7 +67,7 @@ MACHINE_CONFIG_START(ms7004_device::device_add_mconfig) MCFG_I8243_ADD("i8243", NOOP, WRITE8(*this, ms7004_device, i8243_port_w)) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD(MS7004_SPK_TAG, BEEP, 3250) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) MACHINE_CONFIG_END diff --git a/src/mame/machine/pcd_kbd.cpp b/src/mame/machine/pcd_kbd.cpp index 77843eeb714..9bc5706f245 100644 --- a/src/mame/machine/pcd_kbd.cpp +++ b/src/mame/machine/pcd_kbd.cpp @@ -36,7 +36,7 @@ MACHINE_CONFIG_START(pcd_keyboard_device::device_add_mconfig) MCFG_MCS48_PORT_T0_IN_CB(READLINE(*this, pcd_keyboard_device, t0_r)) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END diff --git a/src/mame/machine/st0016.cpp b/src/mame/machine/st0016.cpp index e6e9a5e39a7..a38b3378a6b 100644 --- a/src/mame/machine/st0016.cpp +++ b/src/mame/machine/st0016.cpp @@ -119,7 +119,8 @@ READ8_MEMBER(st0016_cpu_device::soundram_read) /* CPU interface */ MACHINE_CONFIG_START(st0016_cpu_device::device_add_mconfig) - MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") + SPEAKER(config, "lspeaker").front_left(); + SPEAKER(config, "rspeaker").front_right(); MCFG_PALETTE_ADD("palette", 16*16*4+1) diff --git a/src/mame/machine/teleprinter.cpp b/src/mame/machine/teleprinter.cpp index 1e41f6ce64e..1bd3d21e07f 100644 --- a/src/mame/machine/teleprinter.cpp +++ b/src/mame/machine/teleprinter.cpp @@ -221,7 +221,7 @@ MACHINE_CONFIG_START(teleprinter_device::device_add_mconfig) MCFG_DEVICE_ADD("keyboard", GENERIC_KEYBOARD, 0) MCFG_GENERIC_KEYBOARD_CB(PUT(generic_terminal_device, kbd_put)) - MCFG_SPEAKER_STANDARD_MONO("bell") + SPEAKER(config, "bell").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, 2'000) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "bell", 0.50) MACHINE_CONFIG_END diff --git a/src/mame/machine/v1050kb.cpp b/src/mame/machine/v1050kb.cpp index fdd39b32528..4a800390c13 100644 --- a/src/mame/machine/v1050kb.cpp +++ b/src/mame/machine/v1050kb.cpp @@ -80,7 +80,7 @@ MACHINE_CONFIG_START(v1050_keyboard_device::device_add_mconfig) MCFG_DEVICE_DISABLE() // TODO // discrete sound - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD(DISCRETE_TAG, DISCRETE, v1050kb_discrete) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80) MACHINE_CONFIG_END diff --git a/src/mame/machine/vt100_kbd.cpp b/src/mame/machine/vt100_kbd.cpp index a6143ee4999..c1c1bf113f6 100644 --- a/src/mame/machine/vt100_kbd.cpp +++ b/src/mame/machine/vt100_kbd.cpp @@ -192,7 +192,7 @@ vt100_keyboard_device::vt100_keyboard_device(const machine_config &mconfig, devi //------------------------------------------------- MACHINE_CONFIG_START(vt100_keyboard_device::device_add_mconfig) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, 786) // 7.945us per serial clock = ~125865.324hz, / 160 clocks per char = ~ 786 hz MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) diff --git a/src/mame/machine/wangpckb.cpp b/src/mame/machine/wangpckb.cpp index eb91a982730..62fec62a771 100644 --- a/src/mame/machine/wangpckb.cpp +++ b/src/mame/machine/wangpckb.cpp @@ -121,7 +121,7 @@ MACHINE_CONFIG_START(wangpc_keyboard_device::device_add_mconfig) MCFG_MCS51_SERIAL_RX_CB(READ8(*this, wangpc_keyboard_device, mcs51_rx_callback)) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD(SN76496_TAG, SN76496, 2000000) // ??? MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) MACHINE_CONFIG_END diff --git a/src/mame/machine/zorbakbd.cpp b/src/mame/machine/zorbakbd.cpp index c772425df02..78351d5e66a 100644 --- a/src/mame/machine/zorbakbd.cpp +++ b/src/mame/machine/zorbakbd.cpp @@ -318,7 +318,7 @@ MACHINE_CONFIG_START(zorba_keyboard_device::device_add_mconfig) MCFG_M68705_PORTC_W_CB(WRITE8(*this, zorba_keyboard_device, mcu_pc_w)); // TODO: beeper frequency is unknown, using value from Sun keyboard for now - MCFG_SPEAKER_STANDARD_MONO("bell") + SPEAKER(config, "bell").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, ATTOSECONDS_TO_HZ(480 * ATTOSECONDS_PER_MICROSECOND)) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "bell", 0.4) MACHINE_CONFIG_END diff --git a/src/mame/video/911_vdt.cpp b/src/mame/video/911_vdt.cpp index b7804176618..56d450c5d77 100644 --- a/src/mame/video/911_vdt.cpp +++ b/src/mame/video/911_vdt.cpp @@ -812,7 +812,7 @@ MACHINE_CONFIG_START(vdt911_device::device_add_mconfig) MCFG_SCREEN_VISIBLE_AREA(0, 560-1, 0, /*250*/280-1) MCFG_SCREEN_PALETTE("palette") - MCFG_SPEAKER_STANDARD_MONO("speaker") + SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("beeper", BEEP, 3250) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.50) diff --git a/src/mame/video/cidelsa.cpp b/src/mame/video/cidelsa.cpp index f969aafa982..aa383261fd0 100644 --- a/src/mame/video/cidelsa.cpp +++ b/src/mame/video/cidelsa.cpp @@ -154,7 +154,7 @@ MACHINE_CONFIG_START(cidelsa_state::destryer_video) MCFG_CDP1869_SCREEN_PAL_ADD(CDP1869_TAG, SCREEN_TAG, DESTRYER_CHR2) MCFG_SCREEN_DEFAULT_POSITION(1.226, 0.012, 1.4, 0.044) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_CDP1869_ADD(CDP1869_TAG, DESTRYER_CHR2, cidelsa_page_ram) MCFG_CDP1869_CHAR_PCB_READ_OWNER(cidelsa_state, cidelsa_pcb_r) MCFG_CDP1869_CHAR_RAM_READ_OWNER(cidelsa_state, cidelsa_charram_r) @@ -168,7 +168,7 @@ MACHINE_CONFIG_START(cidelsa_state::altair_video) MCFG_CDP1869_SCREEN_PAL_ADD(CDP1869_TAG, SCREEN_TAG, ALTAIR_CHR2) MCFG_SCREEN_DEFAULT_POSITION(1.226, 0.012, 1.4, 0.044) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_CDP1869_ADD(CDP1869_TAG, ALTAIR_CHR2, cidelsa_page_ram) MCFG_CDP1869_CHAR_PCB_READ_OWNER(cidelsa_state, cidelsa_pcb_r) MCFG_CDP1869_CHAR_RAM_READ_OWNER(cidelsa_state, cidelsa_charram_r) @@ -182,7 +182,7 @@ MACHINE_CONFIG_START(draco_state::draco_video) MCFG_CDP1869_SCREEN_PAL_ADD(CDP1869_TAG, SCREEN_TAG, DRACO_CHR2) MCFG_SCREEN_DEFAULT_POSITION(1.226, 0.012, 1.360, 0.024) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_CDP1869_ADD(CDP1869_TAG, DRACO_CHR2, draco_page_ram) MCFG_CDP1869_CHAR_PCB_READ_OWNER(draco_state, draco_pcb_r) MCFG_CDP1869_CHAR_RAM_READ_OWNER(draco_state, draco_charram_r) diff --git a/src/mame/video/comx35.cpp b/src/mame/video/comx35.cpp index 6ad14b00c60..d59b84b087e 100644 --- a/src/mame/video/comx35.cpp +++ b/src/mame/video/comx35.cpp @@ -93,7 +93,7 @@ MACHINE_CONFIG_START(comx35_state::comx35_pal_video) MCFG_CDP1869_SCREEN_PAL_ADD(CDP1869_TAG, SCREEN_TAG, cdp1869_device::DOT_CLK_PAL) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_CDP1869_ADD(CDP1869_TAG, cdp1869_device::DOT_CLK_PAL, cdp1869_page_ram) MCFG_CDP1869_COLOR_CLOCK(cdp1869_device::COLOR_CLK_PAL) @@ -113,7 +113,7 @@ MACHINE_CONFIG_START(comx35_state::comx35_ntsc_video) MCFG_CDP1869_SCREEN_NTSC_ADD(CDP1869_TAG, SCREEN_TAG, cdp1869_device::DOT_CLK_NTSC) /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_CDP1869_ADD(CDP1869_TAG, cdp1869_device::DOT_CLK_NTSC, cdp1869_page_ram) MCFG_CDP1869_COLOR_CLOCK(cdp1869_device::COLOR_CLK_NTSC) diff --git a/src/mame/video/pecom.cpp b/src/mame/video/pecom.cpp index e20f9e16dfa..37bed986e47 100644 --- a/src/mame/video/pecom.cpp +++ b/src/mame/video/pecom.cpp @@ -94,7 +94,7 @@ void pecom_state::video_start() MACHINE_CONFIG_START(pecom_state::pecom_video) MCFG_CDP1869_SCREEN_PAL_ADD(CDP1869_TAG, SCREEN_TAG, cdp1869_device::DOT_CLK_PAL) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_CDP1869_ADD(CDP1869_TAG, cdp1869_device::DOT_CLK_PAL, cdp1869_page_ram) MCFG_CDP1869_COLOR_CLOCK(cdp1869_device::COLOR_CLK_PAL) diff --git a/src/mame/video/tmc1800.cpp b/src/mame/video/tmc1800.cpp index 389ad1e28e7..29414734828 100644 --- a/src/mame/video/tmc1800.cpp +++ b/src/mame/video/tmc1800.cpp @@ -56,7 +56,7 @@ MACHINE_CONFIG_START(tmc2000_state::tmc2000_video) MCFG_CDP1864_SCREEN_ADD(SCREEN_TAG, XTAL(1'750'000)) MCFG_SCREEN_UPDATE_DEVICE(CDP1864_TAG, cdp1864_device, screen_update) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_CDP1864_ADD(CDP1864_TAG, SCREEN_TAG, XTAL(1'750'000), GND, INPUTLINE(CDP1802_TAG, COSMAC_INPUT_LINE_INT), INPUTLINE(CDP1802_TAG, COSMAC_INPUT_LINE_DMAOUT), INPUTLINE(CDP1802_TAG, COSMAC_INPUT_LINE_EF1), NOOP, READLINE(*this, tmc2000_state, rdata_r), READLINE(*this, tmc2000_state, bdata_r), READLINE(*this, tmc2000_state, gdata_r)) MCFG_CDP1864_CHROMINANCE(RES_K(1.21), RES_K(2.05), RES_K(2.26), RES_K(3.92)) // RL64, RL63, RL61, RL65 (also RH62 (2K pot) in series, but ignored here) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) @@ -66,7 +66,7 @@ MACHINE_CONFIG_START(nano_state::nano_video) MCFG_CDP1864_SCREEN_ADD(SCREEN_TAG, XTAL(1'750'000)) MCFG_SCREEN_UPDATE_DEVICE(CDP1864_TAG, cdp1864_device, screen_update) - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_CDP1864_ADD(CDP1864_TAG, SCREEN_TAG, XTAL(1'750'000), GND, INPUTLINE(CDP1802_TAG, COSMAC_INPUT_LINE_INT), INPUTLINE(CDP1802_TAG, COSMAC_INPUT_LINE_DMAOUT), INPUTLINE(CDP1802_TAG, COSMAC_INPUT_LINE_EF1), NOOP, VCC, VCC, VCC) MCFG_CDP1864_CHROMINANCE(RES_K(1.21), RES_INF, RES_INF, 0) // R18 (unconfirmed) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) diff --git a/src/mame/video/tmc600.cpp b/src/mame/video/tmc600.cpp index 58b40dfc980..580f34e51f4 100644 --- a/src/mame/video/tmc600.cpp +++ b/src/mame/video/tmc600.cpp @@ -123,7 +123,7 @@ MACHINE_CONFIG_START(tmc600_state::tmc600_video) MCFG_GFXDECODE_ADD("gfxdecode", CDP1869_TAG":palette", tmc600) // sound hardware - MCFG_SPEAKER_STANDARD_MONO("mono") + SPEAKER(config, "mono").front_center(); MCFG_CDP1869_ADD(CDP1869_TAG, cdp1869_device::DOT_CLK_PAL, cdp1869_page_ram) MCFG_CDP1869_COLOR_CLOCK(cdp1869_device::COLOR_CLK_PAL) MCFG_CDP1869_CHAR_PCB_READ_OWNER(tmc600_state, tmc600_pcb_r) -- cgit v1.2.3