Previous 199869 Revisions Next

r23831 Friday 21st June, 2013 at 10:26:41 UTC by Miodrag Milanović
extended large amount of devices with shortname and source file data (nw)
[src/emu]sprite.h
[src/emu/cpu/psx]dma.c irq.c mdec.c rcnt.c sio.c sio.h
[src/emu/sound]2151intf.c 2203intf.c 2413intf.c 2608intf.c 2610intf.c 2610intf.h 2612intf.c 2612intf.h 262intf.c 3526intf.c 3812intf.c 8950intf.c aica.c asc.c astrocde.c awacs.c ay8910.c ay8910.h beep.c c140.c c352.c c6280.c cdda.c cdp1863.c cdp1864.c cdp1869.c cem3394.c digitalk.c discrete.c dmadac.c es5503.c es5506.c es5506.h es8712.c flt_rc.c flt_vol.c gaelco.c gaelco.h hc55516.c hc55516.h i5000.c ics2115.c iremga20.c k005289.c k007232.c k051649.c k053260.c k056800.c lmc1992.c mas3507d.c mos6560.c mos6560.h mos6581.c mos6581.h mos7360.c msm5205.c msm5205.h msm5232.c multipcm.c n63701x.c namco.c namco.h nes_apu.c nile.c okim6258.c okim6295.c okim6376.c okim9810.c pokey.c rf5c400.c rf5c68.c s14001a.c s2636.c saa1099.c samples.c scsp.c sn76477.c sn76496.c sn76496.h snkwave.c sp0250.c sp0256.c speaker.c spu.c st0016.c t6721a.c t6w28.c tc8830f.c tiaintf.c tms3615.c tms36xx.c tms5110.c tms5110.h tms5220.c tms5220.h upd7759.c upd7759.h vlm5030.c vrender0.c wave.c x1_010.c ymf271.c ymf278b.c ymz280b.c ymz770.c zsg2.c
[src/emu/video]bufsprite.h
[src/mame/audio]amiga.c beezer.c cps3.c decobsmt.c dsbz80.c exidy.c exidy.h exidy440.c flower.c geebee.c gomoku.c gridlee.c hyprolyb.c irem.c leland.c m72.c micro3d.c phoenix.c pleiads.c pleiads.h polepos.c redbaron.c segag80r.c segasnd.c seibu.c snes_snd.c snk6502.c taitosnd.c tiamc1.c timeplt.c trackfld.c tx1.c warpwarp.c wiping.c
[src/mame/drivers]littlerb.c mjkjidai.c namcoic.c pinkiri8.c renegade.c
[src/mame/includes]leland.h tx1.h
[src/mame/machine]atari_vg.c bfm_bd1.c bfm_bda.c buggychl.c cd32.c cdi070.c cdicdic.c cdislave.c decocass_tape.c gaelco3d.c kaneko_calc3.c kaneko_hit.c kaneko_toybox.c maple-dc.c mathbox.c mega32x.c mega32x.h megacd.c megacd.h megacdcd.c n64.c naomig1.c nmk112.c ns11prot.c ns11prot.h segaic16.c taitoio.c ticket.c
[src/mame/video]atarirle.c decbac06.c deckarn.c decmxc06.c deco16ic.c decocomn.c decospr.c gp9001.c kan_pand.c kaneko_grap2.c kaneko_spr.c kaneko_tmap.c konicdev.c mcd212.c powervr2.c ppu2c0x.c ppu2c0x.h scn2674.c segaic24.c seta001.c sknsspr.c st0020.c taitoic.c tia.c vrender0.c vsystem_spr.c vsystem_spr2.c

trunk/src/emu/sprite.h
r23830r23831
114114protected:
115115   // construction/destruction - only for subclasses
116116   sprite_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, int dirty_granularity = 3)
117      : device_t(mconfig, type, name, tag, owner, 0),
117      : device_t(mconfig, type, name, tag, owner, 0, "sprite", __FILE__),
118118         m_xorigin(0),
119119         m_yorigin(0),
120120         m_spriteram(NULL),
trunk/src/emu/cpu/psx/rcnt.c
r23830r23831
2525const device_type PSX_RCNT = &device_creator<psxrcnt_device>;
2626
2727psxrcnt_device::psxrcnt_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
28   device_t(mconfig, PSX_RCNT, "PSX RCNT", tag, owner, clock),
28   device_t(mconfig, PSX_RCNT, "PSX RCNT", tag, owner, clock, "psxrcnt", __FILE__),
2929   m_irq0_handler(*this),
3030   m_irq1_handler(*this),
3131   m_irq2_handler(*this)
trunk/src/emu/cpu/psx/mdec.c
r23830r23831
2929const device_type PSX_MDEC = &device_creator<psxmdec_device>;
3030
3131psxmdec_device::psxmdec_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
32   : device_t(mconfig, PSX_MDEC, "PSX MDEC", tag, owner, clock)
32   : device_t(mconfig, PSX_MDEC, "PSX MDEC", tag, owner, clock, "psxmdec", __FILE__)
3333{
3434}
3535
trunk/src/emu/cpu/psx/sio.c
r23830r23831
2626const device_type PSX_SIO1 = &device_creator<psxsio1_device>;
2727
2828psxsio0_device::psxsio0_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
29   psxsio_device(mconfig, PSX_SIO0, tag, owner, clock)
29   psxsio_device(mconfig, PSX_SIO0, tag, owner, clock, "psxsio0", __FILE__)
3030{
3131}
3232
3333psxsio1_device::psxsio1_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
34   psxsio_device(mconfig, PSX_SIO1, tag, owner, clock)
34   psxsio_device(mconfig, PSX_SIO1, tag, owner, clock, "psxsio1", __FILE__)
3535{
3636}
3737
38psxsio_device::psxsio_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, UINT32 clock) :
39   device_t(mconfig, type, "PSX SIO", tag, owner, clock),
38psxsio_device::psxsio_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) :
39   device_t(mconfig, type, "PSX SIO", tag, owner, clock, shortname, source),
4040   m_irq_handler(*this)
4141{
4242}
trunk/src/emu/cpu/psx/irq.c
r23830r23831
2828const device_type PSX_IRQ = &device_creator<psxirq_device>;
2929
3030psxirq_device::psxirq_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
31   device_t(mconfig, PSX_IRQ, "PSX IRQ", tag, owner, clock),
31   device_t(mconfig, PSX_IRQ, "PSX IRQ", tag, owner, clock, "psxirq", __FILE__),
3232   m_irq_handler(*this)
3333{
3434}
trunk/src/emu/cpu/psx/sio.h
r23830r23831
3838class psxsio_device : public device_t
3939{
4040public:
41   psxsio_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, UINT32 clock);
41   psxsio_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source);
4242
4343   // static configuration helpers
4444   template<class _Object> static devcb2_base &set_irq_handler(device_t &device, _Object object) { return downcast<psxsio_device &>(device).m_irq_handler.set_callback(object); }
trunk/src/emu/cpu/psx/dma.c
r23830r23831
2626const device_type PSX_DMA = &device_creator<psxdma_device>;
2727
2828psxdma_device::psxdma_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
29   device_t(mconfig, PSX_DMA, "PSX DMA", tag, owner, clock),
29   device_t(mconfig, PSX_DMA, "PSX DMA", tag, owner, clock, "psxdma", __FILE__),
3030   m_irq_handler(*this)
3131{
3232}
trunk/src/emu/video/bufsprite.h
r23830r23831
8383public:
8484   // construction
8585   buffered_spriteram_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, UINT32 clock)
86      : device_t(mconfig, type, "Buffered Sprite RAM", tag, owner, clock),
86      : device_t(mconfig, type, "Buffered Sprite RAM", tag, owner, clock, "buffered_spriteram", __FILE__),
8787         m_spriteram(*owner, tag) { }
8888
8989   // getters
trunk/src/emu/sound/msm5205.c
r23830r23831
5656
5757
5858msm5205_device::msm5205_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
59               : device_t(mconfig, MSM5205, "MSM5205", tag, owner, clock),
59               : device_t(mconfig, MSM5205, "MSM5205", tag, owner, clock, "msm5205", __FILE__),
6060                  device_sound_interface(mconfig, *this)
6161{
6262}
6363
64msm5205_device::msm5205_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
65               : device_t(mconfig, type, name, tag, owner, clock),
64msm5205_device::msm5205_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source)
65               : device_t(mconfig, type, name, tag, owner, clock, shortname, source),
6666                  device_sound_interface(mconfig, *this)
6767{
6868}
6969
7070
7171msm6585_device::msm6585_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
72               : msm5205_device(mconfig, MSM6585, "MSM6585", tag, owner, clock)
72               : msm5205_device(mconfig, MSM6585, "MSM6585", tag, owner, clock, "msm6585", __FILE__)
7373{
7474}
7575
trunk/src/emu/sound/msm5205.h
r23830r23831
3636{
3737public:
3838   msm5205_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
39   msm5205_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock);
39   msm5205_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source);
4040   ~msm5205_device() {}
4141
4242   // reset signal should keep for 2cycle of VCLK
trunk/src/emu/sound/3812intf.c
r23830r23831
152152const device_type YM3812 = &device_creator<ym3812_device>;
153153
154154ym3812_device::ym3812_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
155   : device_t(mconfig, YM3812, "YM3812", tag, owner, clock),
155   : device_t(mconfig, YM3812, "YM3812", tag, owner, clock, "ym3812", __FILE__),
156156      device_sound_interface(mconfig, *this),
157157      m_irq_handler(*this)
158158{
trunk/src/emu/sound/snkwave.c
r23830r23831
2020//-------------------------------------------------
2121
2222snkwave_device::snkwave_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
23   : device_t(mconfig, SNKWAVE, "SNK Wave", tag, owner, clock),
23   : device_t(mconfig, SNKWAVE, "SNK Wave", tag, owner, clock, "snkwave", __FILE__),
2424      device_sound_interface(mconfig, *this),
2525      m_stream(NULL),
2626      m_external_clock(0),
trunk/src/emu/sound/rf5c400.c
r23830r23831
6464//-------------------------------------------------
6565
6666rf5c400_device::rf5c400_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
67   : device_t(mconfig, RF5C400, "RF5C400", tag, owner, clock),
67   : device_t(mconfig, RF5C400, "RF5C400", tag, owner, clock, "rf5c400", __FILE__),
6868      device_sound_interface(mconfig, *this),
6969      m_rom(NULL),
7070      m_rom_length(0),
trunk/src/emu/sound/saa1099.c
r23830r23831
132132//-------------------------------------------------
133133
134134saa1099_device::saa1099_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
135   : device_t(mconfig, SAA1099, "SAA1099", tag, owner, clock),
135   : device_t(mconfig, SAA1099, "SAA1099", tag, owner, clock, "saa1099", __FILE__),
136136      device_sound_interface(mconfig, *this),
137137      m_stream(NULL),
138138      m_all_ch_enable(0),
trunk/src/emu/sound/cem3394.c
r23830r23831
114114//-------------------------------------------------
115115
116116cem3394_device::cem3394_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
117   : device_t(mconfig, CEM3394, "CEM3394", tag, owner, clock),
117   : device_t(mconfig, CEM3394, "CEM3394", tag, owner, clock, "cem3394", __FILE__),
118118      device_sound_interface(mconfig, *this),
119119      m_external(NULL),
120120      m_stream(NULL),
trunk/src/emu/sound/digitalk.c
r23830r23831
262262const device_type DIGITALKER = &device_creator<digitalker_device>;
263263
264264digitalker_device::digitalker_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
265   : device_t(mconfig, DIGITALKER, "Digitalker", tag, owner, clock),
265   : device_t(mconfig, DIGITALKER, "Digitalker", tag, owner, clock, "digitalker", __FILE__),
266266      device_sound_interface(mconfig, *this),
267267      m_rom(NULL),
268268      m_stream(NULL),
trunk/src/emu/sound/ymz770.c
r23830r23831
1919//-------------------------------------------------
2020
2121ymz770_device::ymz770_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
22   : device_t(mconfig, YMZ770, "Yamaha YMZ770", tag, owner, clock),
22   : device_t(mconfig, YMZ770, "Yamaha YMZ770", tag, owner, clock, "ymz770", __FILE__),
2323      device_sound_interface(mconfig, *this)
2424{
2525}
trunk/src/emu/sound/mos6560.c
r23830r23831
686686   AM_RANGE(0x000, 0x3ff) AM_RAM
687687ADDRESS_MAP_END
688688
689mos6560_device::mos6560_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant)
690   : device_t(mconfig, type, name, tag, owner, clock),
689mos6560_device::mos6560_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant, const char *shortname, const char *source)
690   : device_t(mconfig, type, name, tag, owner, clock, shortname, source),
691691      device_memory_interface(mconfig, *this),
692692      device_sound_interface(mconfig, *this),
693693      m_variant(variant),
r23830r23831
699699}
700700
701701mos6560_device::mos6560_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
702   : device_t(mconfig, MOS6560, "MOS6560", tag, owner, clock),
702   : device_t(mconfig, MOS6560, "MOS6560", tag, owner, clock, "mos6560", __FILE__),
703703      device_memory_interface(mconfig, *this),
704704      device_sound_interface(mconfig, *this),
705705      m_variant(TYPE_6560),
r23830r23831
711711}
712712
713713mos6561_device::mos6561_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
714   :mos6560_device(mconfig, MOS6561, "MOS6561", tag, owner, clock, TYPE_6561) { }
714   :mos6560_device(mconfig, MOS6561, "MOS6561", tag, owner, clock, TYPE_6561, "mos6561", __FILE__) { }
715715
716716mos656x_attack_ufo_device::mos656x_attack_ufo_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
717   :mos6560_device(mconfig, MOS656X_ATTACK_UFO, "MOS656X", tag, owner, clock, TYPE_ATTACK_UFO) { }
717   :mos6560_device(mconfig, MOS656X_ATTACK_UFO, "MOS656X", tag, owner, clock, TYPE_ATTACK_UFO, "mos656x_attack_ufo", __FILE__) { }
718718
719719
720720//-------------------------------------------------
trunk/src/emu/sound/okim9810.c
r23830r23831
7676//-------------------------------------------------
7777
7878okim9810_device::okim9810_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
79   : device_t(mconfig, OKIM9810, "OKI9810", tag, owner, clock),
79   : device_t(mconfig, OKIM9810, "OKI9810", tag, owner, clock, "okim9810", __FILE__),
8080      device_sound_interface(mconfig, *this),
8181      device_memory_interface(mconfig, *this),
8282      m_space_config("samples", ENDIANNESS_BIG, 8, 24, 0, NULL, *ADDRESS_MAP_NAME(okim9810)),
trunk/src/emu/sound/mos6560.h
r23830r23831
128128                  public device_sound_interface
129129{
130130public:
131   mos6560_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant);
131   mos6560_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant, const char *shortname, const char *source);
132132   mos6560_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
133133
134134   template<class _potx, class _poty> void set_callbacks(const char *screen_tag, _potx potx, _poty poty) {
trunk/src/emu/sound/i5000.c
r23830r23831
2222const device_type I5000_SND = &device_creator<i5000snd_device>;
2323
2424i5000snd_device::i5000snd_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
25   : device_t(mconfig, I5000_SND, "I5000", tag, owner, clock),
25   : device_t(mconfig, I5000_SND, "I5000", tag, owner, clock, "i5000snd", __FILE__),
2626      device_sound_interface(mconfig, *this)
2727{
2828}
trunk/src/emu/sound/aica.c
r23830r23831
13551355const device_type AICA = &device_creator<aica_device>;
13561356
13571357aica_device::aica_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
1358   : device_t(mconfig, AICA, "AICA", tag, owner, clock),
1358   : device_t(mconfig, AICA, "AICA", tag, owner, clock, "aica", __FILE__),
13591359      device_sound_interface(mconfig, *this)
13601360{
13611361   m_token = global_alloc_clear(aica_state);
trunk/src/emu/sound/sn76496.c
r23830r23831
125125
126126sn76496_base_device::sn76496_base_device(const machine_config &mconfig, device_type type,  const char *name,
127127   const char *tag, int feedbackmask, int noisetap1, int noisetap2, bool negate, bool stereo, int clockdivider, int freq0,
128   device_t *owner, UINT32 clock)
128   device_t *owner, UINT32 clock, const char *shortname, const char *source)
129129
130   : device_t(mconfig, type, name, tag, owner, clock),
130   : device_t(mconfig, type, name, tag, owner, clock, shortname, source),
131131      device_sound_interface(mconfig, *this),
132132      m_feedback_mask(feedbackmask),
133133      m_whitenoise_tap1(noisetap1),
trunk/src/emu/sound/wave.c
r23830r23831
8585const device_type WAVE = &device_creator<wave_device>;
8686
8787wave_device::wave_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
88   : device_t(mconfig, WAVE, "Cassette", tag, owner, clock),
88   : device_t(mconfig, WAVE, "Cassette", tag, owner, clock, "wawe", __FILE__),
8989      device_sound_interface(mconfig, *this)
9090{
9191}
trunk/src/emu/sound/astrocde.c
r23830r23831
5656//-------------------------------------------------
5757
5858astrocade_device::astrocade_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
59   : device_t(mconfig, ASTROCADE, "Astrocade", tag, owner, clock),
59   : device_t(mconfig, ASTROCADE, "Astrocade", tag, owner, clock, "astrocade", __FILE__),
6060      device_sound_interface(mconfig, *this),
6161      m_stream(NULL),
6262      m_master_count(0),
trunk/src/emu/sound/sn76496.h
r23830r23831
2525public:
2626   sn76496_base_device(const machine_config &mconfig, device_type type,  const char *name, const char *tag,
2727      int feedbackmask, int noisetap1, int noisetap2, bool negate, bool stereo, int clockdivider, int freq0,
28      device_t *owner, UINT32 clock);
28      device_t *owner, UINT32 clock, const char *shortname, const char *source);
2929   DECLARE_READ_LINE_MEMBER( ready_r );
3030   DECLARE_WRITE8_MEMBER( stereo_w );
3131   void write(UINT8 data);
r23830r23831
7272{
7373public:
7474   sn76496_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
75   :  sn76496_base_device(mconfig, SN76496, "SN76496", tag, 0x10000, 0x04, 0x08, false, false, 8, true, owner, clock)
75   :  sn76496_base_device(mconfig, SN76496, "SN76496", tag, 0x10000, 0x04, 0x08, false, false, 8, true, owner, clock, "sn76496", __FILE__)
7676   { }
7777};
7878
r23830r23831
8181{
8282public:
8383   u8106_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
84   :  sn76496_base_device(mconfig, U8106, "U8106", tag, 0x4000, 0x01, 0x02, true, false, 8, true, owner, clock)
84   :  sn76496_base_device(mconfig, U8106, "U8106", tag, 0x4000, 0x01, 0x02, true, false, 8, true, owner, clock, "u8106", __FILE__)
8585   { }
8686};
8787
r23830r23831
9090{
9191public:
9292   y2404_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
93   :  sn76496_base_device(mconfig, Y2404, "Y2404", tag, 0x10000, 0x04, 0x08, false, false, 8, true, owner, clock)
93   :  sn76496_base_device(mconfig, Y2404, "Y2404", tag, 0x10000, 0x04, 0x08, false, false, 8, true, owner, clock, "y2404", __FILE__)
9494   { }
9595};
9696
r23830r23831
9999{
100100public:
101101   sn76489_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
102   :  sn76496_base_device(mconfig, SN76489, "SN76489", tag, 0x4000, 0x01, 0x02, true, false, 8, true, owner, clock)
102   :  sn76496_base_device(mconfig, SN76489, "SN76489", tag, 0x4000, 0x01, 0x02, true, false, 8, true, owner, clock, "sn76489", __FILE__)
103103   { }
104104};
105105
r23830r23831
108108{
109109public:
110110   sn76489a_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
111   :  sn76496_base_device(mconfig, SN76489A, "SN76489A", tag, 0x10000, 0x04, 0x08, false, false, 8, true, owner, clock)
111   :  sn76496_base_device(mconfig, SN76489A, "SN76489A", tag, 0x10000, 0x04, 0x08, false, false, 8, true, owner, clock, "sn76489a", __FILE__)
112112   { }
113113};
114114
r23830r23831
117117{
118118public:
119119   sn76494_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
120   :  sn76496_base_device(mconfig, SN76494, "SN76494", tag, 0x10000, 0x04, 0x08, false, false, 1, true, owner, clock)
120   :  sn76496_base_device(mconfig, SN76494, "SN76494", tag, 0x10000, 0x04, 0x08, false, false, 1, true, owner, clock, "sn76494", __FILE__)
121121   { }
122122};
123123
r23830r23831
126126{
127127public:
128128   sn94624_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
129   :  sn76496_base_device(mconfig, SN94624, "SN94624", tag, 0x4000, 0x01, 0x02, true, false, 1, true, owner, clock)
129   :  sn76496_base_device(mconfig, SN94624, "SN94624", tag, 0x4000, 0x01, 0x02, true, false, 1, true, owner, clock, "sn94624", __FILE__)
130130   { }
131131};
132132
r23830r23831
135135{
136136public:
137137   ncr7496_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
138   :  sn76496_base_device(mconfig, NCR7496, "NCR7496", tag, 0x8000, 0x02, 0x20, false, false, 8, true, owner, clock)
138   :  sn76496_base_device(mconfig, NCR7496, "NCR7496", tag, 0x8000, 0x02, 0x20, false, false, 8, true, owner, clock, "ncr7496", __FILE__)
139139   { }
140140};
141141
r23830r23831
144144{
145145public:
146146   gamegear_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
147   :  sn76496_base_device(mconfig, GAMEGEAR, "Game Gear PSG", tag, 0x8000, 0x01, 0x08, true, true, 8, false, owner, clock)
147   :  sn76496_base_device(mconfig, GAMEGEAR, "Game Gear PSG", tag, 0x8000, 0x01, 0x08, true, true, 8, false, owner, clock, "gamegear", __FILE__)
148148   { }
149149};
150150
r23830r23831
153153{
154154public:
155155   segapsg_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
156   :  sn76496_base_device(mconfig, SEGAPSG, "SEGA VDP PSG", tag, 0x8000, 0x01, 0x08, true, false, 8, false, owner, clock)
156   :  sn76496_base_device(mconfig, SEGAPSG, "SEGA VDP PSG", tag, 0x8000, 0x01, 0x08, true, false, 8, false, owner, clock, "segapsg", __FILE__)
157157   { }
158158};
159159
trunk/src/emu/sound/pokey.c
r23830r23831
181181//-------------------------------------------------
182182
183183pokey_device::pokey_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
184   : device_t(mconfig, POKEY, "POKEY", tag, owner, clock),
184   : device_t(mconfig, POKEY, "POKEY", tag, owner, clock, "pokey", __FILE__),
185185      device_sound_interface(mconfig, *this),
186186      device_execute_interface(mconfig, *this),
187187      device_state_interface(mconfig, *this),
trunk/src/emu/sound/tiaintf.c
r23830r23831
1515//-------------------------------------------------
1616
1717tia_device::tia_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
18   : device_t(mconfig, TIA, "TIA", tag, owner, clock),
18   : device_t(mconfig, TIA, "TIA", tag, owner, clock, "tia_sound", __FILE__),
1919      device_sound_interface(mconfig, *this),
2020      m_channel(NULL),
2121      m_chip(NULL)
trunk/src/emu/sound/c6280.c
r23830r23831
247247const device_type C6280 = &device_creator<c6280_device>;
248248
249249c6280_device::c6280_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
250   : device_t(mconfig, C6280, "HuC6280", tag, owner, clock),
250   : device_t(mconfig, C6280, "HuC6280", tag, owner, clock, "c6280", __FILE__),
251251      device_sound_interface(mconfig, *this)
252252{
253253}
trunk/src/emu/sound/discrete.c
r23830r23831
825825//-------------------------------------------------
826826
827827discrete_device::discrete_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
828   : device_t(mconfig, type, name, tag, owner, clock),
828   : device_t(mconfig, type, name, tag, owner, clock, "discrete", __FILE__),
829829      m_intf(NULL),
830830      m_sample_rate(0),
831831      m_sample_time(0),
trunk/src/emu/sound/samples.c
r23830r23831
7575//-------------------------------------------------
7676
7777samples_device::samples_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
78   : device_t(mconfig, SAMPLES, "Samples", tag, owner, clock),
78   : device_t(mconfig, SAMPLES, "Samples", tag, owner, clock, "samples", __FILE__),
7979      device_sound_interface(mconfig, *this)
8080{
8181}
trunk/src/emu/sound/msm5232.c
r23830r23831
853853const device_type MSM5232 = &device_creator<msm5232_device>;
854854
855855msm5232_device::msm5232_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
856   : device_t(mconfig, MSM5232, "MSM5232", tag, owner, clock),
856   : device_t(mconfig, MSM5232, "MSM5232", tag, owner, clock, "msm5232", __FILE__),
857857      device_sound_interface(mconfig, *this)
858858{
859859   m_token = global_alloc_clear(msm5232_state);
trunk/src/emu/sound/scsp.c
r23830r23831
14921492const device_type SCSP = &device_creator<scsp_device>;
14931493
14941494scsp_device::scsp_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
1495   : device_t(mconfig, SCSP, "SCSP", tag, owner, clock),
1495   : device_t(mconfig, SCSP, "SCSP", tag, owner, clock, "scsp", __FILE__),
14961496      device_sound_interface(mconfig, *this)
14971497{
14981498   m_token = global_alloc_clear(scsp_state);
trunk/src/emu/sound/flt_rc.c
r23830r23831
1818//-------------------------------------------------
1919
2020filter_rc_device::filter_rc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
21   : device_t(mconfig, FILTER_RC, "RC Filter", tag, owner, clock),
21   : device_t(mconfig, FILTER_RC, "RC Filter", tag, owner, clock, "filter_rc", __FILE__),
2222      device_sound_interface(mconfig, *this),
2323      m_stream(NULL),
2424      m_k(0),
trunk/src/emu/sound/ics2115.c
r23830r23831
2222}
2323
2424ics2115_device::ics2115_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
25   : device_t(mconfig, ICS2115, "ICS2115", tag, owner, clock),
25   : device_t(mconfig, ICS2115, "ICS2115", tag, owner, clock, "ics2115", __FILE__),
2626      device_sound_interface(mconfig, *this),
2727      m_irq_cb(NULL)
2828{
trunk/src/emu/sound/s14001a.c
r23830r23831
636636const device_type S14001A = &device_creator<s14001a_device>;
637637
638638s14001a_device::s14001a_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
639   : device_t(mconfig, S14001A, "S14001A", tag, owner, clock),
639   : device_t(mconfig, S14001A, "S14001A", tag, owner, clock, "s14001a", __FILE__),
640640      device_sound_interface(mconfig, *this)
641641{
642642   m_token = global_alloc_clear(S14001AChip);
trunk/src/emu/sound/2608intf.c
r23830r23831
202202const device_type YM2608 = &device_creator<ym2608_device>;
203203
204204ym2608_device::ym2608_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
205   : device_t(mconfig, YM2608, "YM2608", tag, owner, clock),
205   : device_t(mconfig, YM2608, "YM2608", tag, owner, clock, "ym2608", __FILE__),
206206      device_sound_interface(mconfig, *this),
207207      m_irq_handler(*this),
208208      m_ay8910_config(NULL)
trunk/src/emu/sound/zsg2.c
r23830r23831
6060//-------------------------------------------------
6161
6262zsg2_device::zsg2_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
63   : device_t(mconfig, ZSG2, "ZSG-2", tag, owner, clock),
63   : device_t(mconfig, ZSG2, "ZSG-2", tag, owner, clock, "zsg2", __FILE__),
6464      device_sound_interface(mconfig, *this),
6565      m_alow(0),
6666      m_ahigh(0),
trunk/src/emu/sound/ymf278b.c
r23830r23831
10021002const device_type YMF278B = &device_creator<ymf278b_device>;
10031003
10041004ymf278b_device::ymf278b_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
1005   : device_t(mconfig, YMF278B, "YMF278B", tag, owner, clock),
1005   : device_t(mconfig, YMF278B, "YMF278B", tag, owner, clock, "ymf278b", __FILE__),
10061006      device_sound_interface(mconfig, *this),
10071007      m_irq_handler(*this)
10081008{
trunk/src/emu/sound/flt_vol.c
r23830r23831
1010//-------------------------------------------------
1111
1212filter_volume_device::filter_volume_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
13   : device_t(mconfig, FILTER_VOLUME, "Volume Filter", tag, owner, clock),
13   : device_t(mconfig, FILTER_VOLUME, "Volume Filter", tag, owner, clock, "filter_volume", __FILE__),
1414      device_sound_interface(mconfig, *this),
1515      m_stream(NULL),
1616      m_gain(0)
trunk/src/emu/sound/2151intf.c
r23830r23831
2121//-------------------------------------------------
2222
2323ym2151_device::ym2151_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
24   : device_t(mconfig, YM2151, "YM2151", tag, owner, clock),
24   : device_t(mconfig, YM2151, "YM2151", tag, owner, clock, "ym2151", __FILE__),
2525      device_sound_interface(mconfig, *this),
2626      m_irqhandler(*this),
2727      m_portwritehandler(*this)
trunk/src/emu/sound/k053260.c
r23830r23831
2727//-------------------------------------------------
2828
2929k053260_device::k053260_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
30   : device_t(mconfig, K053260, "K053260", tag, owner, clock),
30   : device_t(mconfig, K053260, "K053260", tag, owner, clock, "k053260", __FILE__),
3131      device_sound_interface(mconfig, *this),
3232      m_channel(NULL),
3333      m_mode(0),
trunk/src/emu/sound/vrender0.c
r23830r23831
8282//-------------------------------------------------
8383
8484vrender0_device::vrender0_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
85   : device_t(mconfig, VRENDER0, "VRender0", tag, owner, clock),
85   : device_t(mconfig, VRENDER0, "VRender0", tag, owner, clock, "vrender0", __FILE__),
8686      device_sound_interface(mconfig, *this),
8787      m_TexBase(NULL),
8888      m_FBBase(NULL),
trunk/src/emu/sound/8950intf.c
r23830r23831
203203const device_type Y8950 = &device_creator<y8950_device>;
204204
205205y8950_device::y8950_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
206   : device_t(mconfig, Y8950, "Y8950", tag, owner, clock),
206   : device_t(mconfig, Y8950, "Y8950", tag, owner, clock, "y8950", __FILE__),
207207      device_sound_interface(mconfig, *this),
208208      m_irq_handler(*this),
209209      m_keyboard_read_handler(*this),
trunk/src/emu/sound/multipcm.c
r23830r23831
675675const device_type MULTIPCM = &device_creator<multipcm_device>;
676676
677677multipcm_device::multipcm_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
678   : device_t(mconfig, MULTIPCM, "Sega/Yamaha 315-5560", tag, owner, clock),
678   : device_t(mconfig, MULTIPCM, "Sega/Yamaha 315-5560", tag, owner, clock, "multipcm", __FILE__),
679679      device_sound_interface(mconfig, *this)
680680{
681681   m_token = global_alloc_clear(MultiPCM);
trunk/src/emu/sound/awacs.c
r23830r23831
2323//-------------------------------------------------
2424
2525awacs_device::awacs_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
26   : device_t(mconfig, AWACS, "AWACS", tag, owner, clock),
26   : device_t(mconfig, AWACS, "AWACS", tag, owner, clock, "awacs", __FILE__),
2727      device_sound_interface(mconfig, *this)
2828{
2929}
trunk/src/emu/sound/asc.c
r23830r23831
4444//-------------------------------------------------
4545
4646asc_device::asc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
47   : device_t(mconfig, ASC, "ASC", tag, owner, clock),
47   : device_t(mconfig, ASC, "ASC", tag, owner, clock, "asc", __FILE__),
4848      device_sound_interface(mconfig, *this),
4949      m_chip_type(0),
5050      m_irq_cb(NULL)
trunk/src/emu/sound/2203intf.c
r23830r23831
203203const device_type YM2203 = &device_creator<ym2203_device>;
204204
205205ym2203_device::ym2203_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
206   : device_t(mconfig, YM2203, "YM2203", tag, owner, clock),
206   : device_t(mconfig, YM2203, "YM2203", tag, owner, clock, "ym2203", __FILE__),
207207      device_sound_interface(mconfig, *this),
208208      m_irq_handler(*this),
209209      m_ay8910_config(NULL)
trunk/src/emu/sound/k007232.c
r23830r23831
146146const device_type K007232 = &device_creator<k007232_device>;
147147
148148k007232_device::k007232_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
149   : device_t(mconfig, K007232, "K007232", tag, owner, clock),
149   : device_t(mconfig, K007232, "K007232", tag, owner, clock, "k007232", __FILE__),
150150      device_sound_interface(mconfig, *this)
151151{
152152   
trunk/src/emu/sound/es5503.c
r23830r23831
6262//-------------------------------------------------
6363
6464es5503_device::es5503_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
65   : device_t(mconfig, ES5503, "Ensoniq ES5503", tag, owner, clock),
65   : device_t(mconfig, ES5503, "Ensoniq ES5503", tag, owner, clock, "es5503", __FILE__),
6666      device_sound_interface(mconfig, *this),
6767      device_memory_interface(mconfig, *this),
6868      m_space_config("es5503_samples", ENDIANNESS_LITTLE, 8, 17, 0, NULL, *ADDRESS_MAP_NAME(es5503)),
trunk/src/emu/sound/okim6258.c
r23830r23831
4545//-------------------------------------------------
4646
4747okim6258_device::okim6258_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
48   : device_t(mconfig, OKIM6258, "OKI6258", tag, owner, clock),
48   : device_t(mconfig, OKIM6258, "OKI6258", tag, owner, clock, "okim6258", __FILE__),
4949      device_sound_interface(mconfig, *this),
5050      m_status(0),
5151      m_master_clock(0),
trunk/src/emu/sound/nile.c
r23830r23831
5151const device_type NILE = &device_creator<nile_device>;
5252
5353nile_device::nile_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
54   : device_t(mconfig, NILE, "NiLe", tag, owner, clock),
54   : device_t(mconfig, NILE, "NiLe", tag, owner, clock, "nile", __FILE__),
5555      device_sound_interface(mconfig, *this),
5656      m_stream(NULL),
5757      m_sound_ram(NULL),
trunk/src/emu/sound/cdp1869.c
r23830r23831
342342//-------------------------------------------------
343343
344344cdp1869_device::cdp1869_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
345   : device_t(mconfig, CDP1869, "RCA CDP1869", tag, owner, clock),
345   : device_t(mconfig, CDP1869, "RCA CDP1869", tag, owner, clock, "cdp1869", __FILE__),
346346      device_sound_interface(mconfig, *this),
347347      device_memory_interface(mconfig, *this),
348348      m_stream(NULL),
trunk/src/emu/sound/sp0256.c
r23830r23831
9494//**************************************************************************
9595
9696sp0256_device::sp0256_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
97            : device_t(mconfig, SP0256, "SP0256", tag, owner, clock),
97            : device_t(mconfig, SP0256, "SP0256", tag, owner, clock, "sp0256", __FILE__),
9898               device_sound_interface(mconfig, *this)
9999{
100100}
trunk/src/emu/sound/hc55516.c
r23830r23831
296296const device_type HC55516 = &device_creator<hc55516_device>;
297297
298298hc55516_device::hc55516_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
299   : device_t(mconfig, HC55516, "HC-55516", tag, owner, clock),
299   : device_t(mconfig, HC55516, "HC-55516", tag, owner, clock, "hc55516", __FILE__),
300300      device_sound_interface(mconfig, *this)
301301{
302302   m_token = global_alloc_clear(hc55516_state);
303303}
304hc55516_device::hc55516_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
305   : device_t(mconfig, type, name, tag, owner, clock),
304hc55516_device::hc55516_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source)
305   : device_t(mconfig, type, name, tag, owner, clock, shortname, source),
306306      device_sound_interface(mconfig, *this)
307307{
308308   m_token = global_alloc_clear(hc55516_state);
r23830r23831
350350const device_type MC3417 = &device_creator<mc3417_device>;
351351
352352mc3417_device::mc3417_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
353   : hc55516_device(mconfig, MC3417, "MC3417", tag, owner, clock)
353   : hc55516_device(mconfig, MC3417, "MC3417", tag, owner, clock, "mc3417", __FILE__)
354354{
355355}
356356
r23830r23831
377377const device_type MC3418 = &device_creator<mc3418_device>;
378378
379379mc3418_device::mc3418_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
380   : hc55516_device(mconfig, MC3418, "MC3418", tag, owner, clock)
380   : hc55516_device(mconfig, MC3418, "MC3418", tag, owner, clock, "mc3418", __FILE__)
381381{
382382}
383383
trunk/src/emu/sound/hc55516.h
r23830r23831
2020{
2121public:
2222   hc55516_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
23   hc55516_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock);
23   hc55516_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source);
2424   ~hc55516_device() { global_free(m_token); }
2525
2626   // access to legacy token
trunk/src/emu/sound/iremga20.c
r23830r23831
4545//-------------------------------------------------
4646
4747iremga20_device::iremga20_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
48   : device_t(mconfig, IREMGA20, "Irem GA20", tag, owner, clock),
48   : device_t(mconfig, IREMGA20, "Irem GA20", tag, owner, clock, "iremga20", __FILE__),
4949      device_sound_interface(mconfig, *this),
5050      m_rom(NULL),
5151      m_rom_size(0),
trunk/src/emu/sound/tms5110.c
r23830r23831
13621362const device_type TMS5110 = &device_creator<tms5110_device>;
13631363
13641364tms5110_device::tms5110_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
1365   : device_t(mconfig, TMS5110, "TMS5110", tag, owner, clock),
1365   : device_t(mconfig, TMS5110, "TMS5110", tag, owner, clock, "tms5110", __FILE__),
13661366      device_sound_interface(mconfig, *this)
13671367{
13681368}
13691369
1370tms5110_device::tms5110_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
1371   : device_t(mconfig, type, name, tag, owner, clock),
1370tms5110_device::tms5110_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source)
1371   : device_t(mconfig, type, name, tag, owner, clock, shortname, source),
13721372      device_sound_interface(mconfig, *this)
13731373{
13741374}
r23830r23831
13871387
13881388
13891389tms5100_device::tms5100_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
1390   : tms5110_device(mconfig, TMS5100, "TMS5100", tag, owner, clock)
1390   : tms5110_device(mconfig, TMS5100, "TMS5100", tag, owner, clock, "tms5100", __FILE__)
13911391{
13921392}
13931393
r23830r23831
13951395const device_type TMS5110A = &device_creator<tms5110a_device>;
13961396
13971397tms5110a_device::tms5110a_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
1398   : tms5110_device(mconfig, TMS5110A, "TMS5110A", tag, owner, clock)
1398   : tms5110_device(mconfig, TMS5110A, "TMS5110A", tag, owner, clock, "tms5110a", __FILE__)
13991399{
14001400}
14011401
r23830r23831
14031403const device_type CD2801 = &device_creator<cd2801_device>;
14041404
14051405cd2801_device::cd2801_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
1406   : tms5110_device(mconfig, CD2801, "CD2801", tag, owner, clock)
1406   : tms5110_device(mconfig, CD2801, "CD2801", tag, owner, clock, "cd2801", __FILE__)
14071407{
14081408}
14091409
r23830r23831
14111411const device_type TMC0281 = &device_creator<tmc0281_device>;
14121412
14131413tmc0281_device::tmc0281_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
1414   : tms5110_device(mconfig, TMC0281, "TMC0281", tag, owner, clock)
1414   : tms5110_device(mconfig, TMC0281, "TMC0281", tag, owner, clock, "tmc0281", __FILE__)
14151415{
14161416}
14171417
r23830r23831
14191419const device_type CD2802 = &device_creator<cd2802_device>;
14201420
14211421cd2802_device::cd2802_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
1422   : tms5110_device(mconfig, CD2802, "CD2802", tag, owner, clock)
1422   : tms5110_device(mconfig, CD2802, "CD2802", tag, owner, clock, "cd2802", __FILE__)
14231423{
14241424}
14251425
r23830r23831
14271427const device_type M58817 = &device_creator<m58817_device>;
14281428
14291429m58817_device::m58817_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
1430   : tms5110_device(mconfig, M58817, "M58817", tag, owner, clock)
1430   : tms5110_device(mconfig, M58817, "M58817", tag, owner, clock, "m58817", __FILE__)
14311431{
14321432}
14331433
r23830r23831
14351435const device_type TMSPROM = &device_creator<tmsprom_device>;
14361436
14371437tmsprom_device::tmsprom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
1438   : device_t(mconfig, TMSPROM, "TMSPROM", tag, owner, clock)
1438   : device_t(mconfig, TMSPROM, "TMSPROM", tag, owner, clock, "tmsprom", __FILE__)
14391439{
14401440}
14411441
trunk/src/emu/sound/2612intf.c
r23830r23831
149149const device_type YM2612 = &device_creator<ym2612_device>;
150150
151151ym2612_device::ym2612_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
152   : device_t(mconfig, YM2612, "YM2612", tag, owner, clock),
152   : device_t(mconfig, YM2612, "YM2612", tag, owner, clock, "ym2612", __FILE__),
153153      device_sound_interface(mconfig, *this),
154154      m_irq_handler(*this)
155155{
156156}
157157
158ym2612_device::ym2612_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
159   : device_t(mconfig, type, name, tag, owner, clock),
158ym2612_device::ym2612_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source)
159   : device_t(mconfig, type, name, tag, owner, clock, shortname, source),
160160      device_sound_interface(mconfig, *this),
161161      m_irq_handler(*this)
162162{
r23830r23831
176176const device_type YM3438 = &device_creator<ym3438_device>;
177177
178178ym3438_device::ym3438_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
179   : ym2612_device(mconfig, YM3438, "YM3438", tag, owner, clock)
179   : ym2612_device(mconfig, YM3438, "YM3438", tag, owner, clock, "ym3438", __FILE__)
180180{
181181}
trunk/src/emu/sound/c352.c
r23830r23831
3636//-------------------------------------------------
3737
3838c352_device::c352_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
39   : device_t(mconfig, C352, "C352", tag, owner, clock),
39   : device_t(mconfig, C352, "C352", tag, owner, clock, "c352", __FILE__),
4040      device_sound_interface(mconfig, *this),
4141      device_memory_interface(mconfig, *this),
4242      m_space_config("samples", ENDIANNESS_LITTLE, 8, 24, 0, NULL, *ADDRESS_MAP_NAME(c352))
trunk/src/emu/sound/tms5110.h
r23830r23831
4545{
4646public:
4747   tms5110_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
48   tms5110_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock);
48   tms5110_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source);
4949
5050   DECLARE_WRITE8_MEMBER( ctl_w );
5151   DECLARE_READ8_MEMBER( ctl_r );
trunk/src/emu/sound/3526intf.c
r23830r23831
154154const device_type YM3526 = &device_creator<ym3526_device>;
155155
156156ym3526_device::ym3526_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
157   : device_t(mconfig, YM3526, "YM3526", tag, owner, clock),
157   : device_t(mconfig, YM3526, "YM3526", tag, owner, clock, "ym3526", __FILE__),
158158      device_sound_interface(mconfig, *this),
159159      m_irq_handler(*this)
160160{
trunk/src/emu/sound/2612intf.h
r23830r23831
1515{
1616public:
1717   ym2612_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
18   ym2612_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock);
18   ym2612_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source);
1919
2020   // static configuration helpers
2121   template<class _Object> static devcb2_base &set_irq_handler(device_t &device, _Object object) { return downcast<ym2612_device &>(device).m_irq_handler.set_callback(object); }
trunk/src/emu/sound/k051649.c
r23830r23831
4242//-------------------------------------------------
4343
4444k051649_device::k051649_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
45   : device_t(mconfig, K051649, "K051649", tag, owner, clock),
45   : device_t(mconfig, K051649, "K051649", tag, owner, clock, "k051649", __FILE__),
4646      device_sound_interface(mconfig, *this),
4747      m_stream(NULL),
4848      m_mclock(0),
trunk/src/emu/sound/c140.c
r23830r23831
8585//-------------------------------------------------
8686
8787c140_device::c140_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
88   : device_t(mconfig, C140, "C140", tag, owner, clock),
88   : device_t(mconfig, C140, "C140", tag, owner, clock, "c140", __FILE__),
8989      device_sound_interface(mconfig, *this),
9090      m_sample_rate(0),
9191      m_stream(NULL),
trunk/src/emu/sound/ymz280b.c
r23830r23831
941941const device_type YMZ280B = &device_creator<ymz280b_device>;
942942
943943ymz280b_device::ymz280b_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
944   : device_t(mconfig, YMZ280B, "YMZ280B", tag, owner, clock),
944   : device_t(mconfig, YMZ280B, "YMZ280B", tag, owner, clock, "ymz280b", __FILE__),
945945      device_sound_interface(mconfig, *this),
946946      m_current_register(0),
947947      m_status_register(0),
trunk/src/emu/sound/rf5c68.c
r23830r23831
1919//-------------------------------------------------
2020
2121rf5c68_device::rf5c68_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
22   : device_t(mconfig, RF5C68, "RF5C68", tag, owner, clock),
22   : device_t(mconfig, RF5C68, "RF5C68", tag, owner, clock, "rf5c68", __FILE__),
2323      device_sound_interface(mconfig, *this),
2424      m_stream(NULL),
2525      m_cbank(0),
trunk/src/emu/sound/k005289.c
r23830r23831
4444//-------------------------------------------------
4545
4646k005289_device::k005289_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
47   : device_t(mconfig, K005289, "K005289", tag, owner, clock),
47   : device_t(mconfig, K005289, "K005289", tag, owner, clock, "k005289", __FILE__),
4848      device_sound_interface(mconfig, *this),
4949   m_sound_prom(NULL),
5050   m_stream(NULL),
trunk/src/emu/sound/mos6581.c
r23830r23831
3838//  mos6581_device - constructor
3939//-------------------------------------------------
4040
41mos6581_device::mos6581_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant)
42   : device_t(mconfig, type, name, tag, owner, clock),
41mos6581_device::mos6581_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant, const char *shortname, const char *source)
42   : device_t(mconfig, type, name, tag, owner, clock, shortname, source),
4343      device_sound_interface(mconfig, *this),
4444      m_read_potx(*this),
4545      m_read_poty(*this),
r23830r23831
5050}
5151
5252mos6581_device::mos6581_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
53   : device_t(mconfig, MOS6581, "MOS6581", tag, owner, clock),
53   : device_t(mconfig, MOS6581, "MOS6581", tag, owner, clock, "mos6581", __FILE__),
5454      device_sound_interface(mconfig, *this),
5555      m_read_potx(*this),
5656      m_read_poty(*this),
r23830r23831
6666//-------------------------------------------------
6767
6868mos8580_device::mos8580_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
69   : mos6581_device(mconfig, MOS8580, "MOS8580", tag, owner, clock, TYPE_8580)
69   : mos6581_device(mconfig, MOS8580, "MOS8580", tag, owner, clock, TYPE_8580, "mos8580", __FILE__)
7070{
7171}
7272
trunk/src/emu/sound/mos6581.h
r23830r23831
5454                  public device_sound_interface
5555{
5656public:
57   mos6581_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant);
57   mos6581_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant, const char *shortname, const char *source);
5858   mos6581_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
5959   ~mos6581_device() { global_free(m_token); }
6060
trunk/src/emu/sound/spu.c
r23830r23831
954954//-------------------------------------------------
955955
956956spu_device::spu_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
957   device_t(mconfig, SPU, "SPU", tag, owner, clock),
957   device_t(mconfig, SPU, "SPU", tag, owner, clock, "spu", __FILE__),
958958   device_sound_interface(mconfig, *this),
959959   m_irq_handler(*this),
960960   dirty_flags(-1),
trunk/src/emu/sound/x1_010.c
r23830r23831
286286const device_type X1_010 = &device_creator<x1_010_device>;
287287
288288x1_010_device::x1_010_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
289   : device_t(mconfig, X1_010, "X1-010", tag, owner, clock),
289   : device_t(mconfig, X1_010, "X1-010", tag, owner, clock, "x1_010", __FILE__),
290290      device_sound_interface(mconfig, *this)
291291{
292292   m_token = global_alloc_clear(x1_010_state);
trunk/src/emu/sound/k056800.c
r23830r23831
1313const device_type K056800 = &device_creator<k056800_device>;
1414
1515k056800_device::k056800_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
16            : device_t(mconfig, K056800, "Konami 056800 MIRAC", tag, owner, clock)
16            : device_t(mconfig, K056800, "Konami 056800 MIRAC", tag, owner, clock, "k056800", __FILE__)
1717{
1818}
1919
trunk/src/emu/sound/upd7759.c
r23830r23831
788788const device_type UPD7759 = &device_creator<upd7759_device>;
789789
790790upd7759_device::upd7759_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
791   : device_t(mconfig, UPD7759, "uPD7759", tag, owner, clock),
791   : device_t(mconfig, UPD7759, "uPD7759", tag, owner, clock, "upd7759", __FILE__),
792792      device_sound_interface(mconfig, *this)
793793{
794794   m_token = global_alloc_clear(upd7759_state);
795795}
796upd7759_device::upd7759_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
797   : device_t(mconfig, type, name, tag, owner, clock),
796upd7759_device::upd7759_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source)
797   : device_t(mconfig, type, name, tag, owner, clock, shortname, source),
798798      device_sound_interface(mconfig, *this)
799799{
800800   m_token = global_alloc_clear(upd7759_state);
r23830r23831
842842const device_type UPD7756 = &device_creator<upd7756_device>;
843843
844844upd7756_device::upd7756_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
845   : upd7759_device(mconfig, UPD7756, "uPD7756", tag, owner, clock)
845   : upd7759_device(mconfig, UPD7756, "uPD7756", tag, owner, clock, "upd7756", __FILE__)
846846{
847847}
848848
trunk/src/emu/sound/ymf271.c
r23830r23831
17531753const device_type YMF271 = &device_creator<ymf271_device>;
17541754
17551755ymf271_device::ymf271_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
1756   : device_t(mconfig, YMF271, "YMF271", tag, owner, clock),
1756   : device_t(mconfig, YMF271, "YMF271", tag, owner, clock, "ymf271", __FILE__),
17571757      device_sound_interface(mconfig, *this),
17581758      m_timerA(0),
17591759      m_timerB(0),
trunk/src/emu/sound/n63701x.c
r23830r23831
3030const device_type NAMCO_63701X = &device_creator<namco_63701x_device>;
3131
3232namco_63701x_device::namco_63701x_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
33   : device_t(mconfig, NAMCO_63701X, "Namco 63701X", tag, owner, clock),
33   : device_t(mconfig, NAMCO_63701X, "Namco 63701X", tag, owner, clock, "namco_63701x", __FILE__),
3434      device_sound_interface(mconfig, *this),
3535      m_stream(NULL),
3636      m_rom(NULL)
trunk/src/emu/sound/cdp1863.c
r23830r23831
4848//-------------------------------------------------
4949
5050cdp1863_device::cdp1863_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
51   : device_t(mconfig, CDP1863, "CDP1863", tag, owner, clock),
51   : device_t(mconfig, CDP1863, "CDP1863", tag, owner, clock, "cdp1863", __FILE__),
5252      device_sound_interface(mconfig, *this),
5353      m_stream(NULL),
5454      m_clock1(clock),
trunk/src/emu/sound/upd7759.h
r23830r23831
3232{
3333public:
3434   upd7759_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
35   upd7759_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock);
35   upd7759_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source);
3636   ~upd7759_device() { global_free(m_token); }
3737
3838   // access to legacy token
trunk/src/emu/sound/sp0250.c
r23830r23831
240240const device_type SP0250 = &device_creator<sp0250_device>;
241241
242242sp0250_device::sp0250_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
243   : device_t(mconfig, SP0250, "SP0250", tag, owner, clock),
243   : device_t(mconfig, SP0250, "SP0250", tag, owner, clock, "sp0250", __FILE__),
244244      device_sound_interface(mconfig, *this)
245245{
246246   m_token = global_alloc_clear(sp0250_state);
trunk/src/emu/sound/speaker.c
r23830r23831
8282const device_type SPEAKER_SOUND = &device_creator<speaker_sound_device>;
8383
8484speaker_sound_device::speaker_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
85               : device_t(mconfig, SPEAKER_SOUND, "Filtered 1-bit DAC", tag, owner, clock),
85               : device_t(mconfig, SPEAKER_SOUND, "Filtered 1-bit DAC", tag, owner, clock, "speaker", __FILE__),
8686                  device_sound_interface(mconfig, *this)
8787{
8888}
trunk/src/emu/sound/cdda.c
r23830r23831
252252const device_type CDDA = &device_creator<cdda_device>;
253253
254254cdda_device::cdda_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
255   : device_t(mconfig, CDDA, "CD/DA", tag, owner, clock),
255   : device_t(mconfig, CDDA, "CD/DA", tag, owner, clock, "cdda", __FILE__),
256256      device_sound_interface(mconfig, *this)
257257{
258258}
trunk/src/emu/sound/ay8910.c
r23830r23831
10521052const device_type AY8910 = &device_creator<ay8910_device>;
10531053
10541054ay8910_device::ay8910_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
1055   : device_t(mconfig, AY8910, "AY-3-8910A", tag, owner, clock),
1055   : device_t(mconfig, AY8910, "AY-3-8910A", tag, owner, clock, "ay8910", __FILE__),
10561056      device_sound_interface(mconfig, *this)
10571057{
10581058}
1059ay8910_device::ay8910_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
1060   : device_t(mconfig, type, name, tag, owner, clock),
1059ay8910_device::ay8910_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source)
1060   : device_t(mconfig, type, name, tag, owner, clock, shortname, source),
10611061      device_sound_interface(mconfig, *this)
10621062{
10631063}
r23830r23831
10871087const device_type AY8912 = &device_creator<ay8912_device>;
10881088
10891089ay8912_device::ay8912_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
1090   : ay8910_device(mconfig, AY8912, "AY-3-8912A", tag, owner, clock)
1090   : ay8910_device(mconfig, AY8912, "AY-3-8912A", tag, owner, clock, "ay8913", __FILE__)
10911091{
10921092}
10931093
r23830r23831
10951095const device_type AY8913 = &device_creator<ay8913_device>;
10961096
10971097ay8913_device::ay8913_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
1098   : ay8910_device(mconfig, AY8913, "AY-3-8913A", tag, owner, clock)
1098   : ay8910_device(mconfig, AY8913, "AY-3-8913A", tag, owner, clock, "ay8913", __FILE__)
10991099{
11001100}
11011101
r23830r23831
11031103const device_type AY8914 = &device_creator<ay8914_device>;
11041104
11051105ay8914_device::ay8914_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
1106   : ay8910_device(mconfig, AY8914, "AY-3-8914", tag, owner, clock)
1106   : ay8910_device(mconfig, AY8914, "AY-3-8914", tag, owner, clock, "ay8914", __FILE__)
11071107{
11081108}
11091109
r23830r23831
11111111const device_type AY8930 = &device_creator<ay8930_device>;
11121112
11131113ay8930_device::ay8930_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
1114   : ay8910_device(mconfig, AY8930, "AY8930", tag, owner, clock)
1114   : ay8910_device(mconfig, AY8930, "AY8930", tag, owner, clock, "ay8930", __FILE__)
11151115{
11161116}
11171117
r23830r23831
11191119const device_type YM2149 = &device_creator<ym2149_device>;
11201120
11211121ym2149_device::ym2149_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
1122   : ay8910_device(mconfig, YM2149, "YM2149", tag, owner, clock)
1122   : ay8910_device(mconfig, YM2149, "YM2149", tag, owner, clock, "ym2149", __FILE__)
11231123{
11241124}
1125ym2149_device::ym2149_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
1126   : ay8910_device(mconfig, type, name, tag, owner, clock)
1125ym2149_device::ym2149_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source)
1126   : ay8910_device(mconfig, type, name, tag, owner, clock, shortname, source)
11271127{
11281128}
11291129
r23830r23831
11311131const device_type YM3439 = &device_creator<ym3439_device>;
11321132
11331133ym3439_device::ym3439_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
1134   : ym2149_device(mconfig, YM3439, "YM3439", tag, owner, clock)
1134   : ym2149_device(mconfig, YM3439, "YM3439", tag, owner, clock, "ym3429", __FILE__)
11351135{
11361136}
11371137
r23830r23831
11391139const device_type YMZ284 = &device_creator<ymz284_device>;
11401140
11411141ymz284_device::ymz284_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
1142   : ym2149_device(mconfig, YMZ284, "YMZ284", tag, owner, clock)
1142   : ym2149_device(mconfig, YMZ284, "YMZ284", tag, owner, clock, "ymz284", __FILE__)
11431143{
11441144}
11451145
r23830r23831
11471147const device_type YMZ294 = &device_creator<ymz294_device>;
11481148
11491149ymz294_device::ymz294_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
1150   : ym2149_device(mconfig, YMZ294, "YMZ294", tag, owner, clock)
1150   : ym2149_device(mconfig, YMZ294, "YMZ294", tag, owner, clock, "ymz294", __FILE__)
11511151{
11521152}
trunk/src/emu/sound/tms36xx.c
r23830r23831
322322//-------------------------------------------------
323323
324324tms36xx_device::tms36xx_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
325   : device_t(mconfig, TMS36XX, "TMS36XX", tag, owner, clock),
325   : device_t(mconfig, TMS36XX, "TMS36XX", tag, owner, clock, "tms36xx", __FILE__),
326326      device_sound_interface(mconfig, *this),
327327      m_subtype(NULL),
328328      m_channel(NULL),
trunk/src/emu/sound/st0016.c
r23830r23831
2323//-------------------------------------------------
2424
2525st0016_device::st0016_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
26   : device_t(mconfig, ST0016, "ST0016", tag, owner, clock),
26   : device_t(mconfig, ST0016, "ST0016", tag, owner, clock, "st0016", __FILE__),
2727      device_sound_interface(mconfig, *this),
2828      m_stream(NULL),
2929      m_sound_ram(NULL)
trunk/src/emu/sound/ay8910.h
r23830r23831
100100{
101101public:
102102   ay8910_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
103   ay8910_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock);
103   ay8910_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source);
104104
105105   DECLARE_READ8_MEMBER( data_r );
106106   DECLARE_WRITE8_MEMBER( address_w );
r23830r23831
174174{
175175public:
176176   ym2149_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
177   ym2149_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock);
177   ym2149_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source);
178178protected:
179179   // device-level overrides
180180   virtual void device_start();
trunk/src/emu/sound/2610intf.c
r23830r23831
219219const device_type YM2610 = &device_creator<ym2610_device>;
220220
221221ym2610_device::ym2610_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
222   : device_t(mconfig, YM2610, "YM2610", tag, owner, clock),
222   : device_t(mconfig, YM2610, "YM2610", tag, owner, clock, "ym2610", __FILE__),
223223      device_sound_interface(mconfig, *this),
224224      m_irq_handler(*this)
225225{
226226}
227227
228ym2610_device::ym2610_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
229   : device_t(mconfig, type, name, tag, owner, clock),
228ym2610_device::ym2610_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source)
229   : device_t(mconfig, type, name, tag, owner, clock, shortname, source),
230230      device_sound_interface(mconfig, *this),
231231      m_irq_handler(*this)
232232{
r23830r23831
245245const device_type YM2610B = &device_creator<ym2610b_device>;
246246
247247ym2610b_device::ym2610b_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
248   : ym2610_device(mconfig, YM2610B, "YM2610B", tag, owner, clock)
248   : ym2610_device(mconfig, YM2610B, "YM2610B", tag, owner, clock, "ym2610b", __FILE__)
249249{
250250}
trunk/src/emu/sound/beep.c
r23830r23831
3030//-------------------------------------------------
3131
3232beep_device::beep_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
33   : device_t(mconfig, BEEP, "Beep", tag, owner, clock),
33   : device_t(mconfig, BEEP, "Beep", tag, owner, clock, "beep", __FILE__),
3434      device_sound_interface(mconfig, *this),
3535      m_stream(NULL),
3636      m_enable(0),
trunk/src/emu/sound/2610intf.h
r23830r23831
1616{
1717public:
1818   ym2610_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
19   ym2610_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock);
19   ym2610_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source);
2020
2121   // static configuration helpers
2222   template<class _Object> static devcb2_base &set_irq_handler(device_t &device, _Object object) { return downcast<ym2610_device &>(device).m_irq_handler.set_callback(object); }
trunk/src/emu/sound/tms3615.c
r23830r23831
2020//-------------------------------------------------
2121
2222tms3615_device::tms3615_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
23   : device_t(mconfig, TMS3615, "TMS3615", tag, owner, clock),
23   : device_t(mconfig, TMS3615, "TMS3615", tag, owner, clock, "tms3615", __FILE__),
2424      device_sound_interface(mconfig, *this),
2525      m_channel(0),
2626      m_samplerate(0),
trunk/src/emu/sound/gaelco.c
r23830r23831
5555const device_type GAELCO_GAE1 = &device_creator<gaelco_gae1_device>;
5656
5757gaelco_gae1_device::gaelco_gae1_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
58   : device_t(mconfig, GAELCO_GAE1, "Gaelco GAE1", tag, owner, clock),
58   : device_t(mconfig, GAELCO_GAE1, "Gaelco GAE1", tag, owner, clock, "gaelco_gae1", __FILE__),
5959      device_sound_interface(mconfig, *this),
6060      m_stream(NULL),
6161      m_snd_data(NULL)
6262{
6363}
6464
65gaelco_gae1_device::gaelco_gae1_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
66   : device_t(mconfig, type, name, tag, owner, clock),
65gaelco_gae1_device::gaelco_gae1_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source)
66   : device_t(mconfig, type, name, tag, owner, clock, shortname, source),
6767      device_sound_interface(mconfig, *this),
6868      m_stream(NULL),
6969      m_snd_data(NULL)
r23830r23831
277277const device_type GAELCO_CG1V = &device_creator<gaelco_cg1v_device>;
278278
279279gaelco_cg1v_device::gaelco_cg1v_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
280   : gaelco_gae1_device(mconfig, GAELCO_CG1V, "Gaelco CG1V", tag, owner, clock)
280   : gaelco_gae1_device(mconfig, GAELCO_CG1V, "Gaelco CG1V", tag, owner, clock, "gaelco_cg1v", __FILE__)
281281{
282282}
trunk/src/emu/sound/gaelco.h
r23830r23831
5050{
5151public:
5252   gaelco_gae1_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
53   gaelco_gae1_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock);
53   gaelco_gae1_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source);
5454   ~gaelco_gae1_device() { }
5555
5656protected:
trunk/src/emu/sound/dmadac.c
r23830r23831
236236const device_type DMADAC = &device_creator<dmadac_sound_device>;
237237
238238dmadac_sound_device::dmadac_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
239   : device_t(mconfig, DMADAC, "DMA-driven DAC", tag, owner, clock),
239   : device_t(mconfig, DMADAC, "DMA-driven DAC", tag, owner, clock, "dmadac", __FILE__),
240240      device_sound_interface(mconfig, *this)
241241{
242242   m_token = global_alloc_clear(dmadac_state);
trunk/src/emu/sound/s2636.c
r23830r23831
8484const device_type S2636_SOUND = &device_creator<s2636_sound_device>;
8585
8686s2636_sound_device::s2636_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
87   : device_t(mconfig, S2636_SOUND, "S2636", tag, owner, clock),
87   : device_t(mconfig, S2636_SOUND, "S2636", tag, owner, clock, "s2636", __FILE__),
8888      device_sound_interface(mconfig, *this)
8989{
9090   m_token = global_alloc_clear(s2636_sound);
trunk/src/emu/sound/okim6295.c
r23830r23831
8585//-------------------------------------------------
8686
8787okim6295_device::okim6295_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
88   : device_t(mconfig, OKIM6295, "OKI6295", tag, owner, clock),
88   : device_t(mconfig, OKIM6295, "OKI6295", tag, owner, clock, "okim6295", __FILE__),
8989      device_sound_interface(mconfig, *this),
9090      device_memory_interface(mconfig, *this),
9191      m_space_config("samples", ENDIANNESS_LITTLE, 8, 18, 0, NULL, *ADDRESS_MAP_NAME(okim6295)),
trunk/src/emu/sound/okim6376.c
r23830r23831
619619const device_type OKIM6376 = &device_creator<okim6376_device>;
620620
621621okim6376_device::okim6376_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
622   : device_t(mconfig, OKIM6376, "OKI6376", tag, owner, clock),
622   : device_t(mconfig, OKIM6376, "OKI6376", tag, owner, clock, "okim6376", __FILE__),
623623      device_sound_interface(mconfig, *this)
624624{
625625   m_token = global_alloc_clear(okim6376_state);
trunk/src/emu/sound/es5506.c
r23830r23831
21602160const device_type ES5506 = &device_creator<es5506_device>;
21612161
21622162es5506_device::es5506_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
2163   : device_t(mconfig, ES5506, "ES5506", tag, owner, clock),
2163   : device_t(mconfig, ES5506, "ES5506", tag, owner, clock, "es5506", __FILE__),
21642164      device_sound_interface(mconfig, *this)
21652165{
21662166   m_token = global_alloc_clear(es5506_state);
21672167}
21682168
2169es5506_device::es5506_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
2170   : device_t(mconfig, type, name, tag, owner, clock),
2169es5506_device::es5506_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source)
2170   : device_t(mconfig, type, name, tag, owner, clock, shortname, source),
21712171      device_sound_interface(mconfig, *this)
21722172{
21732173   m_token = global_alloc_clear(es5506_state);
r23830r23831
22232223const device_type ES5505 = &device_creator<es5505_device>;
22242224
22252225es5505_device::es5505_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
2226   : es5506_device(mconfig, ES5505, "ES5505", tag, owner, clock)
2226   : es5506_device(mconfig, ES5505, "ES5505", tag, owner, clock, "es5505", __FILE__)
22272227{
22282228}
22292229
trunk/src/emu/sound/cdp1864.c
r23830r23831
9898//-------------------------------------------------
9999
100100cdp1864_device::cdp1864_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
101   : device_t(mconfig, CDP1864, "CDP1864", tag, owner, clock),
101   : device_t(mconfig, CDP1864, "CDP1864", tag, owner, clock, "cdp1864", __FILE__),
102102      device_sound_interface(mconfig, *this),
103103      m_read_inlace(*this),
104104      m_read_rdata(*this),
trunk/src/emu/sound/es5506.h
r23830r23831
3030{
3131public:
3232   es5506_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
33   es5506_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock);
33   es5506_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source);
3434   ~es5506_device() { global_free(m_token); }
3535
3636   // access to legacy token
trunk/src/emu/sound/2413intf.c
r23830r23831
7777const device_type YM2413 = &device_creator<ym2413_device>;
7878
7979ym2413_device::ym2413_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
80   : device_t(mconfig, YM2413, "YM2413", tag, owner, clock),
80   : device_t(mconfig, YM2413, "YM2413", tag, owner, clock, "ym2413", __FILE__),
8181      device_sound_interface(mconfig, *this)
8282{
8383}
trunk/src/emu/sound/t6w28.c
r23830r23831
348348const device_type T6W28 = &device_creator<t6w28_device>;
349349
350350t6w28_device::t6w28_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
351   : device_t(mconfig, T6W28, "T6W28", tag, owner, clock),
351   : device_t(mconfig, T6W28, "T6W28", tag, owner, clock, "t6w28", __FILE__),
352352      device_sound_interface(mconfig, *this)
353353{
354354}
trunk/src/emu/sound/namco.c
r23830r23831
816816const device_type NAMCO = &device_creator<namco_device>;
817817
818818namco_device::namco_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
819   : device_t(mconfig, NAMCO, "Namco", tag, owner, clock),
819   : device_t(mconfig, NAMCO, "Namco", tag, owner, clock, "namco", __FILE__),
820820      device_sound_interface(mconfig, *this)
821821{
822822   m_token = global_alloc_clear(namco_sound);
823823}
824824
825namco_device::namco_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
826   : device_t(mconfig, type, name, tag, owner, clock),
825namco_device::namco_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source)
826   : device_t(mconfig, type, name, tag, owner, clock, shortname, source),
827827      device_sound_interface(mconfig, *this)
828828{
829829   m_token = global_alloc_clear(namco_sound);
r23830r23831
862862const device_type NAMCO_15XX = &device_creator<namco_15xx_device>;
863863
864864namco_15xx_device::namco_15xx_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
865   : namco_device(mconfig, NAMCO_15XX, "Namco 15XX", tag, owner, clock)
865   : namco_device(mconfig, NAMCO_15XX, "Namco 15XX", tag, owner, clock, "namco_15xx", __FILE__)
866866{
867867}
868868
869869const device_type NAMCO_CUS30 = &device_creator<namco_cus30_device>;
870870
871871namco_cus30_device::namco_cus30_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
872   : namco_device(mconfig, NAMCO_CUS30, "Namco CUS30", tag, owner, clock)
872   : namco_device(mconfig, NAMCO_CUS30, "Namco CUS30", tag, owner, clock, "namco_cus30", __FILE__)
873873{
874874}
trunk/src/emu/sound/sn76477.c
r23830r23831
24692469const device_type SN76477 = &device_creator<sn76477_device>;
24702470
24712471sn76477_device::sn76477_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
2472   : device_t(mconfig, SN76477, "SN76477", tag, owner, clock),
2472   : device_t(mconfig, SN76477, "SN76477", tag, owner, clock, "sn76477", __FILE__),
24732473      device_sound_interface(mconfig, *this)
24742474{
24752475   m_token = global_alloc_clear(sn76477_state);
trunk/src/emu/sound/namco.h
r23830r23831
3131{
3232public:
3333   namco_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
34   namco_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock);
34   namco_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source);
3535   ~namco_device() { global_free(m_token); }
3636
3737   // access to legacy token
trunk/src/emu/sound/vlm5030.c
r23830r23831
690690const device_type VLM5030 = &device_creator<vlm5030_device>;
691691
692692vlm5030_device::vlm5030_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
693   : device_t(mconfig, VLM5030, "VLM5030", tag, owner, clock),
693   : device_t(mconfig, VLM5030, "VLM5030", tag, owner, clock, "vlm5030", __FILE__),
694694      device_sound_interface(mconfig, *this)
695695{
696696   m_token = global_alloc_clear(vlm5030_state);
trunk/src/emu/sound/tms5220.c
r23830r23831
18261826const device_type TMS5220C = &device_creator<tms5220c_device>;
18271827
18281828tms5220c_device::tms5220c_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
1829   : tms5220_device(mconfig, TMS5220C, "TMS5220C", tag, owner, clock)
1829   : tms5220_device(mconfig, TMS5220C, "TMS5220C", tag, owner, clock, "tms5220c", __FILE__)
18301830{
18311831}
18321832
r23830r23831
18341834const device_type TMS5220 = &device_creator<tms5220_device>;
18351835
18361836tms5220_device::tms5220_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
1837   : device_t(mconfig, TMS5220, "TMS5220", tag, owner, clock),
1837   : device_t(mconfig, TMS5220, "TMS5220", tag, owner, clock, "tms5220", __FILE__),
18381838      device_sound_interface(mconfig, *this),
18391839      m_irq_handler(*this),
18401840      m_readyq_handler(*this),
r23830r23831
18421842{
18431843}
18441844
1845tms5220_device::tms5220_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
1846   : device_t(mconfig, type, name, tag, owner, clock),
1845tms5220_device::tms5220_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source)
1846   : device_t(mconfig, type, name, tag, owner, clock, shortname, source),
18471847      device_sound_interface(mconfig, *this),
18481848      m_irq_handler(*this),
18491849      m_readyq_handler(*this),
r23830r23831
18651865const device_type TMC0285 = &device_creator<tmc0285_device>;
18661866
18671867tmc0285_device::tmc0285_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
1868   : tms5220_device(mconfig, TMC0285, "TMC0285", tag, owner, clock)
1868   : tms5220_device(mconfig, TMC0285, "TMC0285", tag, owner, clock, "tmc0285", __FILE__)
18691869{
18701870}
18711871
r23830r23831
18731873const device_type TMS5200 = &device_creator<tms5200_device>;
18741874
18751875tms5200_device::tms5200_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
1876   : tms5220_device(mconfig, TMS5200, "TMS5200", tag, owner, clock)
1876   : tms5220_device(mconfig, TMS5200, "TMS5200", tag, owner, clock, "tms5200", __FILE__)
18771877{
18781878}
trunk/src/emu/sound/mos7360.c
r23830r23831
255255//-------------------------------------------------
256256
257257mos7360_device::mos7360_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
258   : device_t(mconfig, MOS7360, "MOS7360", tag, owner, clock),
258   : device_t(mconfig, MOS7360, "MOS7360", tag, owner, clock, "mos7360", __FILE__),
259259      device_memory_interface(mconfig, *this),
260260      device_sound_interface(mconfig, *this),
261261      m_videoram_space_config("videoram", ENDIANNESS_LITTLE, 8, 16, 0, NULL, *ADDRESS_MAP_NAME(mos7360_videoram_map)),
trunk/src/emu/sound/tms5220.h
r23830r23831
3131{
3232public:
3333   tms5220_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
34   tms5220_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock);
34   tms5220_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source);
3535
3636   // static configuration helpers
3737   template<class _Object> static devcb2_base &set_irq_handler(device_t &device, _Object object) { return downcast<tms5220_device &>(device).m_irq_handler.set_callback(object); }
trunk/src/emu/sound/t6721a.c
r23830r23831
3737//-------------------------------------------------
3838
3939t6721a_device::t6721a_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
40   : device_t(mconfig, T6721A, "T6721A", tag, owner, clock),
40   : device_t(mconfig, T6721A, "T6721A", tag, owner, clock, "t6721a", __FILE__),
4141      device_sound_interface(mconfig, *this),
4242      m_eos_handler(*this),
4343      m_dtrd_handler(*this),
trunk/src/emu/sound/es8712.c
r23830r23831
3838//-------------------------------------------------
3939
4040es8712_device::es8712_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
41   : device_t(mconfig, ES8712, "ES8712", tag, owner, clock),
41   : device_t(mconfig, ES8712, "ES8712", tag, owner, clock, "es8712", __FILE__),
4242      device_sound_interface(mconfig, *this),
4343      m_playing(0),
4444      m_base_offset(0),
trunk/src/emu/sound/262intf.c
r23830r23831
136136const device_type YMF262 = &device_creator<ymf262_device>;
137137
138138ymf262_device::ymf262_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
139   : device_t(mconfig, YMF262, "YMF262", tag, owner, clock),
139   : device_t(mconfig, YMF262, "YMF262", tag, owner, clock, "ymf262", __FILE__),
140140      device_sound_interface(mconfig, *this),
141141      m_irq_handler(*this)
142142{
trunk/src/emu/sound/nes_apu.c
r23830r23831
769769const device_type NES = &device_creator<nesapu_device>;
770770
771771nesapu_device::nesapu_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
772   : device_t(mconfig, NES, "N2A03", tag, owner, clock),
772   : device_t(mconfig, NES, "N2A03", tag, owner, clock, "nesapu", __FILE__),
773773      device_sound_interface(mconfig, *this)
774774{
775775   m_token = global_alloc_clear(nesapu_state);
trunk/src/emu/sound/tc8830f.c
r23830r23831
2323const device_type TC8830F = &device_creator<tc8830f_device>;
2424
2525tc8830f_device::tc8830f_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
26   : device_t(mconfig, TC8830F, "TC8830F", tag, owner, clock),
26   : device_t(mconfig, TC8830F, "TC8830F", tag, owner, clock, "tc8830f", __FILE__),
2727      device_sound_interface(mconfig, *this)
2828{
2929}
trunk/src/emu/sound/lmc1992.c
r23830r23831
140140//-------------------------------------------------
141141
142142lmc1992_device::lmc1992_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
143   : device_t(mconfig, LMC1992, "LMC1992", tag, owner, clock),
143   : device_t(mconfig, LMC1992, "LMC1992", tag, owner, clock, "lmc1992", __FILE__),
144144      device_sound_interface(mconfig, *this)
145145{
146146}
trunk/src/emu/sound/mas3507d.c
r23830r23831
99const device_type MAS3507D = &device_creator<mas3507d_device>;
1010
1111mas3507d_device::mas3507d_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
12   : device_t(mconfig, MAS3507D, "MAS3507D", tag, owner, clock),
12   : device_t(mconfig, MAS3507D, "MAS3507D", tag, owner, clock, "mas3507d", __FILE__),
1313      device_sound_interface(mconfig, *this)
1414{
1515}
trunk/src/mame/drivers/namcoic.c
r23830r23831
13091309//-------------------------------------------------
13101310
13111311namco_c45_road_device::namco_c45_road_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
1312   : device_t(mconfig, NAMCO_C45_ROAD, "Namco C45 Road", tag, owner, clock),
1312   : device_t(mconfig, NAMCO_C45_ROAD, "Namco C45 Road", tag, owner, clock, "namco_c45_road", __FILE__),
13131313      m_transparent_color(~0),
13141314      m_gfx(NULL),
13151315      m_tilemap(NULL)
trunk/src/mame/drivers/pinkiri8.c
r23830r23831
125125
126126
127127janshi_vdp_device::janshi_vdp_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
128   : device_t(mconfig, JANSHIVDP, "JANSHIVDP", tag, owner, clock),
128   : device_t(mconfig, JANSHIVDP, "JANSHIVDP", tag, owner, clock, "janshi_vdp", __FILE__),
129129      device_memory_interface(mconfig, *this),
130130      m_space_config("janshi_vdp", ENDIANNESS_LITTLE, 8,24, 0, NULL, *ADDRESS_MAP_NAME(janshi_vdp_map8))
131131{
trunk/src/mame/drivers/mjkjidai.c
r23830r23831
103103const device_type MJKJIDAI = &device_creator<mjkjidai_adpcm_device>;
104104
105105mjkjidai_adpcm_device::mjkjidai_adpcm_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
106   : device_t(mconfig, MJKJIDAI, "Custom ADPCM", tag, owner, clock),
106   : device_t(mconfig, MJKJIDAI, "Custom ADPCM", tag, owner, clock, "mjkjidai_adpcm", __FILE__),
107107      device_sound_interface(mconfig, *this)
108108{
109109   m_token = global_alloc_clear(mjkjidai_adpcm_state);
trunk/src/mame/drivers/littlerb.c
r23830r23831
285285const device_type LITTLERBVDP = &device_creator<littlerb_vdp_device>;
286286
287287littlerb_vdp_device::littlerb_vdp_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
288   : device_t(mconfig, LITTLERBVDP, "LITTLERBVDP", tag, owner, clock),
288   : device_t(mconfig, LITTLERBVDP, "LITTLERBVDP", tag, owner, clock, "littlerb_vdp", __FILE__),
289289      device_memory_interface(mconfig, *this),
290290      m_space_config("littlerb_vdp", ENDIANNESS_LITTLE, 16,32, 0, NULL, *ADDRESS_MAP_NAME(littlerb_vdp_map8))
291291{
trunk/src/mame/drivers/renegade.c
r23830r23831
193193const device_type RENEGADE_ADPCM = &device_creator<renegade_adpcm_device>;
194194
195195renegade_adpcm_device::renegade_adpcm_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
196   : device_t(mconfig, RENEGADE_ADPCM, "Renegade Custom ADPCM", tag, owner, clock),
196   : device_t(mconfig, RENEGADE_ADPCM, "Renegade Custom ADPCM", tag, owner, clock, "renegade_adpcm", __FILE__),
197197      device_sound_interface(mconfig, *this)
198198{
199199   m_token = global_alloc_clear(renegade_adpcm_state);
trunk/src/mame/audio/snes_snd.c
r23830r23831
154154const device_type SNES = &device_creator<snes_sound_device>;
155155
156156snes_sound_device::snes_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
157                  : device_t(mconfig, SNES, "SNES Custom DSP (SPC700)", tag, owner, clock),
157                  : device_t(mconfig, SNES, "SNES Custom DSP (SPC700)", tag, owner, clock, "snes_sound", __FILE__),
158158                     device_sound_interface(mconfig, *this)
159159{
160160}
trunk/src/mame/audio/timeplt.c
r23830r23831
263263const device_type TIMEPLT_AUDIO = &device_creator<timeplt_audio_device>;
264264
265265timeplt_audio_device::timeplt_audio_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
266   : device_t(mconfig, TIMEPLT_AUDIO, "Time Pilot Audio", tag, owner, clock),
266   : device_t(mconfig, TIMEPLT_AUDIO, "Time Pilot Audio", tag, owner, clock, "timeplt_audio", __FILE__),
267267      device_sound_interface(mconfig, *this)
268268{
269269   m_token = global_alloc_clear(timeplt_audio_state);
trunk/src/mame/audio/wiping.c
r23830r23831
262262const device_type WIPING = &device_creator<wiping_sound_device>;
263263
264264wiping_sound_device::wiping_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
265   : device_t(mconfig, WIPING, "Wiping Custom", tag, owner, clock),
265   : device_t(mconfig, WIPING, "Wiping Custom", tag, owner, clock, "wiping_sound", __FILE__),
266266      device_sound_interface(mconfig, *this)
267267{
268268   m_token = global_alloc_clear(wiping_sound_state);
trunk/src/mame/audio/leland.c
r23830r23831
573573const device_type LELAND = &device_creator<leland_sound_device>;
574574
575575leland_sound_device::leland_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
576   : device_t(mconfig, LELAND, "Leland DAC", tag, owner, clock),
576   : device_t(mconfig, LELAND, "Leland DAC", tag, owner, clock, "leland_dac", __FILE__),
577577      device_sound_interface(mconfig, *this)
578578{
579579   m_token = global_alloc_clear(leland_sound_state);
580580}
581581
582leland_sound_device::leland_sound_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
583   : device_t(mconfig, type, name, tag, owner, clock),
582leland_sound_device::leland_sound_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source)
583   : device_t(mconfig, type, name, tag, owner, clock, shortname, source),
584584      device_sound_interface(mconfig, *this)
585585{
586586   m_token = global_alloc_clear(leland_sound_state);
r23830r23831
619619const device_type LELAND_80186 = &device_creator<leland_80186_sound_device>;
620620
621621leland_80186_sound_device::leland_80186_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
622   : leland_sound_device(mconfig, LELAND_80186, "Leland 80186 DAC", tag, owner, clock)
622   : leland_sound_device(mconfig, LELAND_80186, "Leland 80186 DAC", tag, owner, clock, "leland_80186_sound", __FILE__)
623623{
624624}
625625
626leland_80186_sound_device::leland_80186_sound_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
627   : leland_sound_device(mconfig, type, name, tag, owner, clock)
626leland_80186_sound_device::leland_80186_sound_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source)
627   : leland_sound_device(mconfig, type, name, tag, owner, clock, shortname, source)
628628{
629629}
630630
r23830r23831
671671const device_type REDLINE_80186 = &device_creator<redline_80186_sound_device>;
672672
673673redline_80186_sound_device::redline_80186_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
674   : leland_80186_sound_device(mconfig, REDLINE_80186, "Redline Racer 80186 DAC", tag, owner, clock)
674   : leland_80186_sound_device(mconfig, REDLINE_80186, "Redline Racer 80186 DAC", tag, owner, clock, "redline_80186_sound", __FILE__)
675675{
676676}
677677
trunk/src/mame/audio/gomoku.c
r23830r23831
2626//-------------------------------------------------
2727
2828gomoku_sound_device::gomoku_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
29   : device_t(mconfig, GOMOKU, "Gomoku Custom", tag, owner, clock),
29   : device_t(mconfig, GOMOKU, "Gomoku Custom", tag, owner, clock, "gomoku_sound", __FILE__),
3030      device_sound_interface(mconfig, *this),
3131      m_last_channel(NULL),
3232      m_sound_rom(NULL),
trunk/src/mame/audio/warpwarp.c
r23830r23831
1717const device_type WARPWARP = &device_creator<warpwarp_sound_device>;
1818
1919warpwarp_sound_device::warpwarp_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
20   : device_t(mconfig, WARPWARP, "Warp Warp Custom", tag, owner, clock),
20   : device_t(mconfig, WARPWARP, "Warp Warp Custom", tag, owner, clock, "warpwarp_sound", __FILE__),
2121      device_sound_interface(mconfig, *this),
2222      m_decay(NULL),
2323      m_channel(NULL),
trunk/src/mame/audio/snk6502.c
r23830r23831
12521252const device_type SNK6502 = &device_creator<snk6502_sound_device>;
12531253
12541254snk6502_sound_device::snk6502_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
1255   : device_t(mconfig, SNK6502, "snk6502 Custom", tag, owner, clock),
1255   : device_t(mconfig, SNK6502, "snk6502 Custom", tag, owner, clock, "snk6502_sound", __FILE__),
12561256      device_sound_interface(mconfig, *this)
12571257{
12581258   m_token = global_alloc_clear(snk6502_sound_state);
trunk/src/mame/audio/cps3.c
r23830r23831
2020//-------------------------------------------------
2121
2222cps3_sound_device::cps3_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
23   : device_t(mconfig, CPS3, "CPS3 Custom", tag, owner, clock),
23   : device_t(mconfig, CPS3, "CPS3 Custom", tag, owner, clock, "cps3_custom", __FILE__),
2424      device_sound_interface(mconfig, *this),
2525      m_stream(NULL),
2626      m_key(0),
trunk/src/mame/audio/tiamc1.c
r23830r23831
5656//-------------------------------------------------
5757
5858tiamc1_sound_device::tiamc1_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
59   : device_t(mconfig, TIAMC1, "TIA-MC1 Custom", tag, owner, clock),
59   : device_t(mconfig, TIAMC1, "TIA-MC1 Custom", tag, owner, clock, "tiamc1_sound", __FILE__),
6060      device_sound_interface(mconfig, *this),
6161      m_channel(NULL),
6262      m_timer1_divider(0)
trunk/src/mame/audio/flower.c
r23830r23831
2222const device_type FLOWER = &device_creator<flower_sound_device>;
2323
2424flower_sound_device::flower_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
25   : device_t(mconfig, FLOWER, "Flower Custom Sound", tag, owner, clock),
25   : device_t(mconfig, FLOWER, "Flower Custom Sound", tag, owner, clock, "flower_sound", __FILE__),
2626      device_sound_interface(mconfig, *this)
2727{
2828}
trunk/src/mame/audio/dsbz80.c
r23830r23831
6161//-------------------------------------------------
6262
6363dsbz80_device::dsbz80_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
64   device_t(mconfig, DSBZ80, "Sega Z80-based Digital Sound Board", tag, owner, clock),
64   device_t(mconfig, DSBZ80, "Sega Z80-based Digital Sound Board", tag, owner, clock, "dsbz80", __FILE__),
6565   device_sound_interface(mconfig, *this),
6666   m_ourcpu(*this, Z80_TAG)
6767{
trunk/src/mame/audio/pleiads.c
r23830r23831
682682const device_type PLEIADS = &device_creator<pleiads_sound_device>;
683683
684684pleiads_sound_device::pleiads_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
685   : device_t(mconfig, PLEIADS, "Pleiads Custom", tag, owner, clock),
685   : device_t(mconfig, PLEIADS, "Pleiads Custom", tag, owner, clock, "pleiads_sound", __FILE__),
686686      device_sound_interface(mconfig, *this)
687687{
688688   m_token = global_alloc_clear(pleiads_sound_state);
689689}
690690
691pleiads_sound_device::pleiads_sound_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
692   : device_t(mconfig, type, name, tag, owner, clock),
691pleiads_sound_device::pleiads_sound_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source)
692   : device_t(mconfig, type, name, tag, owner, clock, shortname, source),
693693      device_sound_interface(mconfig, *this)
694694{
695695   m_token = global_alloc_clear(pleiads_sound_state);
r23830r23831
728728const device_type NAUGHTYB = &device_creator<naughtyb_sound_device>;
729729
730730naughtyb_sound_device::naughtyb_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
731   : pleiads_sound_device(mconfig, NAUGHTYB, "Naughty Boy Custom", tag, owner, clock)
731   : pleiads_sound_device(mconfig, NAUGHTYB, "Naughty Boy Custom", tag, owner, clock, "naughtyb_sound", __FILE__)
732732{
733733}
734734
r23830r23831
765765const device_type POPFLAME = &device_creator<popflame_sound_device>;
766766
767767popflame_sound_device::popflame_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
768   : pleiads_sound_device(mconfig, POPFLAME, "Pop Flamer Custom", tag, owner, clock)
768   : pleiads_sound_device(mconfig, POPFLAME, "Pop Flamer Custom", tag, owner, clock, "popflame_sound", __FILE__)
769769{
770770}
771771
trunk/src/mame/audio/taitosnd.c
r23830r23831
2929//-------------------------------------------------
3030
3131tc0140syt_device::tc0140syt_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
32   : device_t(mconfig, TC0140SYT, "Taito TC0140SYT", tag, owner, clock),
32   : device_t(mconfig, TC0140SYT, "Taito TC0140SYT", tag, owner, clock, "tc0140syt", __FILE__),
3333      m_mainmode(0),
3434      m_submode(0),
3535      m_status(0),
trunk/src/mame/audio/pleiads.h
r23830r23831
77{
88public:
99   pleiads_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
10   pleiads_sound_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock);
10   pleiads_sound_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source);
1111   ~pleiads_sound_device() { global_free(m_token); }
1212
1313   // access to legacy token
trunk/src/mame/audio/irem.c
r23830r23831
488488const device_type IREM_AUDIO = &device_creator<irem_audio_device>;
489489
490490irem_audio_device::irem_audio_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
491   : device_t(mconfig, IREM_AUDIO, "Irem Audio", tag, owner, clock),
491   : device_t(mconfig, IREM_AUDIO, "Irem Audio", tag, owner, clock, "irem_audio", __FILE__),
492492      device_sound_interface(mconfig, *this)
493493{
494494   m_token = global_alloc_clear(irem_audio_state);
trunk/src/mame/audio/segag80r.c
r23830r23831
4848const device_type SEGA005 = &device_creator<sega005_sound_device>;
4949
5050sega005_sound_device::sega005_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
51   : device_t(mconfig, SEGA005, "005 Custom", tag, owner, clock),
51   : device_t(mconfig, SEGA005, "005 Custom", tag, owner, clock, "sega005_sound", __FILE__),
5252      device_sound_interface(mconfig, *this)
5353{
5454}
trunk/src/mame/audio/polepos.c
r23830r23831
5050//-------------------------------------------------
5151
5252polepos_sound_device::polepos_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
53   : device_t(mconfig, POLEPOS, "Pole Position Custom", tag, owner, clock),
53   : device_t(mconfig, POLEPOS, "Pole Position Custom", tag, owner, clock, "polepos_sound", __FILE__),
5454      device_sound_interface(mconfig, *this),
5555      m_current_position(0),
5656      m_sample_msb(0),
trunk/src/mame/audio/micro3d.c
r23830r23831
405405const device_type MICRO3D = &device_creator<micro3d_sound_device>;
406406
407407micro3d_sound_device::micro3d_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
408   : device_t(mconfig, MICRO3D, "Microprose Custom", tag, owner, clock),
408   : device_t(mconfig, MICRO3D, "Microprose Custom", tag, owner, clock, "micro3d_sound", __FILE__),
409409      device_sound_interface(mconfig, *this)
410410{
411411   m_token = global_alloc_clear(noise_state);
trunk/src/mame/audio/seibu.c
r23830r23831
591591const device_type SEIBU_ADPCM = &device_creator<seibu_adpcm_device>;
592592
593593seibu_adpcm_device::seibu_adpcm_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
594   : device_t(mconfig, SEIBU_ADPCM, "Seibu ADPCM", tag, owner, clock),
594   : device_t(mconfig, SEIBU_ADPCM, "Seibu ADPCM", tag, owner, clock, "seibu_adpcm", __FILE__),
595595      device_sound_interface(mconfig, *this)
596596{
597597   m_token = global_alloc_clear(seibu_adpcm_state);
trunk/src/mame/audio/phoenix.c
r23830r23831
573573const device_type PHOENIX = &device_creator<phoenix_sound_device>;
574574
575575phoenix_sound_device::phoenix_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
576   : device_t(mconfig, PHOENIX, "Phoenix Custom", tag, owner, clock),
576   : device_t(mconfig, PHOENIX, "Phoenix Custom", tag, owner, clock, "phoenix_sound", __FILE__),
577577      device_sound_interface(mconfig, *this)
578578{
579579   m_token = global_alloc_clear(phoenix_sound_state);
trunk/src/mame/audio/hyprolyb.c
r23830r23831
138138const device_type HYPROLYB_ADPCM = &device_creator<hyprolyb_adpcm_device>;
139139
140140hyprolyb_adpcm_device::hyprolyb_adpcm_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
141   : device_t(mconfig, HYPROLYB_ADPCM, "Hyper Olympics Audio", tag, owner, clock),
141   : device_t(mconfig, HYPROLYB_ADPCM, "Hyper Olympics Audio", tag, owner, clock, "hyprolyb_adpcm", __FILE__),
142142      device_sound_interface(mconfig, *this)
143143{
144144   m_token = global_alloc_clear(hyprolyb_adpcm_state);
trunk/src/mame/audio/geebee.c
r23830r23831
1414const device_type GEEBEE = &device_creator<geebee_sound_device>;
1515
1616geebee_sound_device::geebee_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
17   : device_t(mconfig, GEEBEE, "Gee Bee Custom", tag, owner, clock),
17   : device_t(mconfig, GEEBEE, "Gee Bee Custom", tag, owner, clock, "geebee_sound", __FILE__),
1818      device_sound_interface(mconfig, *this),
1919      m_decay(NULL),
2020      m_channel(NULL),
trunk/src/mame/audio/beezer.c
r23830r23831
397397const device_type BEEZER = &device_creator<beezer_sound_device>;
398398
399399beezer_sound_device::beezer_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
400   : device_t(mconfig, BEEZER, "beezer SFX", tag, owner, clock),
400   : device_t(mconfig, BEEZER, "beezer SFX", tag, owner, clock, "beezer_sound", __FILE__),
401401      device_sound_interface(mconfig, *this)
402402{
403403   m_token = global_alloc_clear(beezer_sound_state);
trunk/src/mame/audio/tx1.c
r23830r23831
575575const device_type BUGGYBOY = &device_creator<buggyboy_sound_device>;
576576
577577buggyboy_sound_device::buggyboy_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
578   : tx1_sound_device(mconfig, BUGGYBOY, "Buggy Boy Custom", tag, owner, clock)
578   : tx1_sound_device(mconfig, BUGGYBOY, "Buggy Boy Custom", tag, owner, clock, "buggyboy_sound", __FILE__)
579579{
580580}
581581
r23830r23831
621621const device_type TX1 = &device_creator<tx1_sound_device>;
622622
623623tx1_sound_device::tx1_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
624   : device_t(mconfig, TX1, "TX-1 Custom", tag, owner, clock),
624   : device_t(mconfig, TX1, "TX-1 Custom", tag, owner, clock, "tx1_sound", __FILE__),
625625      device_sound_interface(mconfig, *this)
626626{
627627   m_token = global_alloc_clear(tx1_sound_state);
628628}
629629
630tx1_sound_device::tx1_sound_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
631   : device_t(mconfig, type, name, tag, owner, clock),
630tx1_sound_device::tx1_sound_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source)
631   : device_t(mconfig, type, name, tag, owner, clock, shortname, source),
632632      device_sound_interface(mconfig, *this)
633633{
634634   m_token = global_alloc_clear(tx1_sound_state);
trunk/src/mame/audio/exidy.c
r23830r23831
421421const device_type EXIDY = &device_creator<exidy_sound_device>;
422422
423423exidy_sound_device::exidy_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
424   : device_t(mconfig, EXIDY, "Exidy SFX", tag, owner, clock),
424   : device_t(mconfig, EXIDY, "Exidy SFX", tag, owner, clock, "exidy_sfx", __FILE__),
425425      device_sound_interface(mconfig, *this)
426426{
427427   m_token = global_alloc_clear(exidy_sound_state);
428428}
429429
430exidy_sound_device::exidy_sound_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
431   : device_t(mconfig, type, name, tag, owner, clock),
430exidy_sound_device::exidy_sound_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source)
431   : device_t(mconfig, type, name, tag, owner, clock, shortname, source),
432432      device_sound_interface(mconfig, *this)
433433{
434434   m_token = global_alloc_clear(exidy_sound_state);
r23830r23831
887887const device_type EXIDY_VENTURE = &device_creator<venture_sound_device>;
888888
889889venture_sound_device::venture_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
890   : exidy_sound_device(mconfig, EXIDY_VENTURE, "Exidy SFX+PSG", tag, owner, clock)
890   : exidy_sound_device(mconfig, EXIDY_VENTURE, "Exidy SFX+PSG", tag, owner, clock, "venture_sound", __FILE__)
891891{
892892}
893893
r23830r23831
11541154const device_type EXIDY_VICTORY = &device_creator<victory_sound_device>;
11551155
11561156victory_sound_device::victory_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
1157   : exidy_sound_device(mconfig, EXIDY_VICTORY, "Exidy SFX+PSG+Speech", tag, owner, clock)
1157   : exidy_sound_device(mconfig, EXIDY_VICTORY, "Exidy SFX+PSG+Speech", tag, owner, clock, "victory_sound", __FILE__)
11581158{
11591159}
11601160
trunk/src/mame/audio/segasnd.c
r23830r23831
179179const device_type SEGASPEECH = &device_creator<speech_sound_device>;
180180
181181speech_sound_device::speech_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
182   : device_t(mconfig, SEGASPEECH, "Sega Speech Sound Board", tag, owner, clock),
182   : device_t(mconfig, SEGASPEECH, "Sega Speech Sound Board", tag, owner, clock, "sega_speech_sound", __FILE__),
183183      device_sound_interface(mconfig, *this)
184184{
185185   m_token = global_alloc_clear(speech_state);
r23830r23831
882882const device_type SEGAUSB = &device_creator<usb_sound_device>;
883883
884884usb_sound_device::usb_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
885   : device_t(mconfig, SEGAUSB, "Sega Universal Sound Board", tag, owner, clock),
885   : device_t(mconfig, SEGAUSB, "Sega Universal Sound Board", tag, owner, clock, "usb_sound", __FILE__),
886886      device_sound_interface(mconfig, *this)
887887{
888888   m_token = global_alloc_clear(usb_state);
trunk/src/mame/audio/exidy.h
r23830r23831
33{
44public:
55   exidy_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
6   exidy_sound_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock);
6   exidy_sound_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source);
77   ~exidy_sound_device() { global_free(m_token); }
88
99   // access to legacy token
trunk/src/mame/audio/trackfld.c
r23830r23831
163163const device_type TRACKFLD_AUDIO = &device_creator<trackfld_audio_device>;
164164
165165trackfld_audio_device::trackfld_audio_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
166   : device_t(mconfig, TRACKFLD_AUDIO, "Track And Field Audio", tag, owner, clock),
166   : device_t(mconfig, TRACKFLD_AUDIO, "Track And Field Audio", tag, owner, clock, "trackfld_audio", __FILE__),
167167      device_sound_interface(mconfig, *this)
168168{
169169   m_token = global_alloc_clear(trackfld_audio_state);
trunk/src/mame/audio/redbaron.c
r23830r23831
3434//-------------------------------------------------
3535
3636redbaron_sound_device::redbaron_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
37   : device_t(mconfig, REDBARON, "Red Baron Custom", tag, owner, clock),
37   : device_t(mconfig, REDBARON, "Red Baron Custom", tag, owner, clock, "redbaron_custom", __FILE__),
3838      device_sound_interface(mconfig, *this),
3939      m_vol_lookup(NULL),
4040      m_channel(NULL),
trunk/src/mame/audio/decobsmt.c
r23830r23831
7777//-------------------------------------------------
7878
7979decobsmt_device::decobsmt_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
80      device_t(mconfig, DECOBSMT, "Data East/Sega/Stern BSMT2000 Sound Board", tag, owner, clock),
80      device_t(mconfig, DECOBSMT, "Data East/Sega/Stern BSMT2000 Sound Board", tag, owner, clock, "decobsmt", __FILE__),
8181   m_ourcpu(*this, M6809_TAG),
8282   m_bsmt(*this, BSMT_TAG)
8383{
trunk/src/mame/audio/m72.c
r23830r23831
256256const device_type M72 = &device_creator<m72_audio_device>;
257257
258258m72_audio_device::m72_audio_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
259   : device_t(mconfig, M72, "M72 Custom", tag, owner, clock),
259   : device_t(mconfig, M72, "M72 Custom", tag, owner, clock, "m72_audio", __FILE__),
260260      device_sound_interface(mconfig, *this)
261261{
262262   m_token = global_alloc_clear(m72_audio_state);
trunk/src/mame/audio/exidy440.c
r23830r23831
992992const device_type EXIDY440 = &device_creator<exidy440_sound_device>;
993993
994994exidy440_sound_device::exidy440_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
995   : device_t(mconfig, EXIDY440, "Exidy 440 CVSD", tag, owner, clock),
995   : device_t(mconfig, EXIDY440, "Exidy 440 CVSD", tag, owner, clock, "exidy440_sound", __FILE__),
996996      device_sound_interface(mconfig, *this)
997997{
998998   m_token = global_alloc_clear(exidy440_audio_state);
trunk/src/mame/audio/gridlee.c
r23830r23831
2121//-------------------------------------------------
2222
2323gridlee_sound_device::gridlee_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
24   : device_t(mconfig, GRIDLEE, "Gridlee Custom", tag, owner, clock),
24   : device_t(mconfig, GRIDLEE, "Gridlee Custom", tag, owner, clock, "gridlee_sound", __FILE__),
2525      device_sound_interface(mconfig, *this),
2626      m_tone_step(0),
2727      m_tone_fraction(0),
trunk/src/mame/audio/amiga.c
r23830r23831
280280const device_type AMIGA = &device_creator<amiga_sound_device>;
281281
282282amiga_sound_device::amiga_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
283   : device_t(mconfig, AMIGA, "Amiga Paula", tag, owner, clock),
283   : device_t(mconfig, AMIGA, "Amiga Paula", tag, owner, clock, "amiga_paula", __FILE__),
284284      device_sound_interface(mconfig, *this)
285285{
286286   m_token = global_alloc_clear(amiga_audio);
trunk/src/mame/machine/megacdcd.c
r23830r23831
1111const device_type LC89510_TEMP = &device_creator<lc89510_temp_device>;
1212
1313lc89510_temp_device::lc89510_temp_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
14   : device_t(mconfig, LC89510_TEMP, "lc89510_temp_device", tag, owner, clock)
14   : device_t(mconfig, LC89510_TEMP, "lc89510_temp_device", tag, owner, clock, "lc89510_temp", __FILE__)
1515{
1616   segacd_dma_callback =  segacd_dma_delegate(FUNC(lc89510_temp_device::Fake_CDC_Do_DMA), this);
1717   type1_interrupt_callback =  interrupt_delegate(FUNC(lc89510_temp_device::dummy_interrupt_callback), this);
trunk/src/mame/machine/cd32.c
r23830r23831
910910const device_type AKIKO = &device_creator<akiko_device>;
911911
912912akiko_device::akiko_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
913   : device_t(mconfig, AKIKO, "Akiko", tag, owner, clock)
913   : device_t(mconfig, AKIKO, "Akiko", tag, owner, clock, "akiko", __FILE__)
914914{
915915   m_token = global_alloc_clear(akiko_state);
916916}
trunk/src/mame/machine/mathbox.c
r23830r23831
3838const device_type MATHBOX = &device_creator<mathbox_device>;
3939
4040mathbox_device::mathbox_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
41   : device_t(mconfig, MATHBOX, "MATHBOX", tag, owner, clock)
41   : device_t(mconfig, MATHBOX, "MATHBOX", tag, owner, clock, "mathbox", __FILE__)
4242{
4343}
4444
trunk/src/mame/machine/kaneko_calc3.c
r23830r23831
2828const device_type KANEKO_CALC3 = &device_creator<kaneko_calc3_device>;
2929
3030kaneko_calc3_device::kaneko_calc3_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
31   : device_t(mconfig, KANEKO_CALC3, "kaneko_calc3_device", tag, owner, clock)
31   : device_t(mconfig, KANEKO_CALC3, "kaneko_calc3_device", tag, owner, clock, "kaneko_calc3", __FILE__)
3232{
3333   memset(&m_calc3, 0, sizeof m_calc3);
3434}
trunk/src/mame/machine/bfm_bd1.c
r23830r23831
100100};
101101
102102bfm_bd1_t::bfm_bd1_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
103   : device_t(mconfig, BFM_BD1, "BFM BD1 VFD controller", tag, owner, clock),
103   : device_t(mconfig, BFM_BD1, "BFM BD1 VFD controller", tag, owner, clock, "bfm_bd1", __FILE__),
104104   m_port_val(0)
105105{
106106}
trunk/src/mame/machine/atari_vg.c
r23830r23831
1616//-------------------------------------------------
1717
1818atari_vg_earom_device::atari_vg_earom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
19   : device_t(mconfig, ATARIVGEAROM, "ATARI VG EAROM", tag, owner, clock),
19   : device_t(mconfig, ATARIVGEAROM, "ATARI VG EAROM", tag, owner, clock, "atari_vg_earom", __FILE__),
2020      device_nvram_interface(mconfig, *this)
2121{
2222}
trunk/src/mame/machine/taitoio.c
r23830r23831
5555const device_type TC0220IOC = &device_creator<tc0220ioc_device>;
5656
5757tc0220ioc_device::tc0220ioc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
58   : device_t(mconfig, TC0220IOC, "Taito TC0220IOC", tag, owner, clock)
58   : device_t(mconfig, TC0220IOC, "Taito TC0220IOC", tag, owner, clock, "tc0220ioc", __FILE__)
5959{
6060}
6161
r23830r23831
200200const device_type TC0510NIO = &device_creator<tc0510nio_device>;
201201
202202tc0510nio_device::tc0510nio_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
203   : device_t(mconfig, TC0510NIO, "Taito TC0510NIO", tag, owner, clock)
203   : device_t(mconfig, TC0510NIO, "Taito TC0510NIO", tag, owner, clock, "tc0510nio", __FILE__)
204204{
205205}
206206
r23830r23831
346346const device_type TC0640FIO = &device_creator<tc0640fio_device>;
347347
348348tc0640fio_device::tc0640fio_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
349   : device_t(mconfig, TC0640FIO, "Taito TC0640FIO", tag, owner, clock)
349   : device_t(mconfig, TC0640FIO, "Taito TC0640FIO", tag, owner, clock, "tc0640fio", __FILE__)
350350{
351351}
352352
trunk/src/mame/machine/bfm_bda.c
r23830r23831
8282};
8383
8484bfm_bda_t::bfm_bda_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
85   : device_t(mconfig, BFM_BDA, "BFM BDA VFD controller", tag, owner, clock),
85   : device_t(mconfig, BFM_BDA, "BFM BDA VFD controller", tag, owner, clock, "bfm_bda", __FILE__),
8686   m_port_val(0)
8787{
8888}
trunk/src/mame/machine/cdi070.c
r23830r23831
5353//-------------------------------------------------
5454
5555cdi68070_device::cdi68070_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
56   : device_t(mconfig, MACHINE_CDI68070, "CDI68070", tag, owner, clock)
56   : device_t(mconfig, MACHINE_CDI68070, "CDI68070", tag, owner, clock, "cdi68070", __FILE__)
5757{
5858}
5959
trunk/src/mame/machine/mega32x.c
r23830r23831
214214const device_type SEGA_32X_NTSC = &device_creator<sega_32x_ntsc_device>;
215215const device_type SEGA_32X_PAL = &device_creator<sega_32x_pal_device>;
216216
217sega_32x_device::sega_32x_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock, device_type type)
218   : device_t(mconfig, type, "sega_32x_device", tag, owner, clock),
217sega_32x_device::sega_32x_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock, device_type type, const char *shortname, const char *source)
218   : device_t(mconfig, type, "sega_32x_device", tag, owner, clock, shortname, source),
219219      m_master_cpu(*this, "32x_master_sh2"),
220220      m_slave_cpu(*this, "32x_slave_sh2"),
221221      m_lch_pwm(*this, "lch_pwm"),
r23830r23831
224224}
225225
226226sega_32x_ntsc_device::sega_32x_ntsc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
227   : sega_32x_device(mconfig, tag, owner, clock, SEGA_32X_NTSC)
227   : sega_32x_device(mconfig, tag, owner, clock, SEGA_32X_NTSC, "sega_32x_ntsc", __FILE__)
228228{
229229}
230230
231231sega_32x_pal_device::sega_32x_pal_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
232   : sega_32x_device(mconfig, tag, owner, clock, SEGA_32X_PAL)
232   : sega_32x_device(mconfig, tag, owner, clock, SEGA_32X_PAL, "sega_32x_pal", __FILE__)
233233{
234234}
235235
trunk/src/mame/machine/mega32x.h
r23830r23831
2525class sega_32x_device : public device_t
2626{
2727public:
28   sega_32x_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock, device_type type);
28   sega_32x_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock, device_type type, const char *shortname, const char *source);
2929
3030   required_device<cpu_device> m_master_cpu;
3131   required_device<cpu_device> m_slave_cpu;
trunk/src/mame/machine/cdicdic.c
r23830r23831
11611161//-------------------------------------------------
11621162
11631163cdicdic_device::cdicdic_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
1164   : device_t(mconfig, MACHINE_CDICDIC, "CDICDIC", tag, owner, clock)
1164   : device_t(mconfig, MACHINE_CDICDIC, "CDICDIC", tag, owner, clock, "cdicdic", __FILE__)
11651165{
11661166}
11671167
trunk/src/mame/machine/cdislave.c
r23830r23831
417417//-------------------------------------------------
418418
419419cdislave_device::cdislave_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
420   : device_t(mconfig, MACHINE_CDISLAVE, "CDISLAVE", tag, owner, clock)
420   : device_t(mconfig, MACHINE_CDISLAVE, "CDISLAVE", tag, owner, clock, "cdislave", __FILE__)
421421{
422422}
423423
trunk/src/mame/machine/decocass_tape.c
r23830r23831
431431const device_type DECOCASS_TAPE = &device_creator<decocass_tape_device>;
432432
433433decocass_tape_device::decocass_tape_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
434   : device_t(mconfig, DECOCASS_TAPE, "DECO Cassette Tape", tag, owner, clock)
434   : device_t(mconfig, DECOCASS_TAPE, "DECO Cassette Tape", tag, owner, clock, "decocass_tape", __FILE__)
435435{
436436   m_token = global_alloc_clear(tape_state);
437437}
trunk/src/mame/machine/n64.c
r23830r23831
2121
2222
2323n64_periphs::n64_periphs(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
24   : device_t(mconfig, N64PERIPH, "N64 Periphal Chips", tag, owner, clock)
24   : device_t(mconfig, N64PERIPH, "N64 Periphal Chips", tag, owner, clock, "n64_periphs", __FILE__)
2525   , m_nvram_image(NULL)
2626{
2727}
trunk/src/mame/machine/naomig1.c
r23830r23831
2424ADDRESS_MAP_END
2525
2626naomi_g1_device::naomi_g1_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
27   : device_t(mconfig, type, name, tag, owner, clock),
27   : device_t(mconfig, type, name, tag, owner, clock, "naomi_g1", __FILE__),
2828      irq_cb(*this)
2929{
3030}
trunk/src/mame/machine/nmk112.c
r23830r23831
1818const device_type NMK112 = &device_creator<nmk112_device>;
1919
2020nmk112_device::nmk112_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
21   : device_t(mconfig, NMK112, "NMK 112", tag, owner, clock)
21   : device_t(mconfig, NMK112, "NMK 112", tag, owner, clock, "nmk112", __FILE__)
2222{
2323}
2424
trunk/src/mame/machine/gaelco3d.c
r23830r23831
498498const device_type GAELCO_SERIAL = &device_creator<gaelco_serial_device>;
499499
500500gaelco_serial_device::gaelco_serial_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
501   : device_t(mconfig, GAELCO_SERIAL, "gaelco_serial", tag, owner, clock)
501   : device_t(mconfig, GAELCO_SERIAL, "gaelco_serial", tag, owner, clock, "gaelco_serial", __FILE__)
502502{
503503   m_token = global_alloc_clear(gaelco_serial_state);
504504}
trunk/src/mame/machine/megacd.c
r23830r23831
2222const device_type SEGA_SEGACD_JAPAN = &device_creator<sega_segacd_japan_device>;
2323const device_type SEGA_SEGACD_EUROPE = &device_creator<sega_segacd_europe_device>;
2424
25sega_segacd_device::sega_segacd_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock, device_type type)
26   : device_t(mconfig, type, "sega_segacd_device", tag, owner, clock),
25sega_segacd_device::sega_segacd_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock, device_type type, const char *shortname, const char *source)
26   : device_t(mconfig, type, "sega_segacd_device", tag, owner, clock, shortname, source),
2727      m_scdcpu(*this, "segacd_68k")
2828{
2929}
3030
3131sega_segacd_us_device::sega_segacd_us_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
32   : sega_segacd_device(mconfig, tag, owner, clock, SEGA_SEGACD_US)
32   : sega_segacd_device(mconfig, tag, owner, clock, SEGA_SEGACD_US, "sega_segacd_us", __FILE__)
3333{
3434}
3535
3636sega_segacd_japan_device::sega_segacd_japan_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
37   : sega_segacd_device(mconfig, tag, owner, clock, SEGA_SEGACD_JAPAN)
37   : sega_segacd_device(mconfig, tag, owner, clock, SEGA_SEGACD_JAPAN, "sega_segacd_japan", __FILE__)
3838{
3939}
4040
4141sega_segacd_europe_device::sega_segacd_europe_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
42   : sega_segacd_device(mconfig, tag, owner, clock, SEGA_SEGACD_EUROPE)
42   : sega_segacd_device(mconfig, tag, owner, clock, SEGA_SEGACD_EUROPE, "sega_segacd_europe", __FILE__)
4343{
4444}
4545
trunk/src/mame/machine/megacd.h
r23830r23831
198198class sega_segacd_device : public device_t
199199{
200200public:
201   sega_segacd_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock, device_type type);
201   sega_segacd_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock, device_type type, const char *shortname, const char *source);
202202
203203   required_device<cpu_device> m_scdcpu;
204204   lc89510_temp_device *lc89510_temp;
trunk/src/mame/machine/ns11prot.c
r23830r23831
55
66#include "ns11prot.h"
77
8ns11_keycus_device::ns11_keycus_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) :
9   device_t(mconfig, type, name, tag, owner, clock)
8ns11_keycus_device::ns11_keycus_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) :
9   device_t(mconfig, type, name, tag, owner, clock, shortname, source)
1010{
1111}
1212
r23830r23831
2727/* tekken 2 */
2828
2929keycus_c406_device::keycus_c406_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
30   ns11_keycus_device(mconfig, KEYCUS_C406, "KEYCUS C406", tag, owner, clock)
30   ns11_keycus_device(mconfig, KEYCUS_C406, "KEYCUS C406", tag, owner, clock, "keycus_c406", __FILE__)
3131{
3232}
3333
r23830r23831
6767/* soul edge */
6868
6969keycus_c409_device::keycus_c409_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
70   ns11_keycus_device(mconfig, KEYCUS_C409, "KEYCUS C409", tag, owner, clock)
70   ns11_keycus_device(mconfig, KEYCUS_C409, "KEYCUS C409", tag, owner, clock, "keycus_c409", __FILE__)
7171{
7272}
7373
r23830r23831
107107/* dunk mania */
108108
109109keycus_c410_device::keycus_c410_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
110   ns11_keycus_device(mconfig, KEYCUS_C410, "KEYCUS C410", tag, owner, clock)
110   ns11_keycus_device(mconfig, KEYCUS_C410, "KEYCUS C410", tag, owner, clock, "keycus_c410", __FILE__)
111111{
112112}
113113
r23830r23831
161161/* prime goal ex */
162162
163163keycus_c411_device::keycus_c411_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
164   ns11_keycus_device(mconfig, KEYCUS_C411, "KEYCUS C411", tag, owner, clock)
164   ns11_keycus_device(mconfig, KEYCUS_C411, "KEYCUS C411", tag, owner, clock, "keycus_c411", __FILE__)
165165{
166166}
167167
r23830r23831
217217/* xevious 3d/g */
218218
219219keycus_c430_device::keycus_c430_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
220   ns11_keycus_device(mconfig, KEYCUS_C430, "KEYCUS C430", tag, owner, clock)
220   ns11_keycus_device(mconfig, KEYCUS_C430, "KEYCUS C430", tag, owner, clock, "keycus_c430", __FILE__)
221221{
222222}
223223
r23830r23831
276276/* dancing eyes */
277277
278278keycus_c431_device::keycus_c431_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
279   ns11_keycus_device(mconfig, KEYCUS_C431, "KEYCUS C431", tag, owner, clock)
279   ns11_keycus_device(mconfig, KEYCUS_C431, "KEYCUS C431", tag, owner, clock, "keycus_c431", __FILE__)
280280{
281281}
282282
r23830r23831
334334/* pocket racer */
335335
336336keycus_c432_device::keycus_c432_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
337   ns11_keycus_device(mconfig, KEYCUS_C432, "KEYCUS C432", tag, owner, clock)
337   ns11_keycus_device(mconfig, KEYCUS_C432, "KEYCUS C432", tag, owner, clock, "keycus_c432", __FILE__)
338338{
339339}
340340
r23830r23831
394394/* star sweep */
395395
396396keycus_c442_device::keycus_c442_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
397   ns11_keycus_device(mconfig, KEYCUS_C442, "KEYCUS C442", tag, owner, clock)
397   ns11_keycus_device(mconfig, KEYCUS_C442, "KEYCUS C442", tag, owner, clock, "keycus_c442", __FILE__)
398398{
399399}
400400
r23830r23831
442442/* kosodate quiz my angel 3 / point blank 2 */
443443
444444keycus_c443_device::keycus_c443_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
445   ns11_keycus_device(mconfig, KEYCUS_C443, "KEYCUS C443", tag, owner, clock)
445   ns11_keycus_device(mconfig, KEYCUS_C443, "KEYCUS C443", tag, owner, clock, "keycus_c443", __FILE__)
446446{
447447}
448448
trunk/src/mame/machine/ns11prot.h
r23830r23831
88class ns11_keycus_device : public device_t
99{
1010protected:
11   ns11_keycus_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock);
11   ns11_keycus_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock,const char *shortname, const char *source);
1212
1313   virtual void device_start();
1414   virtual void device_reset();
trunk/src/mame/machine/segaic16.c
r23830r23831
202202//-------------------------------------------------
203203
204204sega_315_5195_mapper_device::sega_315_5195_mapper_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
205   : device_t(mconfig, SEGA_315_5195_MEM_MAPPER, "Sega 315-5195 Memory Mapper", tag, owner, clock),
205   : device_t(mconfig, SEGA_315_5195_MEM_MAPPER, "Sega 315-5195 Memory Mapper", tag, owner, clock, "sega_315_5195", __FILE__),
206206      m_cputag(NULL),
207207      m_cpu(NULL),
208208      m_space(NULL),
r23830r23831
742742//-------------------------------------------------
743743
744744sega_315_5248_multiplier_device::sega_315_5248_multiplier_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
745   : device_t(mconfig, SEGA_315_5248_MULTIPLIER, "Sega 315-5248 Multiplier", tag, owner, clock)
745   : device_t(mconfig, SEGA_315_5248_MULTIPLIER, "Sega 315-5248 Multiplier", tag, owner, clock, "sega_315_5248", __FILE__)
746746{
747747}
748748
r23830r23831
810810//-------------------------------------------------
811811
812812sega_315_5249_divider_device::sega_315_5249_divider_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
813   : device_t(mconfig, SEGA_315_5248_MULTIPLIER, "Sega 315-5249 Divider", tag, owner, clock)
813   : device_t(mconfig, SEGA_315_5248_MULTIPLIER, "Sega 315-5249 Divider", tag, owner, clock, "sega_315_5249", __FILE__)
814814{
815815}
816816
r23830r23831
955955//-------------------------------------------------
956956
957957sega_315_5250_compare_timer_device::sega_315_5250_compare_timer_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
958   : device_t(mconfig, SEGA_315_5250_COMPARE_TIMER, "Sega 315-5250 Compare/Timer", tag, owner, clock)
958   : device_t(mconfig, SEGA_315_5250_COMPARE_TIMER, "Sega 315-5250 Compare/Timer", tag, owner, clock, "sega_315_5250", __FILE__)
959959{
960960}
961961
trunk/src/mame/machine/buggychl.c
r23830r23831
237237const device_type BUGGYCHL_MCU = &device_creator<buggychl_mcu_device>;
238238
239239buggychl_mcu_device::buggychl_mcu_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
240   : device_t(mconfig, BUGGYCHL_MCU, "BuggyChl MCU", tag, owner, clock)
240   : device_t(mconfig, BUGGYCHL_MCU, "BuggyChl MCU", tag, owner, clock, "buggychl_mcu", __FILE__)
241241{
242242   m_token = global_alloc_clear(buggychl_mcu_state);
243243}
trunk/src/mame/machine/kaneko_hit.c
r23830r23831
2929const device_type KANEKO_HIT = &device_creator<kaneko_hit_device>;
3030
3131kaneko_hit_device::kaneko_hit_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
32   : device_t(mconfig, KANEKO_HIT, "kaneko_hit_device", tag, owner, clock)
32   : device_t(mconfig, KANEKO_HIT, "kaneko_hit_device", tag, owner, clock, "kaneko_hit", __FILE__)
3333{
3434   m_hittype = -1;
3535   memset(&m_hit, 0, sizeof m_hit);
trunk/src/mame/machine/maple-dc.c
r23830r23831
2626}
2727
2828maple_dc_device::maple_dc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
29   : device_t(mconfig, MAPLE_DC, "MAPLE_DC", tag, owner, clock)
29   : device_t(mconfig, MAPLE_DC, "MAPLE_DC", tag, owner, clock, "maple_dc", __FILE__)
3030{
3131   // Do not move that in device_start or there will be a race
3232   // condition with the maple devices call to register_port.
trunk/src/mame/machine/ticket.c
r23830r23831
6868//-------------------------------------------------
6969
7070ticket_dispenser_device::ticket_dispenser_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
71   : device_t(mconfig, TICKET_DISPENSER, "Ticket Dispenser", tag, owner, clock),
71   : device_t(mconfig, TICKET_DISPENSER, "Ticket Dispenser", tag, owner, clock, "ticket_dispenser", __FILE__),
7272      m_motor_sense(TICKET_MOTOR_ACTIVE_LOW),
7373      m_status_sense(TICKET_STATUS_ACTIVE_LOW),
7474      m_period(attotime::from_msec(100)),
trunk/src/mame/machine/kaneko_toybox.c
r23830r23831
5252const device_type KANEKO_TOYBOX = &device_creator<kaneko_toybox_device>;
5353
5454kaneko_toybox_device::kaneko_toybox_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
55   : device_t(mconfig, KANEKO_TOYBOX, "kaneko_toybox_device", tag, owner, clock)
55   : device_t(mconfig, KANEKO_TOYBOX, "kaneko_toybox_device", tag, owner, clock, "kaneko_toybox", __FILE__)
5656{
5757   m_tabletype = TABLE_NORMAL;
5858   m_gametype = GAME_NORMAL;
trunk/src/mame/includes/tx1.h
r23830r23831
230230{
231231public:
232232   tx1_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
233   tx1_sound_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock);
233   tx1_sound_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source);
234234   ~tx1_sound_device() { global_free(m_token); }
235235
236236   // access to legacy token
trunk/src/mame/includes/leland.h
r23830r23831
203203{
204204public:
205205   leland_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
206   leland_sound_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock);
206   leland_sound_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source);
207207   ~leland_sound_device() { global_free(m_token); }
208208
209209   // access to legacy token
r23830r23831
226226{
227227public:
228228   leland_80186_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
229   leland_80186_sound_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock);
229   leland_80186_sound_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source);
230230protected:
231231   // device-level overrides
232232   virtual void device_config_complete();
trunk/src/mame/video/taitoic.c
r23830r23831
549549const device_type PC080SN = &device_creator<pc080sn_device>;
550550
551551pc080sn_device::pc080sn_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
552   : device_t(mconfig, PC080SN, "Taito PC080SN", tag, owner, clock)
552   : device_t(mconfig, PC080SN, "Taito PC080SN", tag, owner, clock, "pc080sn", __FILE__)
553553{
554554}
555555
r23830r23831
10051005const device_type PC090OJ = &device_creator<pc090oj_device>;
10061006
10071007pc090oj_device::pc090oj_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
1008   : device_t(mconfig, PC090OJ, "Taito PC090OJ", tag, owner, clock)
1008   : device_t(mconfig, PC090OJ, "Taito PC090OJ", tag, owner, clock, "pc090oj", __FILE__)
10091009{
10101010}
10111011
r23830r23831
11761176const device_type TC0080VCO = &device_creator<tc0080vco_device>;
11771177
11781178tc0080vco_device::tc0080vco_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
1179   : device_t(mconfig, TC0080VCO, "Taito TC0080VCO", tag, owner, clock)
1179   : device_t(mconfig, TC0080VCO, "Taito TC0080VCO", tag, owner, clock, "tc0080vco", __FILE__)
11801180{
11811181}
11821182
r23830r23831
18101810const device_type TC0100SCN = &device_creator<tc0100scn_device>;
18111811
18121812tc0100scn_device::tc0100scn_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
1813   : device_t(mconfig, TC0100SCN, "Taito TC0100SCN", tag, owner, clock)
1813   : device_t(mconfig, TC0100SCN, "Taito TC0100SCN", tag, owner, clock, "tc0100scn", __FILE__)
18141814{
18151815}
18161816
r23830r23831
25222522const device_type TC0280GRD = &device_creator<tc0280grd_device>;
25232523
25242524tc0280grd_device::tc0280grd_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
2525   : device_t(mconfig, TC0280GRD, "Taito TC0280GRD & TC0430GRW", tag, owner, clock)
2525   : device_t(mconfig, TC0280GRD, "Taito TC0280GRD & TC0430GRW", tag, owner, clock, "tc0280grd", __FILE__)
25262526{
25272527   m_token = global_alloc_clear(tc0280grd_state);
25282528}
r23830r23831
26432643const device_type TC0360PRI = &device_creator<tc0360pri_device>;
26442644
26452645tc0360pri_device::tc0360pri_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
2646   : device_t(mconfig, TC0360PRI, "Taito TC0360PRI", tag, owner, clock)
2646   : device_t(mconfig, TC0360PRI, "Taito TC0360PRI", tag, owner, clock, "tc0360pri", __FILE__)
26472647{
26482648   m_token = global_alloc_clear(tc0360pri_state);
26492649}
r23830r23831
35273527const device_type TC0480SCP = &device_creator<tc0480scp_device>;
35283528
35293529tc0480scp_device::tc0480scp_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
3530   : device_t(mconfig, TC0480SCP, "Taito TC0480SCP", tag, owner, clock)
3530   : device_t(mconfig, TC0480SCP, "Taito TC0480SCP", tag, owner, clock, "tc0480scp", __FILE__)
35313531{
35323532   m_token = global_alloc_clear(tc0480scp_state);
35333533}
r23830r23831
44714471const device_type TC0150ROD = &device_creator<tc0150rod_device>;
44724472
44734473tc0150rod_device::tc0150rod_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
4474   : device_t(mconfig, TC0150ROD, "Taito TC0150ROD", tag, owner, clock)
4474   : device_t(mconfig, TC0150ROD, "Taito TC0150ROD", tag, owner, clock, "tc0150rod", __FILE__)
44754475{
44764476   m_token = global_alloc_clear(tc0150rod_state);
44774477}
r23830r23831
46984698const device_type TC0110PCR = &device_creator<tc0110pcr_device>;
46994699
47004700tc0110pcr_device::tc0110pcr_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
4701   : device_t(mconfig, TC0110PCR, "Taito TC0110PCR", tag, owner, clock)
4701   : device_t(mconfig, TC0110PCR, "Taito TC0110PCR", tag, owner, clock, "tc0110pcr", __FILE__)
47024702{
47034703   m_token = global_alloc_clear(tc0110pcr_state);
47044704}
r23830r23831
50435043const device_type TC0180VCU = &device_creator<tc0180vcu_device>;
50445044
50455045tc0180vcu_device::tc0180vcu_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
5046   : device_t(mconfig, TC0180VCU, "Taito TC0180VCU", tag, owner, clock)
5046   : device_t(mconfig, TC0180VCU, "Taito TC0180VCU", tag, owner, clock, "tc0180vcu", __FILE__)
50475047{
50485048   m_token = global_alloc_clear(tc0180vcu_state);
50495049}
trunk/src/mame/video/decospr.c
r23830r23831
160160const device_type DECO_SPRITE = &device_creator<decospr_device>;
161161
162162decospr_device::decospr_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
163   : device_t(mconfig, DECO_SPRITE, "decospr_device", tag, owner, clock),
163   : device_t(mconfig, DECO_SPRITE, "decospr_device", tag, owner, clock, "decospr", __FILE__),
164164      m_gfxregion(0),
165165      m_pricallback(NULL),
166166      m_colcallback(decospr_default_colour_callback),
trunk/src/mame/video/kaneko_grap2.c
r23830r23831
1515const device_type KANEKO_GRAP2 = &device_creator<kaneko_grap2_device>;
1616
1717kaneko_grap2_device::kaneko_grap2_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
18   : device_t(mconfig, KANEKO_GRAP2, "kaneko_grap2_device", tag, owner, clock)
18   : device_t(mconfig, KANEKO_GRAP2, "kaneko_grap2_device", tag, owner, clock, "kaneko_grap2", __FILE__)
1919{
2020   m_chipnum = 0;
2121}
trunk/src/mame/video/deckarn.c
r23830r23831
1313const device_type DECO_KARNOVSPRITES = &device_creator<deco_karnovsprites_device>;
1414
1515deco_karnovsprites_device::deco_karnovsprites_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
16   : device_t(mconfig, DECO_KARNOVSPRITES, "karnovsprites_device", tag, owner, clock),
16   : device_t(mconfig, DECO_KARNOVSPRITES, "karnovsprites_device", tag, owner, clock, "deco_karnovsprites", __FILE__),
1717      m_gfxregion(0)
1818{
1919}
trunk/src/mame/video/powervr2.c
r23830r23831
29822982}
29832983
29842984powervr2_device::powervr2_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
2985   : device_t(mconfig, POWERVR2, "PowerVR 2", tag, owner, clock),
2985   : device_t(mconfig, POWERVR2, "PowerVR 2", tag, owner, clock, "powervr2", __FILE__),
29862986      irq_cb(*this)
29872987{
29882988}
trunk/src/mame/video/decbac06.c
r23830r23831
7474const device_type DECO_BAC06 = &device_creator<deco_bac06_device>;
7575
7676deco_bac06_device::deco_bac06_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
77   : device_t(mconfig, DECO_BAC06, "decbac06_device", tag, owner, clock),
77   : device_t(mconfig, DECO_BAC06, "decbac06_device", tag, owner, clock, "deco_bac06", __FILE__),
7878      m_gfxregion8x8(0),
7979      m_gfxregion16x16(0),
8080      m_wide(0)
trunk/src/mame/video/seta001.c
r23830r23831
3030const device_type SETA001_SPRITE = &device_creator<seta001_device>;
3131
3232seta001_device::seta001_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
33   : device_t(mconfig, SETA001_SPRITE, "seta001_device", tag, owner, clock)
33   : device_t(mconfig, SETA001_SPRITE, "seta001_device", tag, owner, clock, "seta001", __FILE__)
3434{
3535}
3636
trunk/src/mame/video/vsystem_spr.c
r23830r23831
7070const device_type VSYSTEM_SPR = &device_creator<vsystem_spr_device>;
7171
7272vsystem_spr_device::vsystem_spr_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
73   : device_t(mconfig, VSYSTEM_SPR, "vsystem_spr_device", tag, owner, clock)
73   : device_t(mconfig, VSYSTEM_SPR, "vsystem_spr_device", tag, owner, clock, "vsystem_spr", __FILE__)
7474{
7575   m_transpen = 15;
7676   m_pal_base = 0;
trunk/src/mame/video/vsystem_spr2.c
r23830r23831
2828const device_type VSYSTEM_SPR2 = &device_creator<vsystem_spr2_device>;
2929
3030vsystem_spr2_device::vsystem_spr2_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
31   : device_t(mconfig, VSYSTEM_SPR2, "vsystem_spr2_device", tag, owner, clock)
31   : device_t(mconfig, VSYSTEM_SPR2, "vsystem_spr2_device", tag, owner, clock, "vsystem_spr2", __FILE__)
3232{
3333   m_newtilecb =  vsystem_tile2_indirection_delegate(FUNC(vsystem_spr2_device::tile_callback_noindirect), this);
3434   m_pritype = 0; // hack until we have better handling
trunk/src/mame/video/gp9001.c
r23830r23831
203203const device_type GP9001_VDP = &device_creator<gp9001vdp_device>;
204204
205205gp9001vdp_device::gp9001vdp_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
206   : device_t(mconfig, GP9001_VDP, "GP9001_VDP", tag, owner, clock),
206   : device_t(mconfig, GP9001_VDP, "GP9001_VDP", tag, owner, clock, "gp9001vdp", __FILE__),
207207      device_memory_interface(mconfig, *this),
208208      m_space_config("gp9001vdp", ENDIANNESS_BIG, 16,14, 0, NULL, *ADDRESS_MAP_NAME(gp9001vdp_map)),
209209      m_gfxregion(0)
trunk/src/mame/video/mcd212.c
r23830r23831
15091509//-------------------------------------------------
15101510
15111511mcd212_device::mcd212_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
1512   : device_t(mconfig, MACHINE_MCD212, "MCD212", tag, owner, clock)
1512   : device_t(mconfig, MACHINE_MCD212, "MCD212", tag, owner, clock, "mcd212", __FILE__)
15131513{
15141514}
15151515
trunk/src/mame/video/segaic24.c
r23830r23831
2222
2323
2424segas24_tile::segas24_tile(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
25   : device_t(mconfig, S24TILE, "S24TILE", tag, owner, clock)
25   : device_t(mconfig, S24TILE, "S24TILE", tag, owner, clock, "segas24_tile", __FILE__)
2626{
2727}
2828
r23830r23831
577577
578578
579579segas24_sprite::segas24_sprite(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
580   : device_t(mconfig, S24SPRITE, "S24SPRITE", tag, owner, clock)
580   : device_t(mconfig, S24SPRITE, "S24SPRITE", tag, owner, clock, "segas24_sprite", __FILE__)
581581{
582582}
583583
r23830r23831
822822
823823
824824segas24_mixer::segas24_mixer(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
825   : device_t(mconfig, S24MIXER, "S24MIXER", tag, owner, clock)
825   : device_t(mconfig, S24MIXER, "S24MIXER", tag, owner, clock, "segas24_mixer", __FILE__)
826826{
827827}
828828
trunk/src/mame/video/st0020.c
r23830r23831
1313const device_type ST0020_SPRITES = &device_creator<st0020_device>;
1414
1515st0020_device::st0020_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
16   : device_t(mconfig, ST0020_SPRITES, "st0020_device", tag, owner, clock)
16   : device_t(mconfig, ST0020_SPRITES, "st0020_device", tag, owner, clock, "st0020", __FILE__)
1717{
1818   m_is_st0032 = 0;
1919   m_is_jclub2 = 0;
trunk/src/mame/video/atarirle.c
r23830r23831
370370const device_type ATARIRLE = &device_creator<atarirle_device>;
371371
372372atarirle_device::atarirle_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
373   : device_t(mconfig, ATARIRLE, "Atari RLE", tag, owner, clock)
373   : device_t(mconfig, ATARIRLE, "Atari RLE", tag, owner, clock, "atari_rle", __FILE__)
374374{
375375   m_token = global_alloc_clear(atarirle_data);
376376}
trunk/src/mame/video/tia.c
r23830r23831
170170//-------------------------------------------------
171171
172172tia_video_device::tia_video_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
173   : device_t(mconfig, TIA_VIDEO, "TIA Video", tag, owner, clock)
173   : device_t(mconfig, TIA_VIDEO, "TIA Video", tag, owner, clock, "tia_video", __FILE__)
174174{
175175}
176176
trunk/src/mame/video/ppu2c0x.c
r23830r23831
126126   m_screen_tag = config->screen_tag;
127127}
128128
129ppu2c0x_device::ppu2c0x_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
130            : device_t(mconfig, type, name, tag, owner, clock),
129ppu2c0x_device::ppu2c0x_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source)
130            : device_t(mconfig, type, name, tag, owner, clock, shortname, source),
131131               device_memory_interface(mconfig, *this),
132132               m_space_config("videoram", ENDIANNESS_LITTLE, 8, 17, 0, NULL, *ADDRESS_MAP_NAME(ppu2c0x)),
133133               m_scanline(0),  // reset the scanline count
r23830r23831
159159
160160
161161// NTSC NES
162ppu2c02_device::ppu2c02_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : ppu2c0x_device(mconfig, PPU_2C02, "2C02 PPU", tag, owner, clock)
162ppu2c02_device::ppu2c02_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : ppu2c0x_device(mconfig, PPU_2C02, "2C02 PPU", tag, owner, clock, "ppu2c02", __FILE__)
163163{
164164}
165165
166166// Playchoice 10
167ppu2c03b_device::ppu2c03b_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : ppu2c0x_device(mconfig, PPU_2C03B, "2C03B PPU PPU", tag, owner, clock)
167ppu2c03b_device::ppu2c03b_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : ppu2c0x_device(mconfig, PPU_2C03B, "2C03B PPU PPU", tag, owner, clock, "ppu2c03b", __FILE__)
168168{
169169}
170170
171171// Vs. Unisystem
172ppu2c04_device::ppu2c04_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : ppu2c0x_device(mconfig, PPU_2C04, "2C04 PPU", tag, owner, clock)
172ppu2c04_device::ppu2c04_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : ppu2c0x_device(mconfig, PPU_2C04, "2C04 PPU", tag, owner, clock, "ppu2c04", __FILE__)
173173{
174174}
175175
176176// PAL NES
177ppu2c07_device::ppu2c07_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : ppu2c0x_device(mconfig, PPU_2C07, "2C07 PPU", tag, owner, clock)
177ppu2c07_device::ppu2c07_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : ppu2c0x_device(mconfig, PPU_2C07, "2C07 PPU", tag, owner, clock, "ppu2c07", __FILE__)
178178{
179179   m_scanlines_per_frame = PPU_PAL_SCANLINES_PER_FRAME;
180180}
181181
182182// The PPU_2C05 variants have different protection value, set at DEVICE_START, but otherwise are all the same...
183183// Vs. Unisystem (Ninja Jajamaru Kun)
184ppu2c05_01_device::ppu2c05_01_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : ppu2c0x_device(mconfig, PPU_2C05_01, "2C05 PPU", tag, owner, clock)
184ppu2c05_01_device::ppu2c05_01_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : ppu2c0x_device(mconfig, PPU_2C05_01, "2C05 PPU", tag, owner, clock, "ppu2c05_01", __FILE__)
185185{
186186   m_security_value = 0x1b;    // game (jajamaru) doesn't seem to ever actually check it
187187}
188188// Vs. Unisystem (Mighty Bomb Jack)
189ppu2c05_02_device::ppu2c05_02_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : ppu2c0x_device(mconfig, PPU_2C05_02, "2C05 PPU", tag, owner, clock)
189ppu2c05_02_device::ppu2c05_02_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : ppu2c0x_device(mconfig, PPU_2C05_02, "2C05 PPU", tag, owner, clock, "ppu2c05_02", __FILE__)
190190{
191191   m_security_value = 0x3d;
192192}
193193// Vs. Unisystem (Gumshoe)
194ppu2c05_03_device::ppu2c05_03_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : ppu2c0x_device(mconfig, PPU_2C05_03, "2C05 PPU", tag, owner, clock)
194ppu2c05_03_device::ppu2c05_03_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : ppu2c0x_device(mconfig, PPU_2C05_03, "2C05 PPU", tag, owner, clock, "ppu2c05_03", __FILE__)
195195{
196196   m_security_value = 0x1c;
197197}
198198// Vs. Unisystem (Top Gun)
199ppu2c05_04_device::ppu2c05_04_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : ppu2c0x_device(mconfig, PPU_2C05_04, "2C05 PPU", tag, owner, clock)
199ppu2c05_04_device::ppu2c05_04_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : ppu2c0x_device(mconfig, PPU_2C05_04, "2C05 PPU", tag, owner, clock, "ppu2c05_04", __FILE__)
200200{
201201   m_security_value = 0x1b;
202202}
trunk/src/mame/video/ppu2c0x.h
r23830r23831
133133{
134134public:
135135   // construction/destruction
136   ppu2c0x_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock);
136   ppu2c0x_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source);
137137
138138   DECLARE_READ8_MEMBER( read );
139139   DECLARE_WRITE8_MEMBER( write );
trunk/src/mame/video/deco16ic.c
r23830r23831
899899const device_type DECO16IC = &device_creator<deco16ic_device>;
900900
901901deco16ic_device::deco16ic_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
902   : device_t(mconfig, DECO16IC, "Data East IC 55 / 56 / 74 / 141", tag, owner, clock)
902   : device_t(mconfig, DECO16IC, "Data East IC 55 / 56 / 74 / 141", tag, owner, clock, "deco16ic", __FILE__)
903903{
904904   m_token = global_alloc_clear(deco16ic_state);
905905}
trunk/src/mame/video/decocomn.c
r23830r23831
142142const device_type DECOCOMN = &device_creator<decocomn_device>;
143143
144144decocomn_device::decocomn_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
145   : device_t(mconfig, DECOCOMN, "Data East Common Video Functions", tag, owner, clock)
145   : device_t(mconfig, DECOCOMN, "Data East Common Video Functions", tag, owner, clock, "decocomn", __FILE__)
146146{
147147   m_token = global_alloc_clear(decocomn_state);
148148}
trunk/src/mame/video/vrender0.c
r23830r23831
602602const device_type VIDEO_VRENDER0 = &device_creator<vr0video_device>;
603603
604604vr0video_device::vr0video_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
605   : device_t(mconfig, VIDEO_VRENDER0, "VRender0", tag, owner, clock)
605   : device_t(mconfig, VIDEO_VRENDER0, "VRender0", tag, owner, clock, "vr0video", __FILE__)
606606{
607607   m_token = global_alloc_clear(vr0video_state);
608608}
trunk/src/mame/video/kaneko_spr.c
r23830r23831
3030const device_type KANEKO_KC002_SPRITE = &device_creator<kaneko_kc002_sprite_device>;
3131
3232kaneko16_sprite_device::kaneko16_sprite_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock, device_type type)
33   : device_t(mconfig, type, "kaneko16_sprite_device", tag, owner, clock)
33   : device_t(mconfig, type, "kaneko16_sprite_device", tag, owner, clock, "kaneko16_sprite", __FILE__)
3434{
3535   m_keep_sprites = 0; // default disabled for games not using it
3636
trunk/src/mame/video/sknsspr.c
r23830r23831
2020
2121
2222sknsspr_device::sknsspr_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
23   : device_t(mconfig, SKNS_SPRITE, "sknsspr_device", tag, owner, clock)
23   : device_t(mconfig, SKNS_SPRITE, "sknsspr_device", tag, owner, clock, "sknsspr", __FILE__)
2424{
2525}
2626
trunk/src/mame/video/scn2674.c
r23830r23831
3434
3535
3636scn2674_device::scn2674_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
37   : device_t(mconfig, SCN2674_VIDEO, "scn2674_device", tag, owner, clock),
37   : device_t(mconfig, SCN2674_VIDEO, "scn2674_device", tag, owner, clock, "scn2674_device", __FILE__),
3838      m_interrupt_callback(*this)
3939{
4040}
trunk/src/mame/video/decmxc06.c
r23830r23831
4848const device_type DECO_MXC06 = &device_creator<deco_mxc06_device>;
4949
5050deco_mxc06_device::deco_mxc06_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
51   : device_t(mconfig, DECO_MXC06, "decmxc06_device", tag, owner, clock),
51   : device_t(mconfig, DECO_MXC06, "decmxc06_device", tag, owner, clock, "deco_mxc06", __FILE__),
5252      m_gfxregion(0)
5353{
5454}
trunk/src/mame/video/kaneko_tmap.c
r23830r23831
9595const device_type KANEKO_TMAP = &device_creator<kaneko_view2_tilemap_device>;
9696
9797kaneko_view2_tilemap_device::kaneko_view2_tilemap_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
98   : device_t(mconfig, KANEKO_TMAP, "kaneko_view2_tilemap_device", tag, owner, clock)
98   : device_t(mconfig, KANEKO_TMAP, "kaneko_view2_tilemap_device", tag, owner, clock, "kaneko_view2_tilemap", __FILE__)
9999{
100100   m_invert_flip = 0;
101101}
trunk/src/mame/video/kan_pand.c
r23830r23831
5353const device_type KANEKO_PANDORA = &device_creator<kaneko_pandora_device>;
5454
5555kaneko_pandora_device::kaneko_pandora_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
56   : device_t(mconfig, KANEKO_PANDORA, "Kaneko Pandora - PX79C480FP-3", tag, owner, clock)
56   : device_t(mconfig, KANEKO_PANDORA, "Kaneko Pandora - PX79C480FP-3", tag, owner, clock, "kaneko_pandora", __FILE__)
5757{
5858}
5959
trunk/src/mame/video/konicdev.c
r23830r23831
15781578const device_type K007121 = &device_creator<k007121_device>;
15791579
15801580k007121_device::k007121_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
1581   : device_t(mconfig, K007121, "Konami 007121", tag, owner, clock)
1581   : device_t(mconfig, K007121, "Konami 007121", tag, owner, clock, "k007121", __FILE__)
15821582{
15831583   m_token = global_alloc_clear(k007121_state);
15841584}
r23830r23831
18511851const device_type K007342 = &device_creator<k007342_device>;
18521852
18531853k007342_device::k007342_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
1854   : device_t(mconfig, K007342, "Konami 007342", tag, owner, clock)
1854   : device_t(mconfig, K007342, "Konami 007342", tag, owner, clock, "k007342", __FILE__)
18551855{
18561856   m_token = global_alloc_clear(k007342_state);
18571857}
r23830r23831
21842184const device_type K007420 = &device_creator<k007420_device>;
21852185
21862186k007420_device::k007420_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
2187   : device_t(mconfig, K007420, "Konami 007420", tag, owner, clock)
2187   : device_t(mconfig, K007420, "Konami 007420", tag, owner, clock, "k007420", __FILE__)
21882188{
21892189   m_token = global_alloc_clear(k007420_state);
21902190}
r23830r23831
27552755const device_type K052109 = &device_creator<k052109_device>;
27562756
27572757k052109_device::k052109_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
2758   : device_t(mconfig, K052109, "Konami 052109", tag, owner, clock)
2758   : device_t(mconfig, K052109, "Konami 052109", tag, owner, clock, "k052109", __FILE__)
27592759{
27602760   m_token = global_alloc_clear(k052109_state);
27612761}
r23830r23831
34253425const device_type K051960 = &device_creator<k051960_device>;
34263426
34273427k051960_device::k051960_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
3428   : device_t(mconfig, K051960, "Konami 051960", tag, owner, clock)
3428   : device_t(mconfig, K051960, "Konami 051960", tag, owner, clock, "k051960", __FILE__)
34293429{
34303430   m_token = global_alloc_clear(k051960_state);
34313431}
r23830r23831
42564256const device_type K053244 = &device_creator<k05324x_device>;
42574257
42584258k05324x_device::k05324x_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
4259   : device_t(mconfig, K053244, "Konami 053244 & 053245", tag, owner, clock)
4259   : device_t(mconfig, K053244, "Konami 053244 & 053245", tag, owner, clock, "k05324x", __FILE__)
42604260{
42614261   m_token = global_alloc_clear(k05324x_state);
42624262}
r23830r23831
52685268const device_type K055673 = &device_creator<k055673_device>;
52695269
52705270k055673_device::k055673_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
5271   : device_t(mconfig, K055673, "Konami 055673", tag, owner, clock)
5271   : device_t(mconfig, K055673, "Konami 055673", tag, owner, clock, "k055673", __FILE__)
52725272{
52735273   m_token = global_alloc_clear(k053247_state);
52745274}
r23830r23831
53045304const device_type K053246 = &device_creator<k053247_device>;
53055305
53065306k053247_device::k053247_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
5307   : device_t(mconfig, K053246, "Konami 053246 & 053247", tag, owner, clock)
5307   : device_t(mconfig, K053246, "Konami 053246 & 053247", tag, owner, clock, "k053247", __FILE__)
53085308{
53095309   m_token = global_alloc_clear(k053247_state);
53105310}
r23830r23831
55375537const device_type K051316 = &device_creator<k051316_device>;
55385538
55395539k051316_device::k051316_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
5540   : device_t(mconfig, K051316, "Konami 051316", tag, owner, clock)
5540   : device_t(mconfig, K051316, "Konami 051316", tag, owner, clock, "k051316", __FILE__)
55415541{
55425542   m_token = global_alloc_clear(k051316_state);
55435543}
r23830r23831
59105910const device_type K053936 = &device_creator<k053936_device>;
59115911
59125912k053936_device::k053936_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
5913   : device_t(mconfig, K053936, "Konami 053936", tag, owner, clock)
5913   : device_t(mconfig, K053936, "Konami 053936", tag, owner, clock, "k053936", __FILE__)
59145914{
59155915   m_token = global_alloc_clear(k053936_state);
59165916}
r23830r23831
61016101const device_type K053251 = &device_creator<k053251_device>;
61026102
61036103k053251_device::k053251_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
6104   : device_t(mconfig, K053251, "Konami 053251", tag, owner, clock)
6104   : device_t(mconfig, K053251, "Konami 053251", tag, owner, clock, "k053251", __FILE__)
61056105{
61066106   m_token = global_alloc_clear(k053251_state);
61076107}
r23830r23831
62466246const device_type K054000 = &device_creator<k054000_device>;
62476247
62486248k054000_device::k054000_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
6249   : device_t(mconfig, K054000, "Konami 054000", tag, owner, clock)
6249   : device_t(mconfig, K054000, "Konami 054000", tag, owner, clock, "k054000", __FILE__)
62506250{
62516251   m_token = global_alloc_clear(k054000_state);
62526252}
r23830r23831
64346434const device_type K051733 = &device_creator<k051733_device>;
64356435
64366436k051733_device::k051733_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
6437   : device_t(mconfig, K051733, "Konami 051733", tag, owner, clock)
6437   : device_t(mconfig, K051733, "Konami 051733", tag, owner, clock, "k051733", __FILE__)
64386438{
64396439   m_token = global_alloc_clear(k051733_state);
64406440}
r23830r23831
81818181const device_type K056832 = &device_creator<k056832_device>;
81828182
81838183k056832_device::k056832_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
8184   : device_t(mconfig, K056832, "Konami 056832", tag, owner, clock)
8184   : device_t(mconfig, K056832, "Konami 056832", tag, owner, clock, "k056832", __FILE__)
81858185{
81868186   m_token = global_alloc_clear(k056832_state);
81878187}
r23830r23831
85718571const device_type K055555 = &device_creator<k055555_device>;
85728572
85738573k055555_device::k055555_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
8574   : device_t(mconfig, K055555, "Konami 055555", tag, owner, clock)
8574   : device_t(mconfig, K055555, "Konami 055555", tag, owner, clock, "k055555", __FILE__)
85758575{
85768576   m_token = global_alloc_clear(k055555_state);
85778577}
r23830r23831
89098909const device_type K054338 = &device_creator<k054338_device>;
89108910
89118911k054338_device::k054338_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
8912   : device_t(mconfig, K054338, "Konami 054338", tag, owner, clock)
8912   : device_t(mconfig, K054338, "Konami 054338", tag, owner, clock, "k054338", __FILE__)
89138913{
89148914   m_token = global_alloc_clear(k054338_state);
89158915}
r23830r23831
91209120const device_type K001006 = &device_creator<k001006_device>;
91219121
91229122k001006_device::k001006_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
9123   : device_t(mconfig, K001006, "Konami 001006", tag, owner, clock)
9123   : device_t(mconfig, K001006, "Konami 001006", tag, owner, clock, "k001006", __FILE__)
91249124{
91259125   m_token = global_alloc_clear(k001006_state);
91269126}
r23830r23831
1008210082const device_type K001005 = &device_creator<k001005_device>;
1008310083
1008410084k001005_device::k001005_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
10085   : device_t(mconfig, K001005, "Konami 001005", tag, owner, clock)
10085   : device_t(mconfig, K001005, "Konami 001005", tag, owner, clock, "k001005", __FILE__)
1008610086{
1008710087   m_token = global_alloc_clear(k001005_state);
1008810088}
r23830r23831
1051910519const device_type K001604 = &device_creator<k001604_device>;
1052010520
1052110521k001604_device::k001604_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
10522   : device_t(mconfig, K001604, "Konami 001604", tag, owner, clock)
10522   : device_t(mconfig, K001604, "Konami 001604", tag, owner, clock, "k001604", __FILE__)
1052310523{
1052410524   m_token = global_alloc_clear(k001604_state);
1052510525}
r23830r23831
1080910809const device_type K037122 = &device_creator<k037122_device>;
1081010810
1081110811k037122_device::k037122_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
10812   : device_t(mconfig, K037122, "Konami 0371222", tag, owner, clock)
10812   : device_t(mconfig, K037122, "Konami 0371222", tag, owner, clock, "k037122", __FILE__)
1081310813{
1081410814   m_token = global_alloc_clear(k037122_state);
1081510815}

Previous 199869 Revisions Next


© 1997-2024 The MAME Team