diff --git a/src/emu/cpu/psx/dma.c b/src/emu/cpu/psx/dma.c index 035405eacd0..397a08d66cf 100644 --- a/src/emu/cpu/psx/dma.c +++ b/src/emu/cpu/psx/dma.c @@ -26,7 +26,7 @@ INLINE void ATTR_PRINTF(3,4) verboselog( running_machine& machine, int n_level, const device_type PSX_DMA = &device_creator; psxdma_device::psxdma_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : - device_t(mconfig, PSX_DMA, "PSX DMA", tag, owner, clock), + device_t(mconfig, PSX_DMA, "PSX DMA", tag, owner, clock, "psxdma", __FILE__), m_irq_handler(*this) { } diff --git a/src/emu/cpu/psx/irq.c b/src/emu/cpu/psx/irq.c index 368ff3db86a..90dcd73d5cd 100644 --- a/src/emu/cpu/psx/irq.c +++ b/src/emu/cpu/psx/irq.c @@ -28,7 +28,7 @@ INLINE void ATTR_PRINTF(3,4) verboselog( running_machine& machine, int n_level, const device_type PSX_IRQ = &device_creator; psxirq_device::psxirq_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : - device_t(mconfig, PSX_IRQ, "PSX IRQ", tag, owner, clock), + device_t(mconfig, PSX_IRQ, "PSX IRQ", tag, owner, clock, "psxirq", __FILE__), m_irq_handler(*this) { } diff --git a/src/emu/cpu/psx/mdec.c b/src/emu/cpu/psx/mdec.c index 4f7d9098a34..478e1c23463 100644 --- a/src/emu/cpu/psx/mdec.c +++ b/src/emu/cpu/psx/mdec.c @@ -29,7 +29,7 @@ INLINE void ATTR_PRINTF(3,4) verboselog( running_machine& machine, int n_level, const device_type PSX_MDEC = &device_creator; psxmdec_device::psxmdec_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, PSX_MDEC, "PSX MDEC", tag, owner, clock) + : device_t(mconfig, PSX_MDEC, "PSX MDEC", tag, owner, clock, "psxmdec", __FILE__) { } diff --git a/src/emu/cpu/psx/rcnt.c b/src/emu/cpu/psx/rcnt.c index 98ec1e7767d..71d83747ddf 100644 --- a/src/emu/cpu/psx/rcnt.c +++ b/src/emu/cpu/psx/rcnt.c @@ -25,7 +25,7 @@ INLINE void ATTR_PRINTF(3,4) verboselog( running_machine& machine, int n_level, const device_type PSX_RCNT = &device_creator; psxrcnt_device::psxrcnt_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : - device_t(mconfig, PSX_RCNT, "PSX RCNT", tag, owner, clock), + device_t(mconfig, PSX_RCNT, "PSX RCNT", tag, owner, clock, "psxrcnt", __FILE__), m_irq0_handler(*this), m_irq1_handler(*this), m_irq2_handler(*this) diff --git a/src/emu/cpu/psx/sio.c b/src/emu/cpu/psx/sio.c index c2a8a7f8fe7..9276e7550ef 100644 --- a/src/emu/cpu/psx/sio.c +++ b/src/emu/cpu/psx/sio.c @@ -26,17 +26,17 @@ const device_type PSX_SIO0 = &device_creator; const device_type PSX_SIO1 = &device_creator; psxsio0_device::psxsio0_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : - psxsio_device(mconfig, PSX_SIO0, tag, owner, clock) + psxsio_device(mconfig, PSX_SIO0, tag, owner, clock, "psxsio0", __FILE__) { } psxsio1_device::psxsio1_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : - psxsio_device(mconfig, PSX_SIO1, tag, owner, clock) + psxsio_device(mconfig, PSX_SIO1, tag, owner, clock, "psxsio1", __FILE__) { } -psxsio_device::psxsio_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, UINT32 clock) : - device_t(mconfig, type, "PSX SIO", tag, owner, clock), +psxsio_device::psxsio_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) : + device_t(mconfig, type, "PSX SIO", tag, owner, clock, shortname, source), m_irq_handler(*this) { } diff --git a/src/emu/cpu/psx/sio.h b/src/emu/cpu/psx/sio.h index 7cc19d04329..368f26eac07 100644 --- a/src/emu/cpu/psx/sio.h +++ b/src/emu/cpu/psx/sio.h @@ -38,7 +38,7 @@ extern const device_type PSX_SIO1; class psxsio_device : public device_t { public: - psxsio_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, UINT32 clock); + psxsio_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source); // static configuration helpers template static devcb2_base &set_irq_handler(device_t &device, _Object object) { return downcast(device).m_irq_handler.set_callback(object); } diff --git a/src/emu/sound/2151intf.c b/src/emu/sound/2151intf.c index 79b8d1077c5..8d69690867a 100644 --- a/src/emu/sound/2151intf.c +++ b/src/emu/sound/2151intf.c @@ -21,7 +21,7 @@ const device_type YM2151 = &device_creator; //------------------------------------------------- ym2151_device::ym2151_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, YM2151, "YM2151", tag, owner, clock), + : device_t(mconfig, YM2151, "YM2151", tag, owner, clock, "ym2151", __FILE__), device_sound_interface(mconfig, *this), m_irqhandler(*this), m_portwritehandler(*this) diff --git a/src/emu/sound/2203intf.c b/src/emu/sound/2203intf.c index 06aa25ba568..9f0f1be9587 100644 --- a/src/emu/sound/2203intf.c +++ b/src/emu/sound/2203intf.c @@ -203,7 +203,7 @@ WRITE8_MEMBER( ym2203_device::write_port_w ) const device_type YM2203 = &device_creator; ym2203_device::ym2203_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, YM2203, "YM2203", tag, owner, clock), + : device_t(mconfig, YM2203, "YM2203", tag, owner, clock, "ym2203", __FILE__), device_sound_interface(mconfig, *this), m_irq_handler(*this), m_ay8910_config(NULL) diff --git a/src/emu/sound/2413intf.c b/src/emu/sound/2413intf.c index 92b44b0f402..5ace261123a 100644 --- a/src/emu/sound/2413intf.c +++ b/src/emu/sound/2413intf.c @@ -77,7 +77,7 @@ WRITE8_MEMBER( ym2413_device::data_port_w ) { write(space, 1, data); } const device_type YM2413 = &device_creator; ym2413_device::ym2413_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, YM2413, "YM2413", tag, owner, clock), + : device_t(mconfig, YM2413, "YM2413", tag, owner, clock, "ym2413", __FILE__), device_sound_interface(mconfig, *this) { } diff --git a/src/emu/sound/2608intf.c b/src/emu/sound/2608intf.c index 68fc65c7c85..458443bf561 100644 --- a/src/emu/sound/2608intf.c +++ b/src/emu/sound/2608intf.c @@ -202,7 +202,7 @@ WRITE8_MEMBER( ym2608_device::write ) const device_type YM2608 = &device_creator; ym2608_device::ym2608_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, YM2608, "YM2608", tag, owner, clock), + : device_t(mconfig, YM2608, "YM2608", tag, owner, clock, "ym2608", __FILE__), device_sound_interface(mconfig, *this), m_irq_handler(*this), m_ay8910_config(NULL) diff --git a/src/emu/sound/2610intf.c b/src/emu/sound/2610intf.c index 2b11e740528..1bcffbf7b20 100644 --- a/src/emu/sound/2610intf.c +++ b/src/emu/sound/2610intf.c @@ -219,14 +219,14 @@ WRITE8_MEMBER( ym2610_device::write ) const device_type YM2610 = &device_creator; ym2610_device::ym2610_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, YM2610, "YM2610", tag, owner, clock), + : device_t(mconfig, YM2610, "YM2610", tag, owner, clock, "ym2610", __FILE__), device_sound_interface(mconfig, *this), m_irq_handler(*this) { } -ym2610_device::ym2610_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, type, name, tag, owner, clock), +ym2610_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) + : device_t(mconfig, type, name, tag, owner, clock, shortname, source), device_sound_interface(mconfig, *this), m_irq_handler(*this) { @@ -245,6 +245,6 @@ void ym2610_device::device_config_complete() const device_type YM2610B = &device_creator; ym2610b_device::ym2610b_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : ym2610_device(mconfig, YM2610B, "YM2610B", tag, owner, clock) + : ym2610_device(mconfig, YM2610B, "YM2610B", tag, owner, clock, "ym2610b", __FILE__) { } diff --git a/src/emu/sound/2610intf.h b/src/emu/sound/2610intf.h index ac29f88efa6..6970cea3e02 100644 --- a/src/emu/sound/2610intf.h +++ b/src/emu/sound/2610intf.h @@ -16,7 +16,7 @@ class ym2610_device : public device_t, { public: ym2610_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); - ym2610_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); + 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); // static configuration helpers template static devcb2_base &set_irq_handler(device_t &device, _Object object) { return downcast(device).m_irq_handler.set_callback(object); } diff --git a/src/emu/sound/2612intf.c b/src/emu/sound/2612intf.c index 3bc08855730..c40ea7c87c5 100644 --- a/src/emu/sound/2612intf.c +++ b/src/emu/sound/2612intf.c @@ -149,14 +149,14 @@ WRITE8_MEMBER( ym2612_device::write ) const device_type YM2612 = &device_creator; ym2612_device::ym2612_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, YM2612, "YM2612", tag, owner, clock), + : device_t(mconfig, YM2612, "YM2612", tag, owner, clock, "ym2612", __FILE__), device_sound_interface(mconfig, *this), m_irq_handler(*this) { } -ym2612_device::ym2612_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, type, name, tag, owner, clock), +ym2612_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) + : device_t(mconfig, type, name, tag, owner, clock, shortname, source), device_sound_interface(mconfig, *this), m_irq_handler(*this) { @@ -176,6 +176,6 @@ void ym2612_device::device_config_complete() const device_type YM3438 = &device_creator; ym3438_device::ym3438_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : ym2612_device(mconfig, YM3438, "YM3438", tag, owner, clock) + : ym2612_device(mconfig, YM3438, "YM3438", tag, owner, clock, "ym3438", __FILE__) { } diff --git a/src/emu/sound/2612intf.h b/src/emu/sound/2612intf.h index 2886a258076..425f020f54e 100644 --- a/src/emu/sound/2612intf.h +++ b/src/emu/sound/2612intf.h @@ -15,7 +15,7 @@ class ym2612_device : public device_t, { public: ym2612_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); - ym2612_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); + 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); // static configuration helpers template static devcb2_base &set_irq_handler(device_t &device, _Object object) { return downcast(device).m_irq_handler.set_callback(object); } diff --git a/src/emu/sound/262intf.c b/src/emu/sound/262intf.c index e74a09aa76f..613eb069d42 100644 --- a/src/emu/sound/262intf.c +++ b/src/emu/sound/262intf.c @@ -136,7 +136,7 @@ WRITE8_MEMBER( ymf262_device::write ) const device_type YMF262 = &device_creator; ymf262_device::ymf262_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, YMF262, "YMF262", tag, owner, clock), + : device_t(mconfig, YMF262, "YMF262", tag, owner, clock, "ymf262", __FILE__), device_sound_interface(mconfig, *this), m_irq_handler(*this) { diff --git a/src/emu/sound/3526intf.c b/src/emu/sound/3526intf.c index 64e6a58cd14..6e73faebc48 100644 --- a/src/emu/sound/3526intf.c +++ b/src/emu/sound/3526intf.c @@ -154,7 +154,7 @@ WRITE8_MEMBER( ym3526_device::write_port_w ) { write(space, 1, data); } const device_type YM3526 = &device_creator; ym3526_device::ym3526_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, YM3526, "YM3526", tag, owner, clock), + : device_t(mconfig, YM3526, "YM3526", tag, owner, clock, "ym3526", __FILE__), device_sound_interface(mconfig, *this), m_irq_handler(*this) { diff --git a/src/emu/sound/3812intf.c b/src/emu/sound/3812intf.c index e901e6e5e27..53645242e30 100644 --- a/src/emu/sound/3812intf.c +++ b/src/emu/sound/3812intf.c @@ -152,7 +152,7 @@ WRITE8_MEMBER( ym3812_device::write_port_w ) { write( space, 1, data); } const device_type YM3812 = &device_creator; ym3812_device::ym3812_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, YM3812, "YM3812", tag, owner, clock), + : device_t(mconfig, YM3812, "YM3812", tag, owner, clock, "ym3812", __FILE__), device_sound_interface(mconfig, *this), m_irq_handler(*this) { diff --git a/src/emu/sound/8950intf.c b/src/emu/sound/8950intf.c index 684c74ac6aa..b241da8fb5e 100644 --- a/src/emu/sound/8950intf.c +++ b/src/emu/sound/8950intf.c @@ -203,7 +203,7 @@ WRITE8_MEMBER( y8950_device::write_port_w ) { write(space, 1, data); } const device_type Y8950 = &device_creator; y8950_device::y8950_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, Y8950, "Y8950", tag, owner, clock), + : device_t(mconfig, Y8950, "Y8950", tag, owner, clock, "y8950", __FILE__), device_sound_interface(mconfig, *this), m_irq_handler(*this), m_keyboard_read_handler(*this), diff --git a/src/emu/sound/aica.c b/src/emu/sound/aica.c index b92ea25582d..025930105e4 100644 --- a/src/emu/sound/aica.c +++ b/src/emu/sound/aica.c @@ -1355,7 +1355,7 @@ READ16_DEVICE_HANDLER( aica_midi_out_r ) const device_type AICA = &device_creator; aica_device::aica_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, AICA, "AICA", tag, owner, clock), + : device_t(mconfig, AICA, "AICA", tag, owner, clock, "aica", __FILE__), device_sound_interface(mconfig, *this) { m_token = global_alloc_clear(aica_state); diff --git a/src/emu/sound/asc.c b/src/emu/sound/asc.c index 418a3ce5a3b..95d2b5ca900 100644 --- a/src/emu/sound/asc.c +++ b/src/emu/sound/asc.c @@ -44,7 +44,7 @@ const device_type ASC = &device_creator; //------------------------------------------------- asc_device::asc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, ASC, "ASC", tag, owner, clock), + : device_t(mconfig, ASC, "ASC", tag, owner, clock, "asc", __FILE__), device_sound_interface(mconfig, *this), m_chip_type(0), m_irq_cb(NULL) diff --git a/src/emu/sound/astrocde.c b/src/emu/sound/astrocde.c index dfb7674f1fa..3383cba1fb9 100644 --- a/src/emu/sound/astrocde.c +++ b/src/emu/sound/astrocde.c @@ -56,7 +56,7 @@ const device_type ASTROCADE = &device_creator; //------------------------------------------------- astrocade_device::astrocade_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, ASTROCADE, "Astrocade", tag, owner, clock), + : device_t(mconfig, ASTROCADE, "Astrocade", tag, owner, clock, "astrocade", __FILE__), device_sound_interface(mconfig, *this), m_stream(NULL), m_master_count(0), diff --git a/src/emu/sound/awacs.c b/src/emu/sound/awacs.c index a7b8dd4faea..8aa20ee8901 100644 --- a/src/emu/sound/awacs.c +++ b/src/emu/sound/awacs.c @@ -23,7 +23,7 @@ const device_type AWACS = &device_creator; //------------------------------------------------- awacs_device::awacs_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, AWACS, "AWACS", tag, owner, clock), + : device_t(mconfig, AWACS, "AWACS", tag, owner, clock, "awacs", __FILE__), device_sound_interface(mconfig, *this) { } diff --git a/src/emu/sound/ay8910.c b/src/emu/sound/ay8910.c index 96e8d06adfd..22540f70b14 100644 --- a/src/emu/sound/ay8910.c +++ b/src/emu/sound/ay8910.c @@ -1052,12 +1052,12 @@ WRITE8_MEMBER( ay8914_device::write ) const device_type AY8910 = &device_creator; ay8910_device::ay8910_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, AY8910, "AY-3-8910A", tag, owner, clock), + : device_t(mconfig, AY8910, "AY-3-8910A", tag, owner, clock, "ay8910", __FILE__), device_sound_interface(mconfig, *this) { } -ay8910_device::ay8910_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, type, name, tag, owner, clock), +ay8910_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) + : device_t(mconfig, type, name, tag, owner, clock, shortname, source), device_sound_interface(mconfig, *this) { } @@ -1087,7 +1087,7 @@ void ay8910_device::sound_stream_update(sound_stream &stream, stream_sample_t ** const device_type AY8912 = &device_creator; ay8912_device::ay8912_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : ay8910_device(mconfig, AY8912, "AY-3-8912A", tag, owner, clock) + : ay8910_device(mconfig, AY8912, "AY-3-8912A", tag, owner, clock, "ay8913", __FILE__) { } @@ -1095,7 +1095,7 @@ ay8912_device::ay8912_device(const machine_config &mconfig, const char *tag, dev const device_type AY8913 = &device_creator; ay8913_device::ay8913_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : ay8910_device(mconfig, AY8913, "AY-3-8913A", tag, owner, clock) + : ay8910_device(mconfig, AY8913, "AY-3-8913A", tag, owner, clock, "ay8913", __FILE__) { } @@ -1103,7 +1103,7 @@ ay8913_device::ay8913_device(const machine_config &mconfig, const char *tag, dev const device_type AY8914 = &device_creator; ay8914_device::ay8914_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : ay8910_device(mconfig, AY8914, "AY-3-8914", tag, owner, clock) + : ay8910_device(mconfig, AY8914, "AY-3-8914", tag, owner, clock, "ay8914", __FILE__) { } @@ -1111,7 +1111,7 @@ ay8914_device::ay8914_device(const machine_config &mconfig, const char *tag, dev const device_type AY8930 = &device_creator; ay8930_device::ay8930_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : ay8910_device(mconfig, AY8930, "AY8930", tag, owner, clock) + : ay8910_device(mconfig, AY8930, "AY8930", tag, owner, clock, "ay8930", __FILE__) { } @@ -1119,11 +1119,11 @@ ay8930_device::ay8930_device(const machine_config &mconfig, const char *tag, dev const device_type YM2149 = &device_creator; ym2149_device::ym2149_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : ay8910_device(mconfig, YM2149, "YM2149", tag, owner, clock) + : ay8910_device(mconfig, YM2149, "YM2149", tag, owner, clock, "ym2149", __FILE__) { } -ym2149_device::ym2149_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) - : ay8910_device(mconfig, type, name, tag, owner, clock) +ym2149_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) + : ay8910_device(mconfig, type, name, tag, owner, clock, shortname, source) { } @@ -1131,7 +1131,7 @@ ym2149_device::ym2149_device(const machine_config &mconfig, device_type type, co const device_type YM3439 = &device_creator; ym3439_device::ym3439_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : ym2149_device(mconfig, YM3439, "YM3439", tag, owner, clock) + : ym2149_device(mconfig, YM3439, "YM3439", tag, owner, clock, "ym3429", __FILE__) { } @@ -1139,7 +1139,7 @@ ym3439_device::ym3439_device(const machine_config &mconfig, const char *tag, dev const device_type YMZ284 = &device_creator; ymz284_device::ymz284_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : ym2149_device(mconfig, YMZ284, "YMZ284", tag, owner, clock) + : ym2149_device(mconfig, YMZ284, "YMZ284", tag, owner, clock, "ymz284", __FILE__) { } @@ -1147,6 +1147,6 @@ ymz284_device::ymz284_device(const machine_config &mconfig, const char *tag, dev const device_type YMZ294 = &device_creator; ymz294_device::ymz294_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : ym2149_device(mconfig, YMZ294, "YMZ294", tag, owner, clock) + : ym2149_device(mconfig, YMZ294, "YMZ294", tag, owner, clock, "ymz294", __FILE__) { } diff --git a/src/emu/sound/ay8910.h b/src/emu/sound/ay8910.h index 90304b78cfb..c921ca7adc0 100644 --- a/src/emu/sound/ay8910.h +++ b/src/emu/sound/ay8910.h @@ -100,7 +100,7 @@ class ay8910_device : public device_t, { public: ay8910_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); - ay8910_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); + 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); DECLARE_READ8_MEMBER( data_r ); DECLARE_WRITE8_MEMBER( address_w ); @@ -174,7 +174,7 @@ class ym2149_device : public ay8910_device { public: ym2149_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); - ym2149_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); + 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); protected: // device-level overrides virtual void device_start(); diff --git a/src/emu/sound/beep.c b/src/emu/sound/beep.c index b2fe51f4356..04b3412ecdd 100644 --- a/src/emu/sound/beep.c +++ b/src/emu/sound/beep.c @@ -30,7 +30,7 @@ const device_type BEEP = &device_creator; //------------------------------------------------- beep_device::beep_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, BEEP, "Beep", tag, owner, clock), + : device_t(mconfig, BEEP, "Beep", tag, owner, clock, "beep", __FILE__), device_sound_interface(mconfig, *this), m_stream(NULL), m_enable(0), diff --git a/src/emu/sound/c140.c b/src/emu/sound/c140.c index cf731de3a16..b475eba2866 100644 --- a/src/emu/sound/c140.c +++ b/src/emu/sound/c140.c @@ -85,7 +85,7 @@ INLINE int limit(INT32 in) //------------------------------------------------- c140_device::c140_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, C140, "C140", tag, owner, clock), + : device_t(mconfig, C140, "C140", tag, owner, clock, "c140", __FILE__), device_sound_interface(mconfig, *this), m_sample_rate(0), m_stream(NULL), diff --git a/src/emu/sound/c352.c b/src/emu/sound/c352.c index 25b24484a30..21a0f74a21f 100644 --- a/src/emu/sound/c352.c +++ b/src/emu/sound/c352.c @@ -36,7 +36,7 @@ ADDRESS_MAP_END //------------------------------------------------- c352_device::c352_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, C352, "C352", tag, owner, clock), + : device_t(mconfig, C352, "C352", tag, owner, clock, "c352", __FILE__), device_sound_interface(mconfig, *this), device_memory_interface(mconfig, *this), m_space_config("samples", ENDIANNESS_LITTLE, 8, 24, 0, NULL, *ADDRESS_MAP_NAME(c352)) diff --git a/src/emu/sound/c6280.c b/src/emu/sound/c6280.c index 047c66cd989..0de0cadab56 100644 --- a/src/emu/sound/c6280.c +++ b/src/emu/sound/c6280.c @@ -247,7 +247,7 @@ WRITE8_MEMBER( c6280_device::c6280_w ) const device_type C6280 = &device_creator; c6280_device::c6280_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, C6280, "HuC6280", tag, owner, clock), + : device_t(mconfig, C6280, "HuC6280", tag, owner, clock, "c6280", __FILE__), device_sound_interface(mconfig, *this) { } diff --git a/src/emu/sound/cdda.c b/src/emu/sound/cdda.c index 3b5d06c9ba9..9e9e41f1e75 100644 --- a/src/emu/sound/cdda.c +++ b/src/emu/sound/cdda.c @@ -252,7 +252,7 @@ INT16 cdda_device::get_channel_volume(int channel) const device_type CDDA = &device_creator; cdda_device::cdda_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, CDDA, "CD/DA", tag, owner, clock), + : device_t(mconfig, CDDA, "CD/DA", tag, owner, clock, "cdda", __FILE__), device_sound_interface(mconfig, *this) { } diff --git a/src/emu/sound/cdp1863.c b/src/emu/sound/cdp1863.c index 1b1812ae34e..1dd10698a0d 100644 --- a/src/emu/sound/cdp1863.c +++ b/src/emu/sound/cdp1863.c @@ -48,7 +48,7 @@ const device_type CDP1863 = &device_creator; //------------------------------------------------- cdp1863_device::cdp1863_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, CDP1863, "CDP1863", tag, owner, clock), + : device_t(mconfig, CDP1863, "CDP1863", tag, owner, clock, "cdp1863", __FILE__), device_sound_interface(mconfig, *this), m_stream(NULL), m_clock1(clock), diff --git a/src/emu/sound/cdp1864.c b/src/emu/sound/cdp1864.c index ed4874a8e17..22a81b3b36b 100644 --- a/src/emu/sound/cdp1864.c +++ b/src/emu/sound/cdp1864.c @@ -98,7 +98,7 @@ inline void cdp1864_device::initialize_palette() //------------------------------------------------- cdp1864_device::cdp1864_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, CDP1864, "CDP1864", tag, owner, clock), + : device_t(mconfig, CDP1864, "CDP1864", tag, owner, clock, "cdp1864", __FILE__), device_sound_interface(mconfig, *this), m_read_inlace(*this), m_read_rdata(*this), diff --git a/src/emu/sound/cdp1869.c b/src/emu/sound/cdp1869.c index ce30e49dc5a..4f51520b76c 100644 --- a/src/emu/sound/cdp1869.c +++ b/src/emu/sound/cdp1869.c @@ -342,7 +342,7 @@ inline int cdp1869_device::get_pen(int ccb0, int ccb1, int pcb) //------------------------------------------------- cdp1869_device::cdp1869_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, CDP1869, "RCA CDP1869", tag, owner, clock), + : device_t(mconfig, CDP1869, "RCA CDP1869", tag, owner, clock, "cdp1869", __FILE__), device_sound_interface(mconfig, *this), device_memory_interface(mconfig, *this), m_stream(NULL), diff --git a/src/emu/sound/cem3394.c b/src/emu/sound/cem3394.c index 162fb664c93..cf5624125e3 100644 --- a/src/emu/sound/cem3394.c +++ b/src/emu/sound/cem3394.c @@ -114,7 +114,7 @@ const device_type CEM3394 = &device_creator; //------------------------------------------------- cem3394_device::cem3394_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, CEM3394, "CEM3394", tag, owner, clock), + : device_t(mconfig, CEM3394, "CEM3394", tag, owner, clock, "cem3394", __FILE__), device_sound_interface(mconfig, *this), m_external(NULL), m_stream(NULL), diff --git a/src/emu/sound/digitalk.c b/src/emu/sound/digitalk.c index 3af96b6eb13..436440188ca 100644 --- a/src/emu/sound/digitalk.c +++ b/src/emu/sound/digitalk.c @@ -262,7 +262,7 @@ static const int pitch_vals[32] = { const device_type DIGITALKER = &device_creator; digitalker_device::digitalker_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, DIGITALKER, "Digitalker", tag, owner, clock), + : device_t(mconfig, DIGITALKER, "Digitalker", tag, owner, clock, "digitalker", __FILE__), device_sound_interface(mconfig, *this), m_rom(NULL), m_stream(NULL), diff --git a/src/emu/sound/discrete.c b/src/emu/sound/discrete.c index 1e4eb16903a..6095e85bb70 100644 --- a/src/emu/sound/discrete.c +++ b/src/emu/sound/discrete.c @@ -825,7 +825,7 @@ void discrete_device::static_set_intf(device_t &device, const discrete_block *in //------------------------------------------------- discrete_device::discrete_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, type, name, tag, owner, clock), + : device_t(mconfig, type, name, tag, owner, clock, "discrete", __FILE__), m_intf(NULL), m_sample_rate(0), m_sample_time(0), diff --git a/src/emu/sound/dmadac.c b/src/emu/sound/dmadac.c index 340c926cf72..aa5cf290e83 100644 --- a/src/emu/sound/dmadac.c +++ b/src/emu/sound/dmadac.c @@ -236,7 +236,7 @@ void dmadac_set_volume(dmadac_sound_device **devlist, UINT8 num_channels, UINT16 const device_type DMADAC = &device_creator; dmadac_sound_device::dmadac_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, DMADAC, "DMA-driven DAC", tag, owner, clock), + : device_t(mconfig, DMADAC, "DMA-driven DAC", tag, owner, clock, "dmadac", __FILE__), device_sound_interface(mconfig, *this) { m_token = global_alloc_clear(dmadac_state); diff --git a/src/emu/sound/es5503.c b/src/emu/sound/es5503.c index ef649df3491..c9345903974 100644 --- a/src/emu/sound/es5503.c +++ b/src/emu/sound/es5503.c @@ -62,7 +62,7 @@ ADDRESS_MAP_END //------------------------------------------------- es5503_device::es5503_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, ES5503, "Ensoniq ES5503", tag, owner, clock), + : device_t(mconfig, ES5503, "Ensoniq ES5503", tag, owner, clock, "es5503", __FILE__), device_sound_interface(mconfig, *this), device_memory_interface(mconfig, *this), m_space_config("es5503_samples", ENDIANNESS_LITTLE, 8, 17, 0, NULL, *ADDRESS_MAP_NAME(es5503)), diff --git a/src/emu/sound/es5506.c b/src/emu/sound/es5506.c index fd2a2749483..ee98093fcbb 100644 --- a/src/emu/sound/es5506.c +++ b/src/emu/sound/es5506.c @@ -2160,14 +2160,14 @@ void es5505_voice_bank_w(device_t *device, int voice, int bank) const device_type ES5506 = &device_creator; es5506_device::es5506_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, ES5506, "ES5506", tag, owner, clock), + : device_t(mconfig, ES5506, "ES5506", tag, owner, clock, "es5506", __FILE__), device_sound_interface(mconfig, *this) { m_token = global_alloc_clear(es5506_state); } -es5506_device::es5506_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, type, name, tag, owner, clock), +es5506_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) + : device_t(mconfig, type, name, tag, owner, clock, shortname, source), device_sound_interface(mconfig, *this) { m_token = global_alloc_clear(es5506_state); @@ -2223,7 +2223,7 @@ void es5506_device::sound_stream_update(sound_stream &stream, stream_sample_t ** const device_type ES5505 = &device_creator; es5505_device::es5505_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : es5506_device(mconfig, ES5505, "ES5505", tag, owner, clock) + : es5506_device(mconfig, ES5505, "ES5505", tag, owner, clock, "es5505", __FILE__) { } diff --git a/src/emu/sound/es5506.h b/src/emu/sound/es5506.h index 1a7fd010228..13d19dac600 100644 --- a/src/emu/sound/es5506.h +++ b/src/emu/sound/es5506.h @@ -30,7 +30,7 @@ class es5506_device : public device_t, { public: es5506_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); - es5506_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); + 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); ~es5506_device() { global_free(m_token); } // access to legacy token diff --git a/src/emu/sound/es8712.c b/src/emu/sound/es8712.c index 853125b2639..7ad6043ea0e 100644 --- a/src/emu/sound/es8712.c +++ b/src/emu/sound/es8712.c @@ -38,7 +38,7 @@ const device_type ES8712 = &device_creator; //------------------------------------------------- es8712_device::es8712_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, ES8712, "ES8712", tag, owner, clock), + : device_t(mconfig, ES8712, "ES8712", tag, owner, clock, "es8712", __FILE__), device_sound_interface(mconfig, *this), m_playing(0), m_base_offset(0), diff --git a/src/emu/sound/flt_rc.c b/src/emu/sound/flt_rc.c index f05cc63883e..9f42292645f 100644 --- a/src/emu/sound/flt_rc.c +++ b/src/emu/sound/flt_rc.c @@ -18,7 +18,7 @@ const device_type FILTER_RC = &device_creator; //------------------------------------------------- filter_rc_device::filter_rc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, FILTER_RC, "RC Filter", tag, owner, clock), + : device_t(mconfig, FILTER_RC, "RC Filter", tag, owner, clock, "filter_rc", __FILE__), device_sound_interface(mconfig, *this), m_stream(NULL), m_k(0), diff --git a/src/emu/sound/flt_vol.c b/src/emu/sound/flt_vol.c index eac2ca7ac7a..b29f2711b7e 100644 --- a/src/emu/sound/flt_vol.c +++ b/src/emu/sound/flt_vol.c @@ -10,7 +10,7 @@ const device_type FILTER_VOLUME = &device_creator; //------------------------------------------------- filter_volume_device::filter_volume_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, FILTER_VOLUME, "Volume Filter", tag, owner, clock), + : device_t(mconfig, FILTER_VOLUME, "Volume Filter", tag, owner, clock, "filter_volume", __FILE__), device_sound_interface(mconfig, *this), m_stream(NULL), m_gain(0) diff --git a/src/emu/sound/gaelco.c b/src/emu/sound/gaelco.c index 3d2932dcc1f..d2aa0f7ef66 100644 --- a/src/emu/sound/gaelco.c +++ b/src/emu/sound/gaelco.c @@ -55,15 +55,15 @@ static wav_file* wavraw; // Raw waveform const device_type GAELCO_GAE1 = &device_creator; gaelco_gae1_device::gaelco_gae1_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, GAELCO_GAE1, "Gaelco GAE1", tag, owner, clock), + : device_t(mconfig, GAELCO_GAE1, "Gaelco GAE1", tag, owner, clock, "gaelco_gae1", __FILE__), device_sound_interface(mconfig, *this), m_stream(NULL), m_snd_data(NULL) { } -gaelco_gae1_device::gaelco_gae1_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, type, name, tag, owner, clock), +gaelco_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) + : device_t(mconfig, type, name, tag, owner, clock, shortname, source), device_sound_interface(mconfig, *this), m_stream(NULL), m_snd_data(NULL) @@ -277,6 +277,6 @@ void gaelco_gae1_device::device_stop() const device_type GAELCO_CG1V = &device_creator; gaelco_cg1v_device::gaelco_cg1v_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : gaelco_gae1_device(mconfig, GAELCO_CG1V, "Gaelco CG1V", tag, owner, clock) + : gaelco_gae1_device(mconfig, GAELCO_CG1V, "Gaelco CG1V", tag, owner, clock, "gaelco_cg1v", __FILE__) { } diff --git a/src/emu/sound/gaelco.h b/src/emu/sound/gaelco.h index d697b057b15..fdb3a984685 100644 --- a/src/emu/sound/gaelco.h +++ b/src/emu/sound/gaelco.h @@ -50,7 +50,7 @@ class gaelco_gae1_device : public device_t, { public: gaelco_gae1_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); - gaelco_gae1_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); + 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); ~gaelco_gae1_device() { } protected: diff --git a/src/emu/sound/hc55516.c b/src/emu/sound/hc55516.c index 25ea7e17abb..736df6def12 100644 --- a/src/emu/sound/hc55516.c +++ b/src/emu/sound/hc55516.c @@ -296,13 +296,13 @@ int hc55516_clock_state_r(device_t *device) const device_type HC55516 = &device_creator; hc55516_device::hc55516_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, HC55516, "HC-55516", tag, owner, clock), + : device_t(mconfig, HC55516, "HC-55516", tag, owner, clock, "hc55516", __FILE__), device_sound_interface(mconfig, *this) { m_token = global_alloc_clear(hc55516_state); } -hc55516_device::hc55516_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, type, name, tag, owner, clock), +hc55516_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) + : device_t(mconfig, type, name, tag, owner, clock, shortname, source), device_sound_interface(mconfig, *this) { m_token = global_alloc_clear(hc55516_state); @@ -350,7 +350,7 @@ void hc55516_device::sound_stream_update(sound_stream &stream, stream_sample_t * const device_type MC3417 = &device_creator; mc3417_device::mc3417_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : hc55516_device(mconfig, MC3417, "MC3417", tag, owner, clock) + : hc55516_device(mconfig, MC3417, "MC3417", tag, owner, clock, "mc3417", __FILE__) { } @@ -377,7 +377,7 @@ void mc3417_device::sound_stream_update(sound_stream &stream, stream_sample_t ** const device_type MC3418 = &device_creator; mc3418_device::mc3418_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : hc55516_device(mconfig, MC3418, "MC3418", tag, owner, clock) + : hc55516_device(mconfig, MC3418, "MC3418", tag, owner, clock, "mc3418", __FILE__) { } diff --git a/src/emu/sound/hc55516.h b/src/emu/sound/hc55516.h index f9da379e2f0..4a07886337c 100644 --- a/src/emu/sound/hc55516.h +++ b/src/emu/sound/hc55516.h @@ -20,7 +20,7 @@ class hc55516_device : public device_t, { public: hc55516_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); - hc55516_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); + 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); ~hc55516_device() { global_free(m_token); } // access to legacy token diff --git a/src/emu/sound/i5000.c b/src/emu/sound/i5000.c index 23ab9b8a5f2..f181cea35f2 100644 --- a/src/emu/sound/i5000.c +++ b/src/emu/sound/i5000.c @@ -22,7 +22,7 @@ const device_type I5000_SND = &device_creator; i5000snd_device::i5000snd_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, I5000_SND, "I5000", tag, owner, clock), + : device_t(mconfig, I5000_SND, "I5000", tag, owner, clock, "i5000snd", __FILE__), device_sound_interface(mconfig, *this) { } diff --git a/src/emu/sound/ics2115.c b/src/emu/sound/ics2115.c index 828e8e3c07a..915ad168b04 100644 --- a/src/emu/sound/ics2115.c +++ b/src/emu/sound/ics2115.c @@ -22,7 +22,7 @@ void ics2115_device::static_set_irqf(device_t &device, void (*irqf)(device_t *de } ics2115_device::ics2115_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, ICS2115, "ICS2115", tag, owner, clock), + : device_t(mconfig, ICS2115, "ICS2115", tag, owner, clock, "ics2115", __FILE__), device_sound_interface(mconfig, *this), m_irq_cb(NULL) { diff --git a/src/emu/sound/iremga20.c b/src/emu/sound/iremga20.c index 9314760f57c..c408a6a93f2 100644 --- a/src/emu/sound/iremga20.c +++ b/src/emu/sound/iremga20.c @@ -45,7 +45,7 @@ const device_type IREMGA20 = &device_creator; //------------------------------------------------- iremga20_device::iremga20_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, IREMGA20, "Irem GA20", tag, owner, clock), + : device_t(mconfig, IREMGA20, "Irem GA20", tag, owner, clock, "iremga20", __FILE__), device_sound_interface(mconfig, *this), m_rom(NULL), m_rom_size(0), diff --git a/src/emu/sound/k005289.c b/src/emu/sound/k005289.c index 710f7b4369a..c3efa781e30 100644 --- a/src/emu/sound/k005289.c +++ b/src/emu/sound/k005289.c @@ -44,7 +44,7 @@ const device_type K005289 = &device_creator; //------------------------------------------------- k005289_device::k005289_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, K005289, "K005289", tag, owner, clock), + : device_t(mconfig, K005289, "K005289", tag, owner, clock, "k005289", __FILE__), device_sound_interface(mconfig, *this), m_sound_prom(NULL), m_stream(NULL), diff --git a/src/emu/sound/k007232.c b/src/emu/sound/k007232.c index 7a253b8e8d1..ab6f2a9a1e7 100644 --- a/src/emu/sound/k007232.c +++ b/src/emu/sound/k007232.c @@ -146,7 +146,7 @@ static const float kdaca_fn[][2] = { const device_type K007232 = &device_creator; k007232_device::k007232_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, K007232, "K007232", tag, owner, clock), + : device_t(mconfig, K007232, "K007232", tag, owner, clock, "k007232", __FILE__), device_sound_interface(mconfig, *this) { diff --git a/src/emu/sound/k051649.c b/src/emu/sound/k051649.c index 1dcc60446fe..67ca3154881 100644 --- a/src/emu/sound/k051649.c +++ b/src/emu/sound/k051649.c @@ -42,7 +42,7 @@ const device_type K051649 = &device_creator; //------------------------------------------------- k051649_device::k051649_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, K051649, "K051649", tag, owner, clock), + : device_t(mconfig, K051649, "K051649", tag, owner, clock, "k051649", __FILE__), device_sound_interface(mconfig, *this), m_stream(NULL), m_mclock(0), diff --git a/src/emu/sound/k053260.c b/src/emu/sound/k053260.c index d675460c76c..20715f007db 100644 --- a/src/emu/sound/k053260.c +++ b/src/emu/sound/k053260.c @@ -27,7 +27,7 @@ const device_type K053260 = &device_creator; //------------------------------------------------- k053260_device::k053260_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, K053260, "K053260", tag, owner, clock), + : device_t(mconfig, K053260, "K053260", tag, owner, clock, "k053260", __FILE__), device_sound_interface(mconfig, *this), m_channel(NULL), m_mode(0), diff --git a/src/emu/sound/k056800.c b/src/emu/sound/k056800.c index 2289dd89180..73814558b86 100644 --- a/src/emu/sound/k056800.c +++ b/src/emu/sound/k056800.c @@ -13,7 +13,7 @@ const device_type K056800 = &device_creator; k056800_device::k056800_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, K056800, "Konami 056800 MIRAC", tag, owner, clock) + : device_t(mconfig, K056800, "Konami 056800 MIRAC", tag, owner, clock, "k056800", __FILE__) { } diff --git a/src/emu/sound/lmc1992.c b/src/emu/sound/lmc1992.c index b04a05404c7..e4fb58d5ea6 100644 --- a/src/emu/sound/lmc1992.c +++ b/src/emu/sound/lmc1992.c @@ -140,7 +140,7 @@ inline void lmc1992_device::execute_command(int addr, int data) //------------------------------------------------- lmc1992_device::lmc1992_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, LMC1992, "LMC1992", tag, owner, clock), + : device_t(mconfig, LMC1992, "LMC1992", tag, owner, clock, "lmc1992", __FILE__), device_sound_interface(mconfig, *this) { } diff --git a/src/emu/sound/mas3507d.c b/src/emu/sound/mas3507d.c index 3b5ad58f191..c9ad198b4a7 100644 --- a/src/emu/sound/mas3507d.c +++ b/src/emu/sound/mas3507d.c @@ -9,7 +9,7 @@ const device_type MAS3507D = &device_creator; mas3507d_device::mas3507d_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, MAS3507D, "MAS3507D", tag, owner, clock), + : device_t(mconfig, MAS3507D, "MAS3507D", tag, owner, clock, "mas3507d", __FILE__), device_sound_interface(mconfig, *this) { } diff --git a/src/emu/sound/mos6560.c b/src/emu/sound/mos6560.c index a69dc285c37..cd63a0e8c59 100644 --- a/src/emu/sound/mos6560.c +++ b/src/emu/sound/mos6560.c @@ -686,8 +686,8 @@ static ADDRESS_MAP_START( mos6560_colorram_map, AS_1, 8, mos6560_device ) AM_RANGE(0x000, 0x3ff) AM_RAM ADDRESS_MAP_END -mos6560_device::mos6560_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant) - : device_t(mconfig, type, name, tag, owner, clock), +mos6560_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) + : device_t(mconfig, type, name, tag, owner, clock, shortname, source), device_memory_interface(mconfig, *this), device_sound_interface(mconfig, *this), m_variant(variant), @@ -699,7 +699,7 @@ mos6560_device::mos6560_device(const machine_config &mconfig, device_type type, } mos6560_device::mos6560_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, MOS6560, "MOS6560", tag, owner, clock), + : device_t(mconfig, MOS6560, "MOS6560", tag, owner, clock, "mos6560", __FILE__), device_memory_interface(mconfig, *this), device_sound_interface(mconfig, *this), m_variant(TYPE_6560), @@ -711,10 +711,10 @@ mos6560_device::mos6560_device(const machine_config &mconfig, const char *tag, d } mos6561_device::mos6561_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - :mos6560_device(mconfig, MOS6561, "MOS6561", tag, owner, clock, TYPE_6561) { } + :mos6560_device(mconfig, MOS6561, "MOS6561", tag, owner, clock, TYPE_6561, "mos6561", __FILE__) { } mos656x_attack_ufo_device::mos656x_attack_ufo_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - :mos6560_device(mconfig, MOS656X_ATTACK_UFO, "MOS656X", tag, owner, clock, TYPE_ATTACK_UFO) { } + :mos6560_device(mconfig, MOS656X_ATTACK_UFO, "MOS656X", tag, owner, clock, TYPE_ATTACK_UFO, "mos656x_attack_ufo", __FILE__) { } //------------------------------------------------- diff --git a/src/emu/sound/mos6560.h b/src/emu/sound/mos6560.h index 5742db99b32..0d83aa58b4f 100644 --- a/src/emu/sound/mos6560.h +++ b/src/emu/sound/mos6560.h @@ -128,7 +128,7 @@ class mos6560_device : public device_t, public device_sound_interface { public: - mos6560_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant); + 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); mos6560_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); template void set_callbacks(const char *screen_tag, _potx potx, _poty poty) { diff --git a/src/emu/sound/mos6581.c b/src/emu/sound/mos6581.c index c00daf2d65f..8f71603d20a 100644 --- a/src/emu/sound/mos6581.c +++ b/src/emu/sound/mos6581.c @@ -38,8 +38,8 @@ const device_type MOS8580 = &device_creator; // mos6581_device - constructor //------------------------------------------------- -mos6581_device::mos6581_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant) - : device_t(mconfig, type, name, tag, owner, clock), +mos6581_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) + : device_t(mconfig, type, name, tag, owner, clock, shortname, source), device_sound_interface(mconfig, *this), m_read_potx(*this), m_read_poty(*this), @@ -50,7 +50,7 @@ mos6581_device::mos6581_device(const machine_config &mconfig, device_type type, } mos6581_device::mos6581_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, MOS6581, "MOS6581", tag, owner, clock), + : device_t(mconfig, MOS6581, "MOS6581", tag, owner, clock, "mos6581", __FILE__), device_sound_interface(mconfig, *this), m_read_potx(*this), m_read_poty(*this), @@ -66,7 +66,7 @@ mos6581_device::mos6581_device(const machine_config &mconfig, const char *tag, d //------------------------------------------------- mos8580_device::mos8580_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : mos6581_device(mconfig, MOS8580, "MOS8580", tag, owner, clock, TYPE_8580) + : mos6581_device(mconfig, MOS8580, "MOS8580", tag, owner, clock, TYPE_8580, "mos8580", __FILE__) { } diff --git a/src/emu/sound/mos6581.h b/src/emu/sound/mos6581.h index 6d9d457a81a..a45a79d5a16 100644 --- a/src/emu/sound/mos6581.h +++ b/src/emu/sound/mos6581.h @@ -54,7 +54,7 @@ class mos6581_device : public device_t, public device_sound_interface { public: - mos6581_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant); + 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); mos6581_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); ~mos6581_device() { global_free(m_token); } diff --git a/src/emu/sound/mos7360.c b/src/emu/sound/mos7360.c index 8c85769c6d3..b90867ee921 100644 --- a/src/emu/sound/mos7360.c +++ b/src/emu/sound/mos7360.c @@ -255,7 +255,7 @@ inline UINT8 mos7360_device::read_rom(offs_t offset) //------------------------------------------------- mos7360_device::mos7360_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, MOS7360, "MOS7360", tag, owner, clock), + : device_t(mconfig, MOS7360, "MOS7360", tag, owner, clock, "mos7360", __FILE__), device_memory_interface(mconfig, *this), device_sound_interface(mconfig, *this), m_videoram_space_config("videoram", ENDIANNESS_LITTLE, 8, 16, 0, NULL, *ADDRESS_MAP_NAME(mos7360_videoram_map)), diff --git a/src/emu/sound/msm5205.c b/src/emu/sound/msm5205.c index ce8a60b7a0a..21850bb5e16 100644 --- a/src/emu/sound/msm5205.c +++ b/src/emu/sound/msm5205.c @@ -56,20 +56,20 @@ const device_type MSM6585 = &device_creator; msm5205_device::msm5205_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, MSM5205, "MSM5205", tag, owner, clock), + : device_t(mconfig, MSM5205, "MSM5205", tag, owner, clock, "msm5205", __FILE__), device_sound_interface(mconfig, *this) { } -msm5205_device::msm5205_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, type, name, tag, owner, clock), +msm5205_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) + : device_t(mconfig, type, name, tag, owner, clock, shortname, source), device_sound_interface(mconfig, *this) { } msm6585_device::msm6585_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : msm5205_device(mconfig, MSM6585, "MSM6585", tag, owner, clock) + : msm5205_device(mconfig, MSM6585, "MSM6585", tag, owner, clock, "msm6585", __FILE__) { } diff --git a/src/emu/sound/msm5205.h b/src/emu/sound/msm5205.h index 83361a313ca..414f4137c21 100644 --- a/src/emu/sound/msm5205.h +++ b/src/emu/sound/msm5205.h @@ -36,7 +36,7 @@ class msm5205_device : public device_t, { public: msm5205_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); - msm5205_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); + 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); ~msm5205_device() {} // reset signal should keep for 2cycle of VCLK diff --git a/src/emu/sound/msm5232.c b/src/emu/sound/msm5232.c index d6e67b21f46..6e3d64d5281 100644 --- a/src/emu/sound/msm5232.c +++ b/src/emu/sound/msm5232.c @@ -853,7 +853,7 @@ void msm5232_set_clock(device_t *device, int clock) const device_type MSM5232 = &device_creator; msm5232_device::msm5232_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, MSM5232, "MSM5232", tag, owner, clock), + : device_t(mconfig, MSM5232, "MSM5232", tag, owner, clock, "msm5232", __FILE__), device_sound_interface(mconfig, *this) { m_token = global_alloc_clear(msm5232_state); diff --git a/src/emu/sound/multipcm.c b/src/emu/sound/multipcm.c index 1980bd7832b..bb49e53df00 100644 --- a/src/emu/sound/multipcm.c +++ b/src/emu/sound/multipcm.c @@ -675,7 +675,7 @@ void multipcm_set_bank(device_t *device, UINT32 leftoffs, UINT32 rightoffs) const device_type MULTIPCM = &device_creator; multipcm_device::multipcm_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, MULTIPCM, "Sega/Yamaha 315-5560", tag, owner, clock), + : device_t(mconfig, MULTIPCM, "Sega/Yamaha 315-5560", tag, owner, clock, "multipcm", __FILE__), device_sound_interface(mconfig, *this) { m_token = global_alloc_clear(MultiPCM); diff --git a/src/emu/sound/n63701x.c b/src/emu/sound/n63701x.c index 22ebcc3385b..5d800814324 100644 --- a/src/emu/sound/n63701x.c +++ b/src/emu/sound/n63701x.c @@ -30,7 +30,7 @@ static const int vol_table[4] = { 26, 84, 200, 258 }; const device_type NAMCO_63701X = &device_creator; namco_63701x_device::namco_63701x_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, NAMCO_63701X, "Namco 63701X", tag, owner, clock), + : device_t(mconfig, NAMCO_63701X, "Namco 63701X", tag, owner, clock, "namco_63701x", __FILE__), device_sound_interface(mconfig, *this), m_stream(NULL), m_rom(NULL) diff --git a/src/emu/sound/namco.c b/src/emu/sound/namco.c index 001fc34d95a..a2972ea9d79 100644 --- a/src/emu/sound/namco.c +++ b/src/emu/sound/namco.c @@ -816,14 +816,14 @@ WRITE8_DEVICE_HANDLER( namco_snd_sharedram_w ) const device_type NAMCO = &device_creator; namco_device::namco_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, NAMCO, "Namco", tag, owner, clock), + : device_t(mconfig, NAMCO, "Namco", tag, owner, clock, "namco", __FILE__), device_sound_interface(mconfig, *this) { m_token = global_alloc_clear(namco_sound); } -namco_device::namco_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, type, name, tag, owner, clock), +namco_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) + : device_t(mconfig, type, name, tag, owner, clock, shortname, source), device_sound_interface(mconfig, *this) { m_token = global_alloc_clear(namco_sound); @@ -862,13 +862,13 @@ void namco_device::sound_stream_update(sound_stream &stream, stream_sample_t **i const device_type NAMCO_15XX = &device_creator; namco_15xx_device::namco_15xx_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : namco_device(mconfig, NAMCO_15XX, "Namco 15XX", tag, owner, clock) + : namco_device(mconfig, NAMCO_15XX, "Namco 15XX", tag, owner, clock, "namco_15xx", __FILE__) { } const device_type NAMCO_CUS30 = &device_creator; namco_cus30_device::namco_cus30_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : namco_device(mconfig, NAMCO_CUS30, "Namco CUS30", tag, owner, clock) + : namco_device(mconfig, NAMCO_CUS30, "Namco CUS30", tag, owner, clock, "namco_cus30", __FILE__) { } diff --git a/src/emu/sound/namco.h b/src/emu/sound/namco.h index 065611b294f..043e15b65c0 100644 --- a/src/emu/sound/namco.h +++ b/src/emu/sound/namco.h @@ -31,7 +31,7 @@ class namco_device : public device_t, { public: namco_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); - namco_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); + 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); ~namco_device() { global_free(m_token); } // access to legacy token diff --git a/src/emu/sound/nes_apu.c b/src/emu/sound/nes_apu.c index a13c5557766..ccb4f72f22f 100644 --- a/src/emu/sound/nes_apu.c +++ b/src/emu/sound/nes_apu.c @@ -769,7 +769,7 @@ static DEVICE_START( nesapu ) const device_type NES = &device_creator; nesapu_device::nesapu_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, NES, "N2A03", tag, owner, clock), + : device_t(mconfig, NES, "N2A03", tag, owner, clock, "nesapu", __FILE__), device_sound_interface(mconfig, *this) { m_token = global_alloc_clear(nesapu_state); diff --git a/src/emu/sound/nile.c b/src/emu/sound/nile.c index 05760bc9c58..dd709996fb0 100644 --- a/src/emu/sound/nile.c +++ b/src/emu/sound/nile.c @@ -51,7 +51,7 @@ enum const device_type NILE = &device_creator; nile_device::nile_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, NILE, "NiLe", tag, owner, clock), + : device_t(mconfig, NILE, "NiLe", tag, owner, clock, "nile", __FILE__), device_sound_interface(mconfig, *this), m_stream(NULL), m_sound_ram(NULL), diff --git a/src/emu/sound/okim6258.c b/src/emu/sound/okim6258.c index 6ec9ddc6b43..8d3a2cc66c3 100644 --- a/src/emu/sound/okim6258.c +++ b/src/emu/sound/okim6258.c @@ -45,7 +45,7 @@ const device_type OKIM6258 = &device_creator; //------------------------------------------------- okim6258_device::okim6258_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, OKIM6258, "OKI6258", tag, owner, clock), + : device_t(mconfig, OKIM6258, "OKI6258", tag, owner, clock, "okim6258", __FILE__), device_sound_interface(mconfig, *this), m_status(0), m_master_clock(0), diff --git a/src/emu/sound/okim6295.c b/src/emu/sound/okim6295.c index 8eca23f1317..1c823e93cae 100644 --- a/src/emu/sound/okim6295.c +++ b/src/emu/sound/okim6295.c @@ -85,7 +85,7 @@ ADDRESS_MAP_END //------------------------------------------------- okim6295_device::okim6295_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, OKIM6295, "OKI6295", tag, owner, clock), + : device_t(mconfig, OKIM6295, "OKI6295", tag, owner, clock, "okim6295", __FILE__), device_sound_interface(mconfig, *this), device_memory_interface(mconfig, *this), m_space_config("samples", ENDIANNESS_LITTLE, 8, 18, 0, NULL, *ADDRESS_MAP_NAME(okim6295)), diff --git a/src/emu/sound/okim6376.c b/src/emu/sound/okim6376.c index f59e72d98df..b4fa4e3aacc 100644 --- a/src/emu/sound/okim6376.c +++ b/src/emu/sound/okim6376.c @@ -619,7 +619,7 @@ WRITE8_DEVICE_HANDLER( okim6376_w ) const device_type OKIM6376 = &device_creator; okim6376_device::okim6376_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, OKIM6376, "OKI6376", tag, owner, clock), + : device_t(mconfig, OKIM6376, "OKI6376", tag, owner, clock, "okim6376", __FILE__), device_sound_interface(mconfig, *this) { m_token = global_alloc_clear(okim6376_state); diff --git a/src/emu/sound/okim9810.c b/src/emu/sound/okim9810.c index 184841da32b..29af99ed4bf 100644 --- a/src/emu/sound/okim9810.c +++ b/src/emu/sound/okim9810.c @@ -76,7 +76,7 @@ ADDRESS_MAP_END //------------------------------------------------- okim9810_device::okim9810_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, OKIM9810, "OKI9810", tag, owner, clock), + : device_t(mconfig, OKIM9810, "OKI9810", tag, owner, clock, "okim9810", __FILE__), device_sound_interface(mconfig, *this), device_memory_interface(mconfig, *this), m_space_config("samples", ENDIANNESS_BIG, 8, 24, 0, NULL, *ADDRESS_MAP_NAME(okim9810)), diff --git a/src/emu/sound/pokey.c b/src/emu/sound/pokey.c index 10b69d28d6e..e00d72049c2 100644 --- a/src/emu/sound/pokey.c +++ b/src/emu/sound/pokey.c @@ -181,7 +181,7 @@ const device_type POKEY = &device_creator; //------------------------------------------------- pokey_device::pokey_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, POKEY, "POKEY", tag, owner, clock), + : device_t(mconfig, POKEY, "POKEY", tag, owner, clock, "pokey", __FILE__), device_sound_interface(mconfig, *this), device_execute_interface(mconfig, *this), device_state_interface(mconfig, *this), diff --git a/src/emu/sound/rf5c400.c b/src/emu/sound/rf5c400.c index 3a8e3d140ad..91bbb6117b0 100644 --- a/src/emu/sound/rf5c400.c +++ b/src/emu/sound/rf5c400.c @@ -64,7 +64,7 @@ const device_type RF5C400 = &device_creator; //------------------------------------------------- rf5c400_device::rf5c400_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, RF5C400, "RF5C400", tag, owner, clock), + : device_t(mconfig, RF5C400, "RF5C400", tag, owner, clock, "rf5c400", __FILE__), device_sound_interface(mconfig, *this), m_rom(NULL), m_rom_length(0), diff --git a/src/emu/sound/rf5c68.c b/src/emu/sound/rf5c68.c index 9cbef82f167..23dcb94cd46 100644 --- a/src/emu/sound/rf5c68.c +++ b/src/emu/sound/rf5c68.c @@ -19,7 +19,7 @@ const device_type RF5C68 = &device_creator; //------------------------------------------------- rf5c68_device::rf5c68_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, RF5C68, "RF5C68", tag, owner, clock), + : device_t(mconfig, RF5C68, "RF5C68", tag, owner, clock, "rf5c68", __FILE__), device_sound_interface(mconfig, *this), m_stream(NULL), m_cbank(0), diff --git a/src/emu/sound/s14001a.c b/src/emu/sound/s14001a.c index 288de465175..c56c487ddcc 100644 --- a/src/emu/sound/s14001a.c +++ b/src/emu/sound/s14001a.c @@ -636,7 +636,7 @@ void s14001a_set_volume(device_t *device, int volume) const device_type S14001A = &device_creator; s14001a_device::s14001a_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, S14001A, "S14001A", tag, owner, clock), + : device_t(mconfig, S14001A, "S14001A", tag, owner, clock, "s14001a", __FILE__), device_sound_interface(mconfig, *this) { m_token = global_alloc_clear(S14001AChip); diff --git a/src/emu/sound/s2636.c b/src/emu/sound/s2636.c index 3a8f882e401..39a3dc39bdc 100644 --- a/src/emu/sound/s2636.c +++ b/src/emu/sound/s2636.c @@ -84,7 +84,7 @@ static DEVICE_START(s2636_sound) const device_type S2636_SOUND = &device_creator; s2636_sound_device::s2636_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, S2636_SOUND, "S2636", tag, owner, clock), + : device_t(mconfig, S2636_SOUND, "S2636", tag, owner, clock, "s2636", __FILE__), device_sound_interface(mconfig, *this) { m_token = global_alloc_clear(s2636_sound); diff --git a/src/emu/sound/saa1099.c b/src/emu/sound/saa1099.c index 0e2b04c593c..23e924862e9 100644 --- a/src/emu/sound/saa1099.c +++ b/src/emu/sound/saa1099.c @@ -132,7 +132,7 @@ const device_type SAA1099 = &device_creator; //------------------------------------------------- saa1099_device::saa1099_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, SAA1099, "SAA1099", tag, owner, clock), + : device_t(mconfig, SAA1099, "SAA1099", tag, owner, clock, "saa1099", __FILE__), device_sound_interface(mconfig, *this), m_stream(NULL), m_all_ch_enable(0), diff --git a/src/emu/sound/samples.c b/src/emu/sound/samples.c index f933b3c6d44..319734e3f8c 100644 --- a/src/emu/sound/samples.c +++ b/src/emu/sound/samples.c @@ -75,7 +75,7 @@ const device_type SAMPLES = &device_creator; //------------------------------------------------- samples_device::samples_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, SAMPLES, "Samples", tag, owner, clock), + : device_t(mconfig, SAMPLES, "Samples", tag, owner, clock, "samples", __FILE__), device_sound_interface(mconfig, *this) { } diff --git a/src/emu/sound/scsp.c b/src/emu/sound/scsp.c index 41a463e7290..e455ef81bf9 100644 --- a/src/emu/sound/scsp.c +++ b/src/emu/sound/scsp.c @@ -1492,7 +1492,7 @@ READ16_DEVICE_HANDLER( scsp_midi_out_r ) const device_type SCSP = &device_creator; scsp_device::scsp_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, SCSP, "SCSP", tag, owner, clock), + : device_t(mconfig, SCSP, "SCSP", tag, owner, clock, "scsp", __FILE__), device_sound_interface(mconfig, *this) { m_token = global_alloc_clear(scsp_state); diff --git a/src/emu/sound/sn76477.c b/src/emu/sound/sn76477.c index 72ebfeec243..75343d700f9 100644 --- a/src/emu/sound/sn76477.c +++ b/src/emu/sound/sn76477.c @@ -2469,7 +2469,7 @@ static DEVICE_STOP( sn76477 ) const device_type SN76477 = &device_creator; sn76477_device::sn76477_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, SN76477, "SN76477", tag, owner, clock), + : device_t(mconfig, SN76477, "SN76477", tag, owner, clock, "sn76477", __FILE__), device_sound_interface(mconfig, *this) { m_token = global_alloc_clear(sn76477_state); diff --git a/src/emu/sound/sn76496.c b/src/emu/sound/sn76496.c index 6ae1cbb37d7..8ac32ae865a 100644 --- a/src/emu/sound/sn76496.c +++ b/src/emu/sound/sn76496.c @@ -125,9 +125,9 @@ sn76496_base_device::sn76496_base_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, int feedbackmask, int noisetap1, int noisetap2, bool negate, bool stereo, int clockdivider, int freq0, - device_t *owner, UINT32 clock) + device_t *owner, UINT32 clock, const char *shortname, const char *source) - : device_t(mconfig, type, name, tag, owner, clock), + : device_t(mconfig, type, name, tag, owner, clock, shortname, source), device_sound_interface(mconfig, *this), m_feedback_mask(feedbackmask), m_whitenoise_tap1(noisetap1), diff --git a/src/emu/sound/sn76496.h b/src/emu/sound/sn76496.h index a3645657e0a..9af66c3397c 100644 --- a/src/emu/sound/sn76496.h +++ b/src/emu/sound/sn76496.h @@ -25,7 +25,7 @@ class sn76496_base_device : public device_t, public device_sound_interface public: sn76496_base_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, int feedbackmask, int noisetap1, int noisetap2, bool negate, bool stereo, int clockdivider, int freq0, - device_t *owner, UINT32 clock); + device_t *owner, UINT32 clock, const char *shortname, const char *source); DECLARE_READ_LINE_MEMBER( ready_r ); DECLARE_WRITE8_MEMBER( stereo_w ); void write(UINT8 data); @@ -72,7 +72,7 @@ class sn76496_device : public sn76496_base_device { public: sn76496_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : sn76496_base_device(mconfig, SN76496, "SN76496", tag, 0x10000, 0x04, 0x08, false, false, 8, true, owner, clock) + : sn76496_base_device(mconfig, SN76496, "SN76496", tag, 0x10000, 0x04, 0x08, false, false, 8, true, owner, clock, "sn76496", __FILE__) { } }; @@ -81,7 +81,7 @@ class u8106_device : public sn76496_base_device { public: u8106_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : sn76496_base_device(mconfig, U8106, "U8106", tag, 0x4000, 0x01, 0x02, true, false, 8, true, owner, clock) + : sn76496_base_device(mconfig, U8106, "U8106", tag, 0x4000, 0x01, 0x02, true, false, 8, true, owner, clock, "u8106", __FILE__) { } }; @@ -90,7 +90,7 @@ class y2404_device : public sn76496_base_device { public: y2404_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : sn76496_base_device(mconfig, Y2404, "Y2404", tag, 0x10000, 0x04, 0x08, false, false, 8, true, owner, clock) + : sn76496_base_device(mconfig, Y2404, "Y2404", tag, 0x10000, 0x04, 0x08, false, false, 8, true, owner, clock, "y2404", __FILE__) { } }; @@ -99,7 +99,7 @@ class sn76489_device : public sn76496_base_device { public: sn76489_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : sn76496_base_device(mconfig, SN76489, "SN76489", tag, 0x4000, 0x01, 0x02, true, false, 8, true, owner, clock) + : sn76496_base_device(mconfig, SN76489, "SN76489", tag, 0x4000, 0x01, 0x02, true, false, 8, true, owner, clock, "sn76489", __FILE__) { } }; @@ -108,7 +108,7 @@ class sn76489a_device : public sn76496_base_device { public: sn76489a_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : sn76496_base_device(mconfig, SN76489A, "SN76489A", tag, 0x10000, 0x04, 0x08, false, false, 8, true, owner, clock) + : sn76496_base_device(mconfig, SN76489A, "SN76489A", tag, 0x10000, 0x04, 0x08, false, false, 8, true, owner, clock, "sn76489a", __FILE__) { } }; @@ -117,7 +117,7 @@ class sn76494_device : public sn76496_base_device { public: sn76494_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : sn76496_base_device(mconfig, SN76494, "SN76494", tag, 0x10000, 0x04, 0x08, false, false, 1, true, owner, clock) + : sn76496_base_device(mconfig, SN76494, "SN76494", tag, 0x10000, 0x04, 0x08, false, false, 1, true, owner, clock, "sn76494", __FILE__) { } }; @@ -126,7 +126,7 @@ class sn94624_device : public sn76496_base_device { public: sn94624_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : sn76496_base_device(mconfig, SN94624, "SN94624", tag, 0x4000, 0x01, 0x02, true, false, 1, true, owner, clock) + : sn76496_base_device(mconfig, SN94624, "SN94624", tag, 0x4000, 0x01, 0x02, true, false, 1, true, owner, clock, "sn94624", __FILE__) { } }; @@ -135,7 +135,7 @@ class ncr7496_device : public sn76496_base_device { public: ncr7496_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : sn76496_base_device(mconfig, NCR7496, "NCR7496", tag, 0x8000, 0x02, 0x20, false, false, 8, true, owner, clock) + : sn76496_base_device(mconfig, NCR7496, "NCR7496", tag, 0x8000, 0x02, 0x20, false, false, 8, true, owner, clock, "ncr7496", __FILE__) { } }; @@ -144,7 +144,7 @@ class gamegear_device : public sn76496_base_device { public: gamegear_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : sn76496_base_device(mconfig, GAMEGEAR, "Game Gear PSG", tag, 0x8000, 0x01, 0x08, true, true, 8, false, owner, clock) + : sn76496_base_device(mconfig, GAMEGEAR, "Game Gear PSG", tag, 0x8000, 0x01, 0x08, true, true, 8, false, owner, clock, "gamegear", __FILE__) { } }; @@ -153,7 +153,7 @@ class segapsg_device : public sn76496_base_device { public: segapsg_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : sn76496_base_device(mconfig, SEGAPSG, "SEGA VDP PSG", tag, 0x8000, 0x01, 0x08, true, false, 8, false, owner, clock) + : sn76496_base_device(mconfig, SEGAPSG, "SEGA VDP PSG", tag, 0x8000, 0x01, 0x08, true, false, 8, false, owner, clock, "segapsg", __FILE__) { } }; diff --git a/src/emu/sound/snkwave.c b/src/emu/sound/snkwave.c index 77de3381bcc..2d6011c7118 100644 --- a/src/emu/sound/snkwave.c +++ b/src/emu/sound/snkwave.c @@ -20,7 +20,7 @@ const device_type SNKWAVE = &device_creator; //------------------------------------------------- snkwave_device::snkwave_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, SNKWAVE, "SNK Wave", tag, owner, clock), + : device_t(mconfig, SNKWAVE, "SNK Wave", tag, owner, clock, "snkwave", __FILE__), device_sound_interface(mconfig, *this), m_stream(NULL), m_external_clock(0), diff --git a/src/emu/sound/sp0250.c b/src/emu/sound/sp0250.c index 9f9e250ab0a..302af40b215 100644 --- a/src/emu/sound/sp0250.c +++ b/src/emu/sound/sp0250.c @@ -240,7 +240,7 @@ UINT8 sp0250_drq_r(device_t *device) const device_type SP0250 = &device_creator; sp0250_device::sp0250_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, SP0250, "SP0250", tag, owner, clock), + : device_t(mconfig, SP0250, "SP0250", tag, owner, clock, "sp0250", __FILE__), device_sound_interface(mconfig, *this) { m_token = global_alloc_clear(sp0250_state); diff --git a/src/emu/sound/sp0256.c b/src/emu/sound/sp0256.c index 7fc7a95e705..dfcfeaae7c1 100644 --- a/src/emu/sound/sp0256.c +++ b/src/emu/sound/sp0256.c @@ -94,7 +94,7 @@ const device_type SP0256 = &device_creator; //************************************************************************** sp0256_device::sp0256_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, SP0256, "SP0256", tag, owner, clock), + : device_t(mconfig, SP0256, "SP0256", tag, owner, clock, "sp0256", __FILE__), device_sound_interface(mconfig, *this) { } diff --git a/src/emu/sound/speaker.c b/src/emu/sound/speaker.c index 146843687ad..82bdda0ae28 100644 --- a/src/emu/sound/speaker.c +++ b/src/emu/sound/speaker.c @@ -82,7 +82,7 @@ static const int RATE_MULTIPLIER = 4; const device_type SPEAKER_SOUND = &device_creator; speaker_sound_device::speaker_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, SPEAKER_SOUND, "Filtered 1-bit DAC", tag, owner, clock), + : device_t(mconfig, SPEAKER_SOUND, "Filtered 1-bit DAC", tag, owner, clock, "speaker", __FILE__), device_sound_interface(mconfig, *this) { } diff --git a/src/emu/sound/spu.c b/src/emu/sound/spu.c index f7cfa4d0a2e..64f14d1d341 100644 --- a/src/emu/sound/spu.c +++ b/src/emu/sound/spu.c @@ -954,7 +954,7 @@ static int shift_register15(int &shift) //------------------------------------------------- spu_device::spu_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : - device_t(mconfig, SPU, "SPU", tag, owner, clock), + device_t(mconfig, SPU, "SPU", tag, owner, clock, "spu", __FILE__), device_sound_interface(mconfig, *this), m_irq_handler(*this), dirty_flags(-1), diff --git a/src/emu/sound/st0016.c b/src/emu/sound/st0016.c index e7283d3a937..003ad3020c0 100644 --- a/src/emu/sound/st0016.c +++ b/src/emu/sound/st0016.c @@ -23,7 +23,7 @@ const device_type ST0016 = &device_creator; //------------------------------------------------- st0016_device::st0016_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, ST0016, "ST0016", tag, owner, clock), + : device_t(mconfig, ST0016, "ST0016", tag, owner, clock, "st0016", __FILE__), device_sound_interface(mconfig, *this), m_stream(NULL), m_sound_ram(NULL) diff --git a/src/emu/sound/t6721a.c b/src/emu/sound/t6721a.c index 4da54fca736..f63fe558942 100644 --- a/src/emu/sound/t6721a.c +++ b/src/emu/sound/t6721a.c @@ -37,7 +37,7 @@ const device_type T6721A = &device_creator; //------------------------------------------------- t6721a_device::t6721a_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, T6721A, "T6721A", tag, owner, clock), + : device_t(mconfig, T6721A, "T6721A", tag, owner, clock, "t6721a", __FILE__), device_sound_interface(mconfig, *this), m_eos_handler(*this), m_dtrd_handler(*this), diff --git a/src/emu/sound/t6w28.c b/src/emu/sound/t6w28.c index b0ace77119f..7ed58e09669 100644 --- a/src/emu/sound/t6w28.c +++ b/src/emu/sound/t6w28.c @@ -348,7 +348,7 @@ void t6w28_device::set_enable(bool enable) const device_type T6W28 = &device_creator; t6w28_device::t6w28_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, T6W28, "T6W28", tag, owner, clock), + : device_t(mconfig, T6W28, "T6W28", tag, owner, clock, "t6w28", __FILE__), device_sound_interface(mconfig, *this) { } diff --git a/src/emu/sound/tc8830f.c b/src/emu/sound/tc8830f.c index 8a39f30fdfd..a8df32b2665 100644 --- a/src/emu/sound/tc8830f.c +++ b/src/emu/sound/tc8830f.c @@ -23,7 +23,7 @@ const device_type TC8830F = &device_creator; tc8830f_device::tc8830f_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, TC8830F, "TC8830F", tag, owner, clock), + : device_t(mconfig, TC8830F, "TC8830F", tag, owner, clock, "tc8830f", __FILE__), device_sound_interface(mconfig, *this) { } diff --git a/src/emu/sound/tiaintf.c b/src/emu/sound/tiaintf.c index ccc9abee31b..64285ff10b5 100644 --- a/src/emu/sound/tiaintf.c +++ b/src/emu/sound/tiaintf.c @@ -15,7 +15,7 @@ const device_type TIA = &device_creator; //------------------------------------------------- tia_device::tia_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, TIA, "TIA", tag, owner, clock), + : device_t(mconfig, TIA, "TIA", tag, owner, clock, "tia_sound", __FILE__), device_sound_interface(mconfig, *this), m_channel(NULL), m_chip(NULL) diff --git a/src/emu/sound/tms3615.c b/src/emu/sound/tms3615.c index 5a32a33e94d..d1a6ddb7d2e 100644 --- a/src/emu/sound/tms3615.c +++ b/src/emu/sound/tms3615.c @@ -20,7 +20,7 @@ const device_type TMS3615 = &device_creator; //------------------------------------------------- tms3615_device::tms3615_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, TMS3615, "TMS3615", tag, owner, clock), + : device_t(mconfig, TMS3615, "TMS3615", tag, owner, clock, "tms3615", __FILE__), device_sound_interface(mconfig, *this), m_channel(0), m_samplerate(0), diff --git a/src/emu/sound/tms36xx.c b/src/emu/sound/tms36xx.c index 303d627cad6..dcf728b59f8 100644 --- a/src/emu/sound/tms36xx.c +++ b/src/emu/sound/tms36xx.c @@ -322,7 +322,7 @@ const device_type TMS36XX = &device_creator; //------------------------------------------------- tms36xx_device::tms36xx_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, TMS36XX, "TMS36XX", tag, owner, clock), + : device_t(mconfig, TMS36XX, "TMS36XX", tag, owner, clock, "tms36xx", __FILE__), device_sound_interface(mconfig, *this), m_subtype(NULL), m_channel(NULL), diff --git a/src/emu/sound/tms5110.c b/src/emu/sound/tms5110.c index abb60a21d61..62dcbb0e9f0 100644 --- a/src/emu/sound/tms5110.c +++ b/src/emu/sound/tms5110.c @@ -1362,13 +1362,13 @@ WRITE_LINE_MEMBER( tmsprom_device::enable_w ) const device_type TMS5110 = &device_creator; tms5110_device::tms5110_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, TMS5110, "TMS5110", tag, owner, clock), + : device_t(mconfig, TMS5110, "TMS5110", tag, owner, clock, "tms5110", __FILE__), device_sound_interface(mconfig, *this) { } -tms5110_device::tms5110_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, type, name, tag, owner, clock), +tms5110_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) + : device_t(mconfig, type, name, tag, owner, clock, shortname, source), device_sound_interface(mconfig, *this) { } @@ -1387,7 +1387,7 @@ const device_type TMS5100 = &device_creator; tms5100_device::tms5100_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : tms5110_device(mconfig, TMS5100, "TMS5100", tag, owner, clock) + : tms5110_device(mconfig, TMS5100, "TMS5100", tag, owner, clock, "tms5100", __FILE__) { } @@ -1395,7 +1395,7 @@ tms5100_device::tms5100_device(const machine_config &mconfig, const char *tag, d const device_type TMS5110A = &device_creator; tms5110a_device::tms5110a_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : tms5110_device(mconfig, TMS5110A, "TMS5110A", tag, owner, clock) + : tms5110_device(mconfig, TMS5110A, "TMS5110A", tag, owner, clock, "tms5110a", __FILE__) { } @@ -1403,7 +1403,7 @@ tms5110a_device::tms5110a_device(const machine_config &mconfig, const char *tag, const device_type CD2801 = &device_creator; cd2801_device::cd2801_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : tms5110_device(mconfig, CD2801, "CD2801", tag, owner, clock) + : tms5110_device(mconfig, CD2801, "CD2801", tag, owner, clock, "cd2801", __FILE__) { } @@ -1411,7 +1411,7 @@ cd2801_device::cd2801_device(const machine_config &mconfig, const char *tag, dev const device_type TMC0281 = &device_creator; tmc0281_device::tmc0281_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : tms5110_device(mconfig, TMC0281, "TMC0281", tag, owner, clock) + : tms5110_device(mconfig, TMC0281, "TMC0281", tag, owner, clock, "tmc0281", __FILE__) { } @@ -1419,7 +1419,7 @@ tmc0281_device::tmc0281_device(const machine_config &mconfig, const char *tag, d const device_type CD2802 = &device_creator; cd2802_device::cd2802_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : tms5110_device(mconfig, CD2802, "CD2802", tag, owner, clock) + : tms5110_device(mconfig, CD2802, "CD2802", tag, owner, clock, "cd2802", __FILE__) { } @@ -1427,7 +1427,7 @@ cd2802_device::cd2802_device(const machine_config &mconfig, const char *tag, dev const device_type M58817 = &device_creator; m58817_device::m58817_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : tms5110_device(mconfig, M58817, "M58817", tag, owner, clock) + : tms5110_device(mconfig, M58817, "M58817", tag, owner, clock, "m58817", __FILE__) { } @@ -1435,7 +1435,7 @@ m58817_device::m58817_device(const machine_config &mconfig, const char *tag, dev const device_type TMSPROM = &device_creator; tmsprom_device::tmsprom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, TMSPROM, "TMSPROM", tag, owner, clock) + : device_t(mconfig, TMSPROM, "TMSPROM", tag, owner, clock, "tmsprom", __FILE__) { } diff --git a/src/emu/sound/tms5110.h b/src/emu/sound/tms5110.h index d06578e6763..228eab71e3d 100644 --- a/src/emu/sound/tms5110.h +++ b/src/emu/sound/tms5110.h @@ -45,7 +45,7 @@ class tms5110_device : public device_t, { public: tms5110_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); - tms5110_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); + 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); DECLARE_WRITE8_MEMBER( ctl_w ); DECLARE_READ8_MEMBER( ctl_r ); diff --git a/src/emu/sound/tms5220.c b/src/emu/sound/tms5220.c index 15253e7b2a1..4b94ddd9c25 100644 --- a/src/emu/sound/tms5220.c +++ b/src/emu/sound/tms5220.c @@ -1826,7 +1826,7 @@ void tms5220_device::set_frequency(int frequency) const device_type TMS5220C = &device_creator; tms5220c_device::tms5220c_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : tms5220_device(mconfig, TMS5220C, "TMS5220C", tag, owner, clock) + : tms5220_device(mconfig, TMS5220C, "TMS5220C", tag, owner, clock, "tms5220c", __FILE__) { } @@ -1834,7 +1834,7 @@ tms5220c_device::tms5220c_device(const machine_config &mconfig, const char *tag, const device_type TMS5220 = &device_creator; tms5220_device::tms5220_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, TMS5220, "TMS5220", tag, owner, clock), + : device_t(mconfig, TMS5220, "TMS5220", tag, owner, clock, "tms5220", __FILE__), device_sound_interface(mconfig, *this), m_irq_handler(*this), m_readyq_handler(*this), @@ -1842,8 +1842,8 @@ tms5220_device::tms5220_device(const machine_config &mconfig, const char *tag, d { } -tms5220_device::tms5220_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, type, name, tag, owner, clock), +tms5220_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) + : device_t(mconfig, type, name, tag, owner, clock, shortname, source), device_sound_interface(mconfig, *this), m_irq_handler(*this), m_readyq_handler(*this), @@ -1865,7 +1865,7 @@ void tms5220_device::device_config_complete() const device_type TMC0285 = &device_creator; tmc0285_device::tmc0285_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : tms5220_device(mconfig, TMC0285, "TMC0285", tag, owner, clock) + : tms5220_device(mconfig, TMC0285, "TMC0285", tag, owner, clock, "tmc0285", __FILE__) { } @@ -1873,6 +1873,6 @@ tmc0285_device::tmc0285_device(const machine_config &mconfig, const char *tag, d const device_type TMS5200 = &device_creator; tms5200_device::tms5200_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : tms5220_device(mconfig, TMS5200, "TMS5200", tag, owner, clock) + : tms5220_device(mconfig, TMS5200, "TMS5200", tag, owner, clock, "tms5200", __FILE__) { } diff --git a/src/emu/sound/tms5220.h b/src/emu/sound/tms5220.h index 4979d284d08..e761748f1ca 100644 --- a/src/emu/sound/tms5220.h +++ b/src/emu/sound/tms5220.h @@ -31,7 +31,7 @@ class tms5220_device : public device_t, { public: tms5220_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); - tms5220_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); + 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); // static configuration helpers template static devcb2_base &set_irq_handler(device_t &device, _Object object) { return downcast(device).m_irq_handler.set_callback(object); } diff --git a/src/emu/sound/upd7759.c b/src/emu/sound/upd7759.c index 0db1b6c658a..751d43d420f 100644 --- a/src/emu/sound/upd7759.c +++ b/src/emu/sound/upd7759.c @@ -788,13 +788,13 @@ void upd7759_set_bank_base(device_t *device, UINT32 base) const device_type UPD7759 = &device_creator; upd7759_device::upd7759_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, UPD7759, "uPD7759", tag, owner, clock), + : device_t(mconfig, UPD7759, "uPD7759", tag, owner, clock, "upd7759", __FILE__), device_sound_interface(mconfig, *this) { m_token = global_alloc_clear(upd7759_state); } -upd7759_device::upd7759_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, type, name, tag, owner, clock), +upd7759_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) + : device_t(mconfig, type, name, tag, owner, clock, shortname, source), device_sound_interface(mconfig, *this) { m_token = global_alloc_clear(upd7759_state); @@ -842,7 +842,7 @@ void upd7759_device::sound_stream_update(sound_stream &stream, stream_sample_t * const device_type UPD7756 = &device_creator; upd7756_device::upd7756_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : upd7759_device(mconfig, UPD7756, "uPD7756", tag, owner, clock) + : upd7759_device(mconfig, UPD7756, "uPD7756", tag, owner, clock, "upd7756", __FILE__) { } diff --git a/src/emu/sound/upd7759.h b/src/emu/sound/upd7759.h index dd292e1a596..1584b05e576 100644 --- a/src/emu/sound/upd7759.h +++ b/src/emu/sound/upd7759.h @@ -32,7 +32,7 @@ class upd7759_device : public device_t, { public: upd7759_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); - upd7759_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); + 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); ~upd7759_device() { global_free(m_token); } // access to legacy token diff --git a/src/emu/sound/vlm5030.c b/src/emu/sound/vlm5030.c index 455c6f8d022..de72ecc62a9 100644 --- a/src/emu/sound/vlm5030.c +++ b/src/emu/sound/vlm5030.c @@ -690,7 +690,7 @@ static DEVICE_START( vlm5030 ) const device_type VLM5030 = &device_creator; vlm5030_device::vlm5030_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, VLM5030, "VLM5030", tag, owner, clock), + : device_t(mconfig, VLM5030, "VLM5030", tag, owner, clock, "vlm5030", __FILE__), device_sound_interface(mconfig, *this) { m_token = global_alloc_clear(vlm5030_state); diff --git a/src/emu/sound/vrender0.c b/src/emu/sound/vrender0.c index 29da5ac63b3..a9662a94a22 100644 --- a/src/emu/sound/vrender0.c +++ b/src/emu/sound/vrender0.c @@ -82,7 +82,7 @@ const device_type VRENDER0 = &device_creator; //------------------------------------------------- vrender0_device::vrender0_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, VRENDER0, "VRender0", tag, owner, clock), + : device_t(mconfig, VRENDER0, "VRender0", tag, owner, clock, "vrender0", __FILE__), device_sound_interface(mconfig, *this), m_TexBase(NULL), m_FBBase(NULL), diff --git a/src/emu/sound/wave.c b/src/emu/sound/wave.c index f8a029aea40..16fffef67b6 100644 --- a/src/emu/sound/wave.c +++ b/src/emu/sound/wave.c @@ -85,7 +85,7 @@ static DEVICE_START( wave ) const device_type WAVE = &device_creator; wave_device::wave_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, WAVE, "Cassette", tag, owner, clock), + : device_t(mconfig, WAVE, "Cassette", tag, owner, clock, "wawe", __FILE__), device_sound_interface(mconfig, *this) { } diff --git a/src/emu/sound/x1_010.c b/src/emu/sound/x1_010.c index 29d6b27d26f..893dd1fcdac 100644 --- a/src/emu/sound/x1_010.c +++ b/src/emu/sound/x1_010.c @@ -286,7 +286,7 @@ WRITE16_DEVICE_HANDLER( seta_sound_word_w ) const device_type X1_010 = &device_creator; x1_010_device::x1_010_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, X1_010, "X1-010", tag, owner, clock), + : device_t(mconfig, X1_010, "X1-010", tag, owner, clock, "x1_010", __FILE__), device_sound_interface(mconfig, *this) { m_token = global_alloc_clear(x1_010_state); diff --git a/src/emu/sound/ymf271.c b/src/emu/sound/ymf271.c index 2c32a50b7ad..2031c607e74 100644 --- a/src/emu/sound/ymf271.c +++ b/src/emu/sound/ymf271.c @@ -1753,7 +1753,7 @@ void ymf271_device::device_reset() const device_type YMF271 = &device_creator; ymf271_device::ymf271_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, YMF271, "YMF271", tag, owner, clock), + : device_t(mconfig, YMF271, "YMF271", tag, owner, clock, "ymf271", __FILE__), device_sound_interface(mconfig, *this), m_timerA(0), m_timerB(0), diff --git a/src/emu/sound/ymf278b.c b/src/emu/sound/ymf278b.c index c24a9db4683..b4c67ba03ab 100644 --- a/src/emu/sound/ymf278b.c +++ b/src/emu/sound/ymf278b.c @@ -1002,7 +1002,7 @@ void ymf278b_device::device_start() const device_type YMF278B = &device_creator; ymf278b_device::ymf278b_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, YMF278B, "YMF278B", tag, owner, clock), + : device_t(mconfig, YMF278B, "YMF278B", tag, owner, clock, "ymf278b", __FILE__), device_sound_interface(mconfig, *this), m_irq_handler(*this) { diff --git a/src/emu/sound/ymz280b.c b/src/emu/sound/ymz280b.c index 2edc86b200e..015bcdaa7ed 100644 --- a/src/emu/sound/ymz280b.c +++ b/src/emu/sound/ymz280b.c @@ -941,7 +941,7 @@ WRITE8_MEMBER( ymz280b_device::write ) const device_type YMZ280B = &device_creator; ymz280b_device::ymz280b_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, YMZ280B, "YMZ280B", tag, owner, clock), + : device_t(mconfig, YMZ280B, "YMZ280B", tag, owner, clock, "ymz280b", __FILE__), device_sound_interface(mconfig, *this), m_current_register(0), m_status_register(0), diff --git a/src/emu/sound/ymz770.c b/src/emu/sound/ymz770.c index 135b8d6b780..625e2a79e93 100644 --- a/src/emu/sound/ymz770.c +++ b/src/emu/sound/ymz770.c @@ -19,7 +19,7 @@ const device_type YMZ770 = &device_creator; //------------------------------------------------- ymz770_device::ymz770_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, YMZ770, "Yamaha YMZ770", tag, owner, clock), + : device_t(mconfig, YMZ770, "Yamaha YMZ770", tag, owner, clock, "ymz770", __FILE__), device_sound_interface(mconfig, *this) { } diff --git a/src/emu/sound/zsg2.c b/src/emu/sound/zsg2.c index 1bac9113c23..935add58353 100644 --- a/src/emu/sound/zsg2.c +++ b/src/emu/sound/zsg2.c @@ -60,7 +60,7 @@ const device_type ZSG2 = &device_creator; //------------------------------------------------- zsg2_device::zsg2_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, ZSG2, "ZSG-2", tag, owner, clock), + : device_t(mconfig, ZSG2, "ZSG-2", tag, owner, clock, "zsg2", __FILE__), device_sound_interface(mconfig, *this), m_alow(0), m_ahigh(0), diff --git a/src/emu/sprite.h b/src/emu/sprite.h index 43d7f1755c4..9abb8e5b9e5 100644 --- a/src/emu/sprite.h +++ b/src/emu/sprite.h @@ -114,7 +114,7 @@ class sprite_device : public device_t protected: // construction/destruction - only for subclasses sprite_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, int dirty_granularity = 3) - : device_t(mconfig, type, name, tag, owner, 0), + : device_t(mconfig, type, name, tag, owner, 0, "sprite", __FILE__), m_xorigin(0), m_yorigin(0), m_spriteram(NULL), diff --git a/src/emu/video/bufsprite.h b/src/emu/video/bufsprite.h index 7c94ec3bba4..2f0377304b6 100644 --- a/src/emu/video/bufsprite.h +++ b/src/emu/video/bufsprite.h @@ -83,7 +83,7 @@ class buffered_spriteram_device : public device_t public: // construction buffered_spriteram_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, type, "Buffered Sprite RAM", tag, owner, clock), + : device_t(mconfig, type, "Buffered Sprite RAM", tag, owner, clock, "buffered_spriteram", __FILE__), m_spriteram(*owner, tag) { } // getters diff --git a/src/mame/audio/amiga.c b/src/mame/audio/amiga.c index c8868757d8d..ebaa22b849f 100644 --- a/src/mame/audio/amiga.c +++ b/src/mame/audio/amiga.c @@ -280,7 +280,7 @@ static DEVICE_START( amiga_sound ) const device_type AMIGA = &device_creator; amiga_sound_device::amiga_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, AMIGA, "Amiga Paula", tag, owner, clock), + : device_t(mconfig, AMIGA, "Amiga Paula", tag, owner, clock, "amiga_paula", __FILE__), device_sound_interface(mconfig, *this) { m_token = global_alloc_clear(amiga_audio); diff --git a/src/mame/audio/beezer.c b/src/mame/audio/beezer.c index 32703e1b30d..c962f99aac7 100644 --- a/src/mame/audio/beezer.c +++ b/src/mame/audio/beezer.c @@ -397,7 +397,7 @@ static DEVICE_START( beezer_sound ) const device_type BEEZER = &device_creator; beezer_sound_device::beezer_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, BEEZER, "beezer SFX", tag, owner, clock), + : device_t(mconfig, BEEZER, "beezer SFX", tag, owner, clock, "beezer_sound", __FILE__), device_sound_interface(mconfig, *this) { m_token = global_alloc_clear(beezer_sound_state); diff --git a/src/mame/audio/cps3.c b/src/mame/audio/cps3.c index 42d07819bb8..04413296742 100644 --- a/src/mame/audio/cps3.c +++ b/src/mame/audio/cps3.c @@ -20,7 +20,7 @@ const device_type CPS3 = &device_creator; //------------------------------------------------- cps3_sound_device::cps3_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, CPS3, "CPS3 Custom", tag, owner, clock), + : device_t(mconfig, CPS3, "CPS3 Custom", tag, owner, clock, "cps3_custom", __FILE__), device_sound_interface(mconfig, *this), m_stream(NULL), m_key(0), diff --git a/src/mame/audio/decobsmt.c b/src/mame/audio/decobsmt.c index c5673bb7024..df41493f47b 100644 --- a/src/mame/audio/decobsmt.c +++ b/src/mame/audio/decobsmt.c @@ -77,7 +77,7 @@ machine_config_constructor decobsmt_device::device_mconfig_additions() const //------------------------------------------------- decobsmt_device::decobsmt_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : - device_t(mconfig, DECOBSMT, "Data East/Sega/Stern BSMT2000 Sound Board", tag, owner, clock), + device_t(mconfig, DECOBSMT, "Data East/Sega/Stern BSMT2000 Sound Board", tag, owner, clock, "decobsmt", __FILE__), m_ourcpu(*this, M6809_TAG), m_bsmt(*this, BSMT_TAG) { diff --git a/src/mame/audio/dsbz80.c b/src/mame/audio/dsbz80.c index 58130ca9c2d..51b5e8201a1 100644 --- a/src/mame/audio/dsbz80.c +++ b/src/mame/audio/dsbz80.c @@ -61,7 +61,7 @@ machine_config_constructor dsbz80_device::device_mconfig_additions() const //------------------------------------------------- dsbz80_device::dsbz80_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : - device_t(mconfig, DSBZ80, "Sega Z80-based Digital Sound Board", tag, owner, clock), + device_t(mconfig, DSBZ80, "Sega Z80-based Digital Sound Board", tag, owner, clock, "dsbz80", __FILE__), device_sound_interface(mconfig, *this), m_ourcpu(*this, Z80_TAG) { diff --git a/src/mame/audio/exidy.c b/src/mame/audio/exidy.c index 4f6d8c708d3..9dcb93ec8b2 100644 --- a/src/mame/audio/exidy.c +++ b/src/mame/audio/exidy.c @@ -421,14 +421,14 @@ static DEVICE_START( exidy_sound ) const device_type EXIDY = &device_creator; exidy_sound_device::exidy_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, EXIDY, "Exidy SFX", tag, owner, clock), + : device_t(mconfig, EXIDY, "Exidy SFX", tag, owner, clock, "exidy_sfx", __FILE__), device_sound_interface(mconfig, *this) { m_token = global_alloc_clear(exidy_sound_state); } -exidy_sound_device::exidy_sound_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, type, name, tag, owner, clock), +exidy_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) + : device_t(mconfig, type, name, tag, owner, clock, shortname, source), device_sound_interface(mconfig, *this) { m_token = global_alloc_clear(exidy_sound_state); @@ -887,7 +887,7 @@ static DEVICE_RESET( venture_sound ) const device_type EXIDY_VENTURE = &device_creator; venture_sound_device::venture_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : exidy_sound_device(mconfig, EXIDY_VENTURE, "Exidy SFX+PSG", tag, owner, clock) + : exidy_sound_device(mconfig, EXIDY_VENTURE, "Exidy SFX+PSG", tag, owner, clock, "venture_sound", __FILE__) { } @@ -1154,7 +1154,7 @@ static DEVICE_RESET( victory_sound ) const device_type EXIDY_VICTORY = &device_creator; victory_sound_device::victory_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : exidy_sound_device(mconfig, EXIDY_VICTORY, "Exidy SFX+PSG+Speech", tag, owner, clock) + : exidy_sound_device(mconfig, EXIDY_VICTORY, "Exidy SFX+PSG+Speech", tag, owner, clock, "victory_sound", __FILE__) { } diff --git a/src/mame/audio/exidy.h b/src/mame/audio/exidy.h index 2631f97112b..f43fe75b74d 100644 --- a/src/mame/audio/exidy.h +++ b/src/mame/audio/exidy.h @@ -3,7 +3,7 @@ class exidy_sound_device : public device_t, { public: exidy_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); - exidy_sound_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); + 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); ~exidy_sound_device() { global_free(m_token); } // access to legacy token diff --git a/src/mame/audio/exidy440.c b/src/mame/audio/exidy440.c index d17ebd94abf..6b100a71d1b 100644 --- a/src/mame/audio/exidy440.c +++ b/src/mame/audio/exidy440.c @@ -992,7 +992,7 @@ ADDRESS_MAP_END const device_type EXIDY440 = &device_creator; exidy440_sound_device::exidy440_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, EXIDY440, "Exidy 440 CVSD", tag, owner, clock), + : device_t(mconfig, EXIDY440, "Exidy 440 CVSD", tag, owner, clock, "exidy440_sound", __FILE__), device_sound_interface(mconfig, *this) { m_token = global_alloc_clear(exidy440_audio_state); diff --git a/src/mame/audio/flower.c b/src/mame/audio/flower.c index b8959469385..c09f11f9c5c 100644 --- a/src/mame/audio/flower.c +++ b/src/mame/audio/flower.c @@ -22,7 +22,7 @@ TODO: const device_type FLOWER = &device_creator; flower_sound_device::flower_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, FLOWER, "Flower Custom Sound", tag, owner, clock), + : device_t(mconfig, FLOWER, "Flower Custom Sound", tag, owner, clock, "flower_sound", __FILE__), device_sound_interface(mconfig, *this) { } diff --git a/src/mame/audio/geebee.c b/src/mame/audio/geebee.c index 0baca804bf0..6087308292a 100644 --- a/src/mame/audio/geebee.c +++ b/src/mame/audio/geebee.c @@ -14,7 +14,7 @@ const device_type GEEBEE = &device_creator; geebee_sound_device::geebee_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, GEEBEE, "Gee Bee Custom", tag, owner, clock), + : device_t(mconfig, GEEBEE, "Gee Bee Custom", tag, owner, clock, "geebee_sound", __FILE__), device_sound_interface(mconfig, *this), m_decay(NULL), m_channel(NULL), diff --git a/src/mame/audio/gomoku.c b/src/mame/audio/gomoku.c index e57467cd2c8..22cf2dd819b 100644 --- a/src/mame/audio/gomoku.c +++ b/src/mame/audio/gomoku.c @@ -26,7 +26,7 @@ const device_type GOMOKU = &device_creator; //------------------------------------------------- gomoku_sound_device::gomoku_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, GOMOKU, "Gomoku Custom", tag, owner, clock), + : device_t(mconfig, GOMOKU, "Gomoku Custom", tag, owner, clock, "gomoku_sound", __FILE__), device_sound_interface(mconfig, *this), m_last_channel(NULL), m_sound_rom(NULL), diff --git a/src/mame/audio/gridlee.c b/src/mame/audio/gridlee.c index 2cfb0b634cf..dfe0db1c937 100644 --- a/src/mame/audio/gridlee.c +++ b/src/mame/audio/gridlee.c @@ -21,7 +21,7 @@ const device_type GRIDLEE = &device_creator; //------------------------------------------------- gridlee_sound_device::gridlee_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, GRIDLEE, "Gridlee Custom", tag, owner, clock), + : device_t(mconfig, GRIDLEE, "Gridlee Custom", tag, owner, clock, "gridlee_sound", __FILE__), device_sound_interface(mconfig, *this), m_tone_step(0), m_tone_fraction(0), diff --git a/src/mame/audio/hyprolyb.c b/src/mame/audio/hyprolyb.c index b2d4812c7be..9981b7ffbb1 100644 --- a/src/mame/audio/hyprolyb.c +++ b/src/mame/audio/hyprolyb.c @@ -138,7 +138,7 @@ MACHINE_CONFIG_END const device_type HYPROLYB_ADPCM = &device_creator; hyprolyb_adpcm_device::hyprolyb_adpcm_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, HYPROLYB_ADPCM, "Hyper Olympics Audio", tag, owner, clock), + : device_t(mconfig, HYPROLYB_ADPCM, "Hyper Olympics Audio", tag, owner, clock, "hyprolyb_adpcm", __FILE__), device_sound_interface(mconfig, *this) { m_token = global_alloc_clear(hyprolyb_adpcm_state); diff --git a/src/mame/audio/irem.c b/src/mame/audio/irem.c index 4905e9d917e..5ed81dc2aa5 100644 --- a/src/mame/audio/irem.c +++ b/src/mame/audio/irem.c @@ -488,7 +488,7 @@ MACHINE_CONFIG_END const device_type IREM_AUDIO = &device_creator; irem_audio_device::irem_audio_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, IREM_AUDIO, "Irem Audio", tag, owner, clock), + : device_t(mconfig, IREM_AUDIO, "Irem Audio", tag, owner, clock, "irem_audio", __FILE__), device_sound_interface(mconfig, *this) { m_token = global_alloc_clear(irem_audio_state); diff --git a/src/mame/audio/leland.c b/src/mame/audio/leland.c index 7a6ebbe476c..83b1f26736a 100644 --- a/src/mame/audio/leland.c +++ b/src/mame/audio/leland.c @@ -573,14 +573,14 @@ static DEVICE_START( redline_80186_sound ) const device_type LELAND = &device_creator; leland_sound_device::leland_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, LELAND, "Leland DAC", tag, owner, clock), + : device_t(mconfig, LELAND, "Leland DAC", tag, owner, clock, "leland_dac", __FILE__), device_sound_interface(mconfig, *this) { m_token = global_alloc_clear(leland_sound_state); } -leland_sound_device::leland_sound_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, type, name, tag, owner, clock), +leland_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) + : device_t(mconfig, type, name, tag, owner, clock, shortname, source), device_sound_interface(mconfig, *this) { m_token = global_alloc_clear(leland_sound_state); @@ -619,12 +619,12 @@ void leland_sound_device::sound_stream_update(sound_stream &stream, stream_sampl const device_type LELAND_80186 = &device_creator; leland_80186_sound_device::leland_80186_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : leland_sound_device(mconfig, LELAND_80186, "Leland 80186 DAC", tag, owner, clock) + : leland_sound_device(mconfig, LELAND_80186, "Leland 80186 DAC", tag, owner, clock, "leland_80186_sound", __FILE__) { } -leland_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) - : leland_sound_device(mconfig, type, name, tag, owner, clock) +leland_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) + : leland_sound_device(mconfig, type, name, tag, owner, clock, shortname, source) { } @@ -671,7 +671,7 @@ void leland_80186_sound_device::sound_stream_update(sound_stream &stream, stream const device_type REDLINE_80186 = &device_creator; redline_80186_sound_device::redline_80186_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : leland_80186_sound_device(mconfig, REDLINE_80186, "Redline Racer 80186 DAC", tag, owner, clock) + : leland_80186_sound_device(mconfig, REDLINE_80186, "Redline Racer 80186 DAC", tag, owner, clock, "redline_80186_sound", __FILE__) { } diff --git a/src/mame/audio/m72.c b/src/mame/audio/m72.c index b22972bf7af..71e8e16b014 100644 --- a/src/mame/audio/m72.c +++ b/src/mame/audio/m72.c @@ -256,7 +256,7 @@ WRITE8_DEVICE_HANDLER( m72_sample_w ) const device_type M72 = &device_creator; m72_audio_device::m72_audio_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, M72, "M72 Custom", tag, owner, clock), + : device_t(mconfig, M72, "M72 Custom", tag, owner, clock, "m72_audio", __FILE__), device_sound_interface(mconfig, *this) { m_token = global_alloc_clear(m72_audio_state); diff --git a/src/mame/audio/micro3d.c b/src/mame/audio/micro3d.c index 8c5994151c1..5e78f6c38cd 100644 --- a/src/mame/audio/micro3d.c +++ b/src/mame/audio/micro3d.c @@ -405,7 +405,7 @@ WRITE8_MEMBER(micro3d_state::micro3d_upd7759_w) const device_type MICRO3D = &device_creator; micro3d_sound_device::micro3d_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, MICRO3D, "Microprose Custom", tag, owner, clock), + : device_t(mconfig, MICRO3D, "Microprose Custom", tag, owner, clock, "micro3d_sound", __FILE__), device_sound_interface(mconfig, *this) { m_token = global_alloc_clear(noise_state); diff --git a/src/mame/audio/phoenix.c b/src/mame/audio/phoenix.c index e86257b1abe..fed97a142a5 100644 --- a/src/mame/audio/phoenix.c +++ b/src/mame/audio/phoenix.c @@ -573,7 +573,7 @@ static DEVICE_START( phoenix_sound ) const device_type PHOENIX = &device_creator; phoenix_sound_device::phoenix_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, PHOENIX, "Phoenix Custom", tag, owner, clock), + : device_t(mconfig, PHOENIX, "Phoenix Custom", tag, owner, clock, "phoenix_sound", __FILE__), device_sound_interface(mconfig, *this) { m_token = global_alloc_clear(phoenix_sound_state); diff --git a/src/mame/audio/pleiads.c b/src/mame/audio/pleiads.c index e28097a0abf..6fba1ae10a7 100644 --- a/src/mame/audio/pleiads.c +++ b/src/mame/audio/pleiads.c @@ -682,14 +682,14 @@ static DEVICE_START( popflame_sound ) const device_type PLEIADS = &device_creator; pleiads_sound_device::pleiads_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, PLEIADS, "Pleiads Custom", tag, owner, clock), + : device_t(mconfig, PLEIADS, "Pleiads Custom", tag, owner, clock, "pleiads_sound", __FILE__), device_sound_interface(mconfig, *this) { m_token = global_alloc_clear(pleiads_sound_state); } -pleiads_sound_device::pleiads_sound_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, type, name, tag, owner, clock), +pleiads_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) + : device_t(mconfig, type, name, tag, owner, clock, shortname, source), device_sound_interface(mconfig, *this) { m_token = global_alloc_clear(pleiads_sound_state); @@ -728,7 +728,7 @@ void pleiads_sound_device::sound_stream_update(sound_stream &stream, stream_samp const device_type NAUGHTYB = &device_creator; naughtyb_sound_device::naughtyb_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : pleiads_sound_device(mconfig, NAUGHTYB, "Naughty Boy Custom", tag, owner, clock) + : pleiads_sound_device(mconfig, NAUGHTYB, "Naughty Boy Custom", tag, owner, clock, "naughtyb_sound", __FILE__) { } @@ -765,7 +765,7 @@ void naughtyb_sound_device::sound_stream_update(sound_stream &stream, stream_sam const device_type POPFLAME = &device_creator; popflame_sound_device::popflame_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : pleiads_sound_device(mconfig, POPFLAME, "Pop Flamer Custom", tag, owner, clock) + : pleiads_sound_device(mconfig, POPFLAME, "Pop Flamer Custom", tag, owner, clock, "popflame_sound", __FILE__) { } diff --git a/src/mame/audio/pleiads.h b/src/mame/audio/pleiads.h index 492cd12b3bc..b6be6c14914 100644 --- a/src/mame/audio/pleiads.h +++ b/src/mame/audio/pleiads.h @@ -7,7 +7,7 @@ class pleiads_sound_device : public device_t, { public: pleiads_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); - pleiads_sound_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); + 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); ~pleiads_sound_device() { global_free(m_token); } // access to legacy token diff --git a/src/mame/audio/polepos.c b/src/mame/audio/polepos.c index 182519657b3..9e8decdc645 100644 --- a/src/mame/audio/polepos.c +++ b/src/mame/audio/polepos.c @@ -50,7 +50,7 @@ const device_type POLEPOS = &device_creator; //------------------------------------------------- polepos_sound_device::polepos_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, POLEPOS, "Pole Position Custom", tag, owner, clock), + : device_t(mconfig, POLEPOS, "Pole Position Custom", tag, owner, clock, "polepos_sound", __FILE__), device_sound_interface(mconfig, *this), m_current_position(0), m_sample_msb(0), diff --git a/src/mame/audio/redbaron.c b/src/mame/audio/redbaron.c index 2b3b1a8b44b..0a1b6c66282 100644 --- a/src/mame/audio/redbaron.c +++ b/src/mame/audio/redbaron.c @@ -34,7 +34,7 @@ const device_type REDBARON = &device_creator; //------------------------------------------------- redbaron_sound_device::redbaron_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, REDBARON, "Red Baron Custom", tag, owner, clock), + : device_t(mconfig, REDBARON, "Red Baron Custom", tag, owner, clock, "redbaron_custom", __FILE__), device_sound_interface(mconfig, *this), m_vol_lookup(NULL), m_channel(NULL), diff --git a/src/mame/audio/segag80r.c b/src/mame/audio/segag80r.c index fb092612019..01648f8e213 100644 --- a/src/mame/audio/segag80r.c +++ b/src/mame/audio/segag80r.c @@ -48,7 +48,7 @@ extern const device_type SEGA005; const device_type SEGA005 = &device_creator; sega005_sound_device::sega005_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, SEGA005, "005 Custom", tag, owner, clock), + : device_t(mconfig, SEGA005, "005 Custom", tag, owner, clock, "sega005_sound", __FILE__), device_sound_interface(mconfig, *this) { } diff --git a/src/mame/audio/segasnd.c b/src/mame/audio/segasnd.c index e31f2559c0c..15c947f77cb 100644 --- a/src/mame/audio/segasnd.c +++ b/src/mame/audio/segasnd.c @@ -179,7 +179,7 @@ static DEVICE_START( speech_sound ) const device_type SEGASPEECH = &device_creator; speech_sound_device::speech_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, SEGASPEECH, "Sega Speech Sound Board", tag, owner, clock), + : device_t(mconfig, SEGASPEECH, "Sega Speech Sound Board", tag, owner, clock, "sega_speech_sound", __FILE__), device_sound_interface(mconfig, *this) { m_token = global_alloc_clear(speech_state); @@ -882,7 +882,7 @@ static DEVICE_START( usb_sound ) const device_type SEGAUSB = &device_creator; usb_sound_device::usb_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, SEGAUSB, "Sega Universal Sound Board", tag, owner, clock), + : device_t(mconfig, SEGAUSB, "Sega Universal Sound Board", tag, owner, clock, "usb_sound", __FILE__), device_sound_interface(mconfig, *this) { m_token = global_alloc_clear(usb_state); diff --git a/src/mame/audio/seibu.c b/src/mame/audio/seibu.c index c411a4a8891..60be1bdbbdd 100644 --- a/src/mame/audio/seibu.c +++ b/src/mame/audio/seibu.c @@ -591,7 +591,7 @@ ADDRESS_MAP_END const device_type SEIBU_ADPCM = &device_creator; seibu_adpcm_device::seibu_adpcm_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, SEIBU_ADPCM, "Seibu ADPCM", tag, owner, clock), + : device_t(mconfig, SEIBU_ADPCM, "Seibu ADPCM", tag, owner, clock, "seibu_adpcm", __FILE__), device_sound_interface(mconfig, *this) { m_token = global_alloc_clear(seibu_adpcm_state); diff --git a/src/mame/audio/snes_snd.c b/src/mame/audio/snes_snd.c index 93d8c97f09f..8df8804ec38 100644 --- a/src/mame/audio/snes_snd.c +++ b/src/mame/audio/snes_snd.c @@ -154,7 +154,7 @@ static const int ENVCNT[0x20] const device_type SNES = &device_creator; snes_sound_device::snes_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, SNES, "SNES Custom DSP (SPC700)", tag, owner, clock), + : device_t(mconfig, SNES, "SNES Custom DSP (SPC700)", tag, owner, clock, "snes_sound", __FILE__), device_sound_interface(mconfig, *this) { } diff --git a/src/mame/audio/snk6502.c b/src/mame/audio/snk6502.c index 970b5329127..a6bc697750a 100644 --- a/src/mame/audio/snk6502.c +++ b/src/mame/audio/snk6502.c @@ -1252,7 +1252,7 @@ WRITE8_HANDLER( fantasy_speech_w ) const device_type SNK6502 = &device_creator; snk6502_sound_device::snk6502_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, SNK6502, "snk6502 Custom", tag, owner, clock), + : device_t(mconfig, SNK6502, "snk6502 Custom", tag, owner, clock, "snk6502_sound", __FILE__), device_sound_interface(mconfig, *this) { m_token = global_alloc_clear(snk6502_sound_state); diff --git a/src/mame/audio/taitosnd.c b/src/mame/audio/taitosnd.c index 64559e5494a..12bda418f9b 100644 --- a/src/mame/audio/taitosnd.c +++ b/src/mame/audio/taitosnd.c @@ -29,7 +29,7 @@ const device_type TC0140SYT = &device_creator; //------------------------------------------------- tc0140syt_device::tc0140syt_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, TC0140SYT, "Taito TC0140SYT", tag, owner, clock), + : device_t(mconfig, TC0140SYT, "Taito TC0140SYT", tag, owner, clock, "tc0140syt", __FILE__), m_mainmode(0), m_submode(0), m_status(0), diff --git a/src/mame/audio/tiamc1.c b/src/mame/audio/tiamc1.c index d6cfec7cee4..40d1f933bdb 100644 --- a/src/mame/audio/tiamc1.c +++ b/src/mame/audio/tiamc1.c @@ -56,7 +56,7 @@ const device_type TIAMC1 = &device_creator; //------------------------------------------------- tiamc1_sound_device::tiamc1_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, TIAMC1, "TIA-MC1 Custom", tag, owner, clock), + : device_t(mconfig, TIAMC1, "TIA-MC1 Custom", tag, owner, clock, "tiamc1_sound", __FILE__), device_sound_interface(mconfig, *this), m_channel(NULL), m_timer1_divider(0) diff --git a/src/mame/audio/timeplt.c b/src/mame/audio/timeplt.c index fd0671787a4..be769ba5461 100644 --- a/src/mame/audio/timeplt.c +++ b/src/mame/audio/timeplt.c @@ -263,7 +263,7 @@ MACHINE_CONFIG_END const device_type TIMEPLT_AUDIO = &device_creator; timeplt_audio_device::timeplt_audio_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, TIMEPLT_AUDIO, "Time Pilot Audio", tag, owner, clock), + : device_t(mconfig, TIMEPLT_AUDIO, "Time Pilot Audio", tag, owner, clock, "timeplt_audio", __FILE__), device_sound_interface(mconfig, *this) { m_token = global_alloc_clear(timeplt_audio_state); diff --git a/src/mame/audio/trackfld.c b/src/mame/audio/trackfld.c index 5a58b3bd95d..7a7aa8cec0f 100644 --- a/src/mame/audio/trackfld.c +++ b/src/mame/audio/trackfld.c @@ -163,7 +163,7 @@ WRITE8_HANDLER( konami_sh_irqtrigger_w ) const device_type TRACKFLD_AUDIO = &device_creator; trackfld_audio_device::trackfld_audio_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, TRACKFLD_AUDIO, "Track And Field Audio", tag, owner, clock), + : device_t(mconfig, TRACKFLD_AUDIO, "Track And Field Audio", tag, owner, clock, "trackfld_audio", __FILE__), device_sound_interface(mconfig, *this) { m_token = global_alloc_clear(trackfld_audio_state); diff --git a/src/mame/audio/tx1.c b/src/mame/audio/tx1.c index 170a1f23a5e..d118aefdfd2 100644 --- a/src/mame/audio/tx1.c +++ b/src/mame/audio/tx1.c @@ -575,7 +575,7 @@ static DEVICE_RESET( buggyboy_sound ) const device_type BUGGYBOY = &device_creator; buggyboy_sound_device::buggyboy_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : tx1_sound_device(mconfig, BUGGYBOY, "Buggy Boy Custom", tag, owner, clock) + : tx1_sound_device(mconfig, BUGGYBOY, "Buggy Boy Custom", tag, owner, clock, "buggyboy_sound", __FILE__) { } @@ -621,14 +621,14 @@ void buggyboy_sound_device::sound_stream_update(sound_stream &stream, stream_sam const device_type TX1 = &device_creator; tx1_sound_device::tx1_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, TX1, "TX-1 Custom", tag, owner, clock), + : device_t(mconfig, TX1, "TX-1 Custom", tag, owner, clock, "tx1_sound", __FILE__), device_sound_interface(mconfig, *this) { m_token = global_alloc_clear(tx1_sound_state); } -tx1_sound_device::tx1_sound_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, type, name, tag, owner, clock), +tx1_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) + : device_t(mconfig, type, name, tag, owner, clock, shortname, source), device_sound_interface(mconfig, *this) { m_token = global_alloc_clear(tx1_sound_state); diff --git a/src/mame/audio/warpwarp.c b/src/mame/audio/warpwarp.c index 7f84f171266..e9d96a9df72 100644 --- a/src/mame/audio/warpwarp.c +++ b/src/mame/audio/warpwarp.c @@ -17,7 +17,7 @@ const device_type WARPWARP = &device_creator; warpwarp_sound_device::warpwarp_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, WARPWARP, "Warp Warp Custom", tag, owner, clock), + : device_t(mconfig, WARPWARP, "Warp Warp Custom", tag, owner, clock, "warpwarp_sound", __FILE__), device_sound_interface(mconfig, *this), m_decay(NULL), m_channel(NULL), diff --git a/src/mame/audio/wiping.c b/src/mame/audio/wiping.c index 754892afbb8..9cf092faec8 100644 --- a/src/mame/audio/wiping.c +++ b/src/mame/audio/wiping.c @@ -262,7 +262,7 @@ WRITE8_DEVICE_HANDLER( wiping_sound_w ) const device_type WIPING = &device_creator; wiping_sound_device::wiping_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, WIPING, "Wiping Custom", tag, owner, clock), + : device_t(mconfig, WIPING, "Wiping Custom", tag, owner, clock, "wiping_sound", __FILE__), device_sound_interface(mconfig, *this) { m_token = global_alloc_clear(wiping_sound_state); diff --git a/src/mame/drivers/littlerb.c b/src/mame/drivers/littlerb.c index 4df62482f62..547d0ff6e05 100644 --- a/src/mame/drivers/littlerb.c +++ b/src/mame/drivers/littlerb.c @@ -285,7 +285,7 @@ protected: const device_type LITTLERBVDP = &device_creator; littlerb_vdp_device::littlerb_vdp_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, LITTLERBVDP, "LITTLERBVDP", tag, owner, clock), + : device_t(mconfig, LITTLERBVDP, "LITTLERBVDP", tag, owner, clock, "littlerb_vdp", __FILE__), device_memory_interface(mconfig, *this), m_space_config("littlerb_vdp", ENDIANNESS_LITTLE, 16,32, 0, NULL, *ADDRESS_MAP_NAME(littlerb_vdp_map8)) { diff --git a/src/mame/drivers/mjkjidai.c b/src/mame/drivers/mjkjidai.c index fde80d89299..8978d27cd30 100644 --- a/src/mame/drivers/mjkjidai.c +++ b/src/mame/drivers/mjkjidai.c @@ -103,7 +103,7 @@ static DEVICE_START( mjkjidai_adpcm ) const device_type MJKJIDAI = &device_creator; mjkjidai_adpcm_device::mjkjidai_adpcm_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, MJKJIDAI, "Custom ADPCM", tag, owner, clock), + : device_t(mconfig, MJKJIDAI, "Custom ADPCM", tag, owner, clock, "mjkjidai_adpcm", __FILE__), device_sound_interface(mconfig, *this) { m_token = global_alloc_clear(mjkjidai_adpcm_state); diff --git a/src/mame/drivers/namcoic.c b/src/mame/drivers/namcoic.c index 429797dcc24..db09a149e9b 100644 --- a/src/mame/drivers/namcoic.c +++ b/src/mame/drivers/namcoic.c @@ -1309,7 +1309,7 @@ const gfx_layout namco_c45_road_device::s_tile_layout = //------------------------------------------------- namco_c45_road_device::namco_c45_road_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, NAMCO_C45_ROAD, "Namco C45 Road", tag, owner, clock), + : device_t(mconfig, NAMCO_C45_ROAD, "Namco C45 Road", tag, owner, clock, "namco_c45_road", __FILE__), m_transparent_color(~0), m_gfx(NULL), m_tilemap(NULL) diff --git a/src/mame/drivers/pinkiri8.c b/src/mame/drivers/pinkiri8.c index 8d2cf27adc3..0c263d7581a 100644 --- a/src/mame/drivers/pinkiri8.c +++ b/src/mame/drivers/pinkiri8.c @@ -125,7 +125,7 @@ const device_type JANSHIVDP = &device_creator; janshi_vdp_device::janshi_vdp_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, JANSHIVDP, "JANSHIVDP", tag, owner, clock), + : device_t(mconfig, JANSHIVDP, "JANSHIVDP", tag, owner, clock, "janshi_vdp", __FILE__), device_memory_interface(mconfig, *this), m_space_config("janshi_vdp", ENDIANNESS_LITTLE, 8,24, 0, NULL, *ADDRESS_MAP_NAME(janshi_vdp_map8)) { diff --git a/src/mame/drivers/renegade.c b/src/mame/drivers/renegade.c index e7a875cba63..e4db750c934 100644 --- a/src/mame/drivers/renegade.c +++ b/src/mame/drivers/renegade.c @@ -193,7 +193,7 @@ static DEVICE_START( renegade_adpcm ) const device_type RENEGADE_ADPCM = &device_creator; renegade_adpcm_device::renegade_adpcm_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, RENEGADE_ADPCM, "Renegade Custom ADPCM", tag, owner, clock), + : device_t(mconfig, RENEGADE_ADPCM, "Renegade Custom ADPCM", tag, owner, clock, "renegade_adpcm", __FILE__), device_sound_interface(mconfig, *this) { m_token = global_alloc_clear(renegade_adpcm_state); diff --git a/src/mame/includes/leland.h b/src/mame/includes/leland.h index 3d09266be75..141d8b62a06 100644 --- a/src/mame/includes/leland.h +++ b/src/mame/includes/leland.h @@ -203,7 +203,7 @@ class leland_sound_device : public device_t, { public: leland_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); - leland_sound_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); + 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); ~leland_sound_device() { global_free(m_token); } // access to legacy token @@ -226,7 +226,7 @@ class leland_80186_sound_device : public leland_sound_device { public: leland_80186_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); - leland_80186_sound_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); + 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); protected: // device-level overrides virtual void device_config_complete(); diff --git a/src/mame/includes/tx1.h b/src/mame/includes/tx1.h index 43a4fe224d1..1b3146c7ac2 100644 --- a/src/mame/includes/tx1.h +++ b/src/mame/includes/tx1.h @@ -230,7 +230,7 @@ class tx1_sound_device : public device_t, { public: tx1_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); - tx1_sound_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); + 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); ~tx1_sound_device() { global_free(m_token); } // access to legacy token diff --git a/src/mame/machine/atari_vg.c b/src/mame/machine/atari_vg.c index 5f1767d9377..c96e2abf174 100644 --- a/src/mame/machine/atari_vg.c +++ b/src/mame/machine/atari_vg.c @@ -16,7 +16,7 @@ const device_type ATARIVGEAROM = &device_creator; //------------------------------------------------- atari_vg_earom_device::atari_vg_earom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, ATARIVGEAROM, "ATARI VG EAROM", tag, owner, clock), + : device_t(mconfig, ATARIVGEAROM, "ATARI VG EAROM", tag, owner, clock, "atari_vg_earom", __FILE__), device_nvram_interface(mconfig, *this) { } diff --git a/src/mame/machine/bfm_bd1.c b/src/mame/machine/bfm_bd1.c index f95d34d1367..9c6cff33a12 100644 --- a/src/mame/machine/bfm_bd1.c +++ b/src/mame/machine/bfm_bd1.c @@ -100,7 +100,7 @@ static const UINT16 BD1charset[]= }; bfm_bd1_t::bfm_bd1_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, BFM_BD1, "BFM BD1 VFD controller", tag, owner, clock), + : device_t(mconfig, BFM_BD1, "BFM BD1 VFD controller", tag, owner, clock, "bfm_bd1", __FILE__), m_port_val(0) { } diff --git a/src/mame/machine/bfm_bda.c b/src/mame/machine/bfm_bda.c index ad439781d3e..a1c6d2d8cce 100644 --- a/src/mame/machine/bfm_bda.c +++ b/src/mame/machine/bfm_bda.c @@ -82,7 +82,7 @@ static const UINT16 BDAcharset[]= }; bfm_bda_t::bfm_bda_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, BFM_BDA, "BFM BDA VFD controller", tag, owner, clock), + : device_t(mconfig, BFM_BDA, "BFM BDA VFD controller", tag, owner, clock, "bfm_bda", __FILE__), m_port_val(0) { } diff --git a/src/mame/machine/buggychl.c b/src/mame/machine/buggychl.c index c2a9f39196b..4084103c9d9 100644 --- a/src/mame/machine/buggychl.c +++ b/src/mame/machine/buggychl.c @@ -237,7 +237,7 @@ static DEVICE_RESET( buggychl_mcu ) const device_type BUGGYCHL_MCU = &device_creator; buggychl_mcu_device::buggychl_mcu_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, BUGGYCHL_MCU, "BuggyChl MCU", tag, owner, clock) + : device_t(mconfig, BUGGYCHL_MCU, "BuggyChl MCU", tag, owner, clock, "buggychl_mcu", __FILE__) { m_token = global_alloc_clear(buggychl_mcu_state); } diff --git a/src/mame/machine/cd32.c b/src/mame/machine/cd32.c index 94c027a8b89..d8358d1d373 100644 --- a/src/mame/machine/cd32.c +++ b/src/mame/machine/cd32.c @@ -910,7 +910,7 @@ WRITE32_DEVICE_HANDLER( amiga_akiko32_w ) const device_type AKIKO = &device_creator; akiko_device::akiko_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, AKIKO, "Akiko", tag, owner, clock) + : device_t(mconfig, AKIKO, "Akiko", tag, owner, clock, "akiko", __FILE__) { m_token = global_alloc_clear(akiko_state); } diff --git a/src/mame/machine/cdi070.c b/src/mame/machine/cdi070.c index 598fa067742..79caed8a130 100644 --- a/src/mame/machine/cdi070.c +++ b/src/mame/machine/cdi070.c @@ -53,7 +53,7 @@ INLINE void verboselog(running_machine &machine, int n_level, const char *s_fmt, //------------------------------------------------- cdi68070_device::cdi68070_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, MACHINE_CDI68070, "CDI68070", tag, owner, clock) + : device_t(mconfig, MACHINE_CDI68070, "CDI68070", tag, owner, clock, "cdi68070", __FILE__) { } diff --git a/src/mame/machine/cdicdic.c b/src/mame/machine/cdicdic.c index 7ff46342bb8..902ca50f8a2 100644 --- a/src/mame/machine/cdicdic.c +++ b/src/mame/machine/cdicdic.c @@ -1161,7 +1161,7 @@ WRITE16_MEMBER( cdicdic_device::regs_w ) //------------------------------------------------- cdicdic_device::cdicdic_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, MACHINE_CDICDIC, "CDICDIC", tag, owner, clock) + : device_t(mconfig, MACHINE_CDICDIC, "CDICDIC", tag, owner, clock, "cdicdic", __FILE__) { } diff --git a/src/mame/machine/cdislave.c b/src/mame/machine/cdislave.c index 22677763885..9516ee282a1 100644 --- a/src/mame/machine/cdislave.c +++ b/src/mame/machine/cdislave.c @@ -417,7 +417,7 @@ WRITE16_MEMBER( cdislave_device::slave_w ) //------------------------------------------------- cdislave_device::cdislave_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, MACHINE_CDISLAVE, "CDISLAVE", tag, owner, clock) + : device_t(mconfig, MACHINE_CDISLAVE, "CDISLAVE", tag, owner, clock, "cdislave", __FILE__) { } diff --git a/src/mame/machine/decocass_tape.c b/src/mame/machine/decocass_tape.c index 06bb6576006..90efab193cc 100644 --- a/src/mame/machine/decocass_tape.c +++ b/src/mame/machine/decocass_tape.c @@ -431,7 +431,7 @@ static DEVICE_RESET( decocass_tape ) const device_type DECOCASS_TAPE = &device_creator; decocass_tape_device::decocass_tape_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, DECOCASS_TAPE, "DECO Cassette Tape", tag, owner, clock) + : device_t(mconfig, DECOCASS_TAPE, "DECO Cassette Tape", tag, owner, clock, "decocass_tape", __FILE__) { m_token = global_alloc_clear(tape_state); } diff --git a/src/mame/machine/gaelco3d.c b/src/mame/machine/gaelco3d.c index d2380330b42..5ca652978c1 100644 --- a/src/mame/machine/gaelco3d.c +++ b/src/mame/machine/gaelco3d.c @@ -498,7 +498,7 @@ static DEVICE_STOP( gaelco_serial ) const device_type GAELCO_SERIAL = &device_creator; gaelco_serial_device::gaelco_serial_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, GAELCO_SERIAL, "gaelco_serial", tag, owner, clock) + : device_t(mconfig, GAELCO_SERIAL, "gaelco_serial", tag, owner, clock, "gaelco_serial", __FILE__) { m_token = global_alloc_clear(gaelco_serial_state); } diff --git a/src/mame/machine/kaneko_calc3.c b/src/mame/machine/kaneko_calc3.c index f825d030ea9..6d418d13b90 100644 --- a/src/mame/machine/kaneko_calc3.c +++ b/src/mame/machine/kaneko_calc3.c @@ -28,7 +28,7 @@ const device_type KANEKO_CALC3 = &device_creator; kaneko_calc3_device::kaneko_calc3_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, KANEKO_CALC3, "kaneko_calc3_device", tag, owner, clock) + : device_t(mconfig, KANEKO_CALC3, "kaneko_calc3_device", tag, owner, clock, "kaneko_calc3", __FILE__) { memset(&m_calc3, 0, sizeof m_calc3); } diff --git a/src/mame/machine/kaneko_hit.c b/src/mame/machine/kaneko_hit.c index 3c21e7dbac8..e5dc9146241 100644 --- a/src/mame/machine/kaneko_hit.c +++ b/src/mame/machine/kaneko_hit.c @@ -29,7 +29,7 @@ const device_type KANEKO_HIT = &device_creator; kaneko_hit_device::kaneko_hit_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, KANEKO_HIT, "kaneko_hit_device", tag, owner, clock) + : device_t(mconfig, KANEKO_HIT, "kaneko_hit_device", tag, owner, clock, "kaneko_hit", __FILE__) { m_hittype = -1; memset(&m_hit, 0, sizeof m_hit); diff --git a/src/mame/machine/kaneko_toybox.c b/src/mame/machine/kaneko_toybox.c index 3303e4103dd..00101652a8a 100644 --- a/src/mame/machine/kaneko_toybox.c +++ b/src/mame/machine/kaneko_toybox.c @@ -52,7 +52,7 @@ mcu_subcmd = kaneko16_mcu_ram[0x0014/2]; // sub-command parameter, happens o const device_type KANEKO_TOYBOX = &device_creator; kaneko_toybox_device::kaneko_toybox_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, KANEKO_TOYBOX, "kaneko_toybox_device", tag, owner, clock) + : device_t(mconfig, KANEKO_TOYBOX, "kaneko_toybox_device", tag, owner, clock, "kaneko_toybox", __FILE__) { m_tabletype = TABLE_NORMAL; m_gametype = GAME_NORMAL; diff --git a/src/mame/machine/maple-dc.c b/src/mame/machine/maple-dc.c index 0f8e9037eb6..50655e03b42 100644 --- a/src/mame/machine/maple-dc.c +++ b/src/mame/machine/maple-dc.c @@ -26,7 +26,7 @@ void maple_dc_device::static_set_irq_cb(device_t &device, void (*irq_cb)(running } maple_dc_device::maple_dc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, MAPLE_DC, "MAPLE_DC", tag, owner, clock) + : device_t(mconfig, MAPLE_DC, "MAPLE_DC", tag, owner, clock, "maple_dc", __FILE__) { // Do not move that in device_start or there will be a race // condition with the maple devices call to register_port. diff --git a/src/mame/machine/mathbox.c b/src/mame/machine/mathbox.c index 12d8bcbb7d9..75d0aa1e71d 100644 --- a/src/mame/machine/mathbox.c +++ b/src/mame/machine/mathbox.c @@ -38,7 +38,7 @@ const device_type MATHBOX = &device_creator; mathbox_device::mathbox_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, MATHBOX, "MATHBOX", tag, owner, clock) + : device_t(mconfig, MATHBOX, "MATHBOX", tag, owner, clock, "mathbox", __FILE__) { } diff --git a/src/mame/machine/mega32x.c b/src/mame/machine/mega32x.c index 3b6bb50d3ca..cb375bd5fd8 100644 --- a/src/mame/machine/mega32x.c +++ b/src/mame/machine/mega32x.c @@ -214,8 +214,8 @@ int fifo_block_b_full; const device_type SEGA_32X_NTSC = &device_creator; const device_type SEGA_32X_PAL = &device_creator; -sega_32x_device::sega_32x_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock, device_type type) - : device_t(mconfig, type, "sega_32x_device", tag, owner, clock), +sega_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) + : device_t(mconfig, type, "sega_32x_device", tag, owner, clock, shortname, source), m_master_cpu(*this, "32x_master_sh2"), m_slave_cpu(*this, "32x_slave_sh2"), m_lch_pwm(*this, "lch_pwm"), @@ -224,12 +224,12 @@ sega_32x_device::sega_32x_device(const machine_config &mconfig, const char *tag, } sega_32x_ntsc_device::sega_32x_ntsc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : sega_32x_device(mconfig, tag, owner, clock, SEGA_32X_NTSC) + : sega_32x_device(mconfig, tag, owner, clock, SEGA_32X_NTSC, "sega_32x_ntsc", __FILE__) { } sega_32x_pal_device::sega_32x_pal_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : sega_32x_device(mconfig, tag, owner, clock, SEGA_32X_PAL) + : sega_32x_device(mconfig, tag, owner, clock, SEGA_32X_PAL, "sega_32x_pal", __FILE__) { } diff --git a/src/mame/machine/mega32x.h b/src/mame/machine/mega32x.h index 91851e398d9..53b1c0fd94e 100644 --- a/src/mame/machine/mega32x.h +++ b/src/mame/machine/mega32x.h @@ -25,7 +25,7 @@ class sega_32x_device : public device_t { public: - sega_32x_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock, device_type type); + sega_32x_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock, device_type type, const char *shortname, const char *source); required_device m_master_cpu; required_device m_slave_cpu; diff --git a/src/mame/machine/megacd.c b/src/mame/machine/megacd.c index 00af0780053..6c6857f877b 100644 --- a/src/mame/machine/megacd.c +++ b/src/mame/machine/megacd.c @@ -22,24 +22,24 @@ const device_type SEGA_SEGACD_US = &device_creator; const device_type SEGA_SEGACD_JAPAN = &device_creator; const device_type SEGA_SEGACD_EUROPE = &device_creator; -sega_segacd_device::sega_segacd_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock, device_type type) - : device_t(mconfig, type, "sega_segacd_device", tag, owner, clock), +sega_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) + : device_t(mconfig, type, "sega_segacd_device", tag, owner, clock, shortname, source), m_scdcpu(*this, "segacd_68k") { } sega_segacd_us_device::sega_segacd_us_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : sega_segacd_device(mconfig, tag, owner, clock, SEGA_SEGACD_US) + : sega_segacd_device(mconfig, tag, owner, clock, SEGA_SEGACD_US, "sega_segacd_us", __FILE__) { } sega_segacd_japan_device::sega_segacd_japan_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : sega_segacd_device(mconfig, tag, owner, clock, SEGA_SEGACD_JAPAN) + : sega_segacd_device(mconfig, tag, owner, clock, SEGA_SEGACD_JAPAN, "sega_segacd_japan", __FILE__) { } sega_segacd_europe_device::sega_segacd_europe_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : sega_segacd_device(mconfig, tag, owner, clock, SEGA_SEGACD_EUROPE) + : sega_segacd_device(mconfig, tag, owner, clock, SEGA_SEGACD_EUROPE, "sega_segacd_europe", __FILE__) { } diff --git a/src/mame/machine/megacd.h b/src/mame/machine/megacd.h index 050b60386de..bc8f450fdfb 100644 --- a/src/mame/machine/megacd.h +++ b/src/mame/machine/megacd.h @@ -198,7 +198,7 @@ _32x32_END class sega_segacd_device : public device_t { public: - sega_segacd_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock, device_type type); + sega_segacd_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock, device_type type, const char *shortname, const char *source); required_device m_scdcpu; lc89510_temp_device *lc89510_temp; diff --git a/src/mame/machine/megacdcd.c b/src/mame/machine/megacdcd.c index 65f8d5a7abb..f4259364de5 100644 --- a/src/mame/machine/megacdcd.c +++ b/src/mame/machine/megacdcd.c @@ -11,7 +11,7 @@ const device_type LC89510_TEMP = &device_creator; lc89510_temp_device::lc89510_temp_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, LC89510_TEMP, "lc89510_temp_device", tag, owner, clock) + : device_t(mconfig, LC89510_TEMP, "lc89510_temp_device", tag, owner, clock, "lc89510_temp", __FILE__) { segacd_dma_callback = segacd_dma_delegate(FUNC(lc89510_temp_device::Fake_CDC_Do_DMA), this); type1_interrupt_callback = interrupt_delegate(FUNC(lc89510_temp_device::dummy_interrupt_callback), this); diff --git a/src/mame/machine/n64.c b/src/mame/machine/n64.c index 724efea77b7..31dc12b4dcf 100644 --- a/src/mame/machine/n64.c +++ b/src/mame/machine/n64.c @@ -21,7 +21,7 @@ const device_type N64PERIPH = &device_creator; n64_periphs::n64_periphs(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, N64PERIPH, "N64 Periphal Chips", tag, owner, clock) + : device_t(mconfig, N64PERIPH, "N64 Periphal Chips", tag, owner, clock, "n64_periphs", __FILE__) , m_nvram_image(NULL) { } diff --git a/src/mame/machine/naomig1.c b/src/mame/machine/naomig1.c index 0056ba06e44..f52305ebb16 100644 --- a/src/mame/machine/naomig1.c +++ b/src/mame/machine/naomig1.c @@ -24,7 +24,7 @@ DEVICE_ADDRESS_MAP_START(amap, 32, naomi_g1_device) ADDRESS_MAP_END naomi_g1_device::naomi_g1_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, type, name, tag, owner, clock), + : device_t(mconfig, type, name, tag, owner, clock, "naomi_g1", __FILE__), irq_cb(*this) { } diff --git a/src/mame/machine/nmk112.c b/src/mame/machine/nmk112.c index 5239c8987b2..05187d82255 100644 --- a/src/mame/machine/nmk112.c +++ b/src/mame/machine/nmk112.c @@ -18,7 +18,7 @@ const device_type NMK112 = &device_creator; nmk112_device::nmk112_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, NMK112, "NMK 112", tag, owner, clock) + : device_t(mconfig, NMK112, "NMK 112", tag, owner, clock, "nmk112", __FILE__) { } diff --git a/src/mame/machine/ns11prot.c b/src/mame/machine/ns11prot.c index abb502e8a02..11ca34984cb 100644 --- a/src/mame/machine/ns11prot.c +++ b/src/mame/machine/ns11prot.c @@ -5,8 +5,8 @@ #include "ns11prot.h" -ns11_keycus_device::ns11_keycus_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : - device_t(mconfig, type, name, tag, owner, clock) +ns11_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) : + device_t(mconfig, type, name, tag, owner, clock, shortname, source) { } @@ -27,7 +27,7 @@ void ns11_keycus_device::device_reset() /* tekken 2 */ keycus_c406_device::keycus_c406_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : - ns11_keycus_device(mconfig, KEYCUS_C406, "KEYCUS C406", tag, owner, clock) + ns11_keycus_device(mconfig, KEYCUS_C406, "KEYCUS C406", tag, owner, clock, "keycus_c406", __FILE__) { } @@ -67,7 +67,7 @@ const device_type KEYCUS_C406 = &device_creator; /* soul edge */ keycus_c409_device::keycus_c409_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : - ns11_keycus_device(mconfig, KEYCUS_C409, "KEYCUS C409", tag, owner, clock) + ns11_keycus_device(mconfig, KEYCUS_C409, "KEYCUS C409", tag, owner, clock, "keycus_c409", __FILE__) { } @@ -107,7 +107,7 @@ const device_type KEYCUS_C409 = &device_creator; /* dunk mania */ keycus_c410_device::keycus_c410_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : - ns11_keycus_device(mconfig, KEYCUS_C410, "KEYCUS C410", tag, owner, clock) + ns11_keycus_device(mconfig, KEYCUS_C410, "KEYCUS C410", tag, owner, clock, "keycus_c410", __FILE__) { } @@ -161,7 +161,7 @@ const device_type KEYCUS_C410 = &device_creator; /* prime goal ex */ keycus_c411_device::keycus_c411_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : - ns11_keycus_device(mconfig, KEYCUS_C411, "KEYCUS C411", tag, owner, clock) + ns11_keycus_device(mconfig, KEYCUS_C411, "KEYCUS C411", tag, owner, clock, "keycus_c411", __FILE__) { } @@ -217,7 +217,7 @@ const device_type KEYCUS_C411 = &device_creator; /* xevious 3d/g */ keycus_c430_device::keycus_c430_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : - ns11_keycus_device(mconfig, KEYCUS_C430, "KEYCUS C430", tag, owner, clock) + ns11_keycus_device(mconfig, KEYCUS_C430, "KEYCUS C430", tag, owner, clock, "keycus_c430", __FILE__) { } @@ -276,7 +276,7 @@ const device_type KEYCUS_C430 = &device_creator; /* dancing eyes */ keycus_c431_device::keycus_c431_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : - ns11_keycus_device(mconfig, KEYCUS_C431, "KEYCUS C431", tag, owner, clock) + ns11_keycus_device(mconfig, KEYCUS_C431, "KEYCUS C431", tag, owner, clock, "keycus_c431", __FILE__) { } @@ -334,7 +334,7 @@ const device_type KEYCUS_C431 = &device_creator; /* pocket racer */ keycus_c432_device::keycus_c432_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : - ns11_keycus_device(mconfig, KEYCUS_C432, "KEYCUS C432", tag, owner, clock) + ns11_keycus_device(mconfig, KEYCUS_C432, "KEYCUS C432", tag, owner, clock, "keycus_c432", __FILE__) { } @@ -394,7 +394,7 @@ const device_type KEYCUS_C432 = &device_creator; /* star sweep */ keycus_c442_device::keycus_c442_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : - ns11_keycus_device(mconfig, KEYCUS_C442, "KEYCUS C442", tag, owner, clock) + ns11_keycus_device(mconfig, KEYCUS_C442, "KEYCUS C442", tag, owner, clock, "keycus_c442", __FILE__) { } @@ -442,7 +442,7 @@ const device_type KEYCUS_C442 = &device_creator; /* kosodate quiz my angel 3 / point blank 2 */ keycus_c443_device::keycus_c443_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : - ns11_keycus_device(mconfig, KEYCUS_C443, "KEYCUS C443", tag, owner, clock) + ns11_keycus_device(mconfig, KEYCUS_C443, "KEYCUS C443", tag, owner, clock, "keycus_c443", __FILE__) { } diff --git a/src/mame/machine/ns11prot.h b/src/mame/machine/ns11prot.h index a08f6470008..933f2de1f2a 100644 --- a/src/mame/machine/ns11prot.h +++ b/src/mame/machine/ns11prot.h @@ -8,7 +8,7 @@ class ns11_keycus_device : public device_t { protected: - ns11_keycus_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); + 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); virtual void device_start(); virtual void device_reset(); diff --git a/src/mame/machine/segaic16.c b/src/mame/machine/segaic16.c index 1cb590a0498..cc4bb16cb2e 100644 --- a/src/mame/machine/segaic16.c +++ b/src/mame/machine/segaic16.c @@ -202,7 +202,7 @@ WRITE16_MEMBER( sega_16bit_common_base::paletteram_w ) //------------------------------------------------- sega_315_5195_mapper_device::sega_315_5195_mapper_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, SEGA_315_5195_MEM_MAPPER, "Sega 315-5195 Memory Mapper", tag, owner, clock), + : device_t(mconfig, SEGA_315_5195_MEM_MAPPER, "Sega 315-5195 Memory Mapper", tag, owner, clock, "sega_315_5195", __FILE__), m_cputag(NULL), m_cpu(NULL), m_space(NULL), @@ -742,7 +742,7 @@ void sega_315_5195_mapper_device::decrypt_bank::update() //------------------------------------------------- sega_315_5248_multiplier_device::sega_315_5248_multiplier_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, SEGA_315_5248_MULTIPLIER, "Sega 315-5248 Multiplier", tag, owner, clock) + : device_t(mconfig, SEGA_315_5248_MULTIPLIER, "Sega 315-5248 Multiplier", tag, owner, clock, "sega_315_5248", __FILE__) { } @@ -810,7 +810,7 @@ void sega_315_5248_multiplier_device::device_reset() //------------------------------------------------- sega_315_5249_divider_device::sega_315_5249_divider_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, SEGA_315_5248_MULTIPLIER, "Sega 315-5249 Divider", tag, owner, clock) + : device_t(mconfig, SEGA_315_5248_MULTIPLIER, "Sega 315-5249 Divider", tag, owner, clock, "sega_315_5249", __FILE__) { } @@ -955,7 +955,7 @@ void sega_315_5249_divider_device::execute(int mode) //------------------------------------------------- sega_315_5250_compare_timer_device::sega_315_5250_compare_timer_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, SEGA_315_5250_COMPARE_TIMER, "Sega 315-5250 Compare/Timer", tag, owner, clock) + : device_t(mconfig, SEGA_315_5250_COMPARE_TIMER, "Sega 315-5250 Compare/Timer", tag, owner, clock, "sega_315_5250", __FILE__) { } diff --git a/src/mame/machine/taitoio.c b/src/mame/machine/taitoio.c index 703316db221..2afdbf040e3 100644 --- a/src/mame/machine/taitoio.c +++ b/src/mame/machine/taitoio.c @@ -55,7 +55,7 @@ Newer version of the I/O chip ? const device_type TC0220IOC = &device_creator; tc0220ioc_device::tc0220ioc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, TC0220IOC, "Taito TC0220IOC", tag, owner, clock) + : device_t(mconfig, TC0220IOC, "Taito TC0220IOC", tag, owner, clock, "tc0220ioc", __FILE__) { } @@ -200,7 +200,7 @@ WRITE8_MEMBER( tc0220ioc_device::portreg_w ) const device_type TC0510NIO = &device_creator; tc0510nio_device::tc0510nio_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, TC0510NIO, "Taito TC0510NIO", tag, owner, clock) + : device_t(mconfig, TC0510NIO, "Taito TC0510NIO", tag, owner, clock, "tc0510nio", __FILE__) { } @@ -346,7 +346,7 @@ WRITE16_MEMBER( tc0510nio_device::halfword_wordswap_w ) const device_type TC0640FIO = &device_creator; tc0640fio_device::tc0640fio_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, TC0640FIO, "Taito TC0640FIO", tag, owner, clock) + : device_t(mconfig, TC0640FIO, "Taito TC0640FIO", tag, owner, clock, "tc0640fio", __FILE__) { } diff --git a/src/mame/machine/ticket.c b/src/mame/machine/ticket.c index f9947f99acd..46aacfafaac 100644 --- a/src/mame/machine/ticket.c +++ b/src/mame/machine/ticket.c @@ -68,7 +68,7 @@ const device_type TICKET_DISPENSER = &device_creator; //------------------------------------------------- ticket_dispenser_device::ticket_dispenser_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, TICKET_DISPENSER, "Ticket Dispenser", tag, owner, clock), + : device_t(mconfig, TICKET_DISPENSER, "Ticket Dispenser", tag, owner, clock, "ticket_dispenser", __FILE__), m_motor_sense(TICKET_MOTOR_ACTIVE_LOW), m_status_sense(TICKET_STATUS_ACTIVE_LOW), m_period(attotime::from_msec(100)), diff --git a/src/mame/video/atarirle.c b/src/mame/video/atarirle.c index 25c857e9a92..dd23c8dcc58 100644 --- a/src/mame/video/atarirle.c +++ b/src/mame/video/atarirle.c @@ -370,7 +370,7 @@ static DEVICE_START( atarirle ) const device_type ATARIRLE = &device_creator; atarirle_device::atarirle_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, ATARIRLE, "Atari RLE", tag, owner, clock) + : device_t(mconfig, ATARIRLE, "Atari RLE", tag, owner, clock, "atari_rle", __FILE__) { m_token = global_alloc_clear(atarirle_data); } diff --git a/src/mame/video/decbac06.c b/src/mame/video/decbac06.c index 215e4f49184..44b08a779a2 100644 --- a/src/mame/video/decbac06.c +++ b/src/mame/video/decbac06.c @@ -74,7 +74,7 @@ void deco_bac06_device::set_gfx_region_wide(device_t &device, int region8x8, int const device_type DECO_BAC06 = &device_creator; deco_bac06_device::deco_bac06_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, DECO_BAC06, "decbac06_device", tag, owner, clock), + : device_t(mconfig, DECO_BAC06, "decbac06_device", tag, owner, clock, "deco_bac06", __FILE__), m_gfxregion8x8(0), m_gfxregion16x16(0), m_wide(0) diff --git a/src/mame/video/deckarn.c b/src/mame/video/deckarn.c index ae63e9996cf..9419ac2f62a 100644 --- a/src/mame/video/deckarn.c +++ b/src/mame/video/deckarn.c @@ -13,7 +13,7 @@ void deco_karnovsprites_device::set_gfx_region(device_t &device, int region) const device_type DECO_KARNOVSPRITES = &device_creator; deco_karnovsprites_device::deco_karnovsprites_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, DECO_KARNOVSPRITES, "karnovsprites_device", tag, owner, clock), + : device_t(mconfig, DECO_KARNOVSPRITES, "karnovsprites_device", tag, owner, clock, "deco_karnovsprites", __FILE__), m_gfxregion(0) { } diff --git a/src/mame/video/decmxc06.c b/src/mame/video/decmxc06.c index 2146c94af50..5838d76da96 100644 --- a/src/mame/video/decmxc06.c +++ b/src/mame/video/decmxc06.c @@ -48,7 +48,7 @@ void deco_mxc06_device::set_gfx_region(device_t &device, int region) const device_type DECO_MXC06 = &device_creator; deco_mxc06_device::deco_mxc06_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, DECO_MXC06, "decmxc06_device", tag, owner, clock), + : device_t(mconfig, DECO_MXC06, "decmxc06_device", tag, owner, clock, "deco_mxc06", __FILE__), m_gfxregion(0) { } diff --git a/src/mame/video/deco16ic.c b/src/mame/video/deco16ic.c index 7e0341fe53c..2091036d27f 100644 --- a/src/mame/video/deco16ic.c +++ b/src/mame/video/deco16ic.c @@ -899,7 +899,7 @@ void deco16ic_tilemap_12_combine_draw(device_t *device, bitmap_rgb32 &bitmap, co const device_type DECO16IC = &device_creator; deco16ic_device::deco16ic_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, DECO16IC, "Data East IC 55 / 56 / 74 / 141", tag, owner, clock) + : device_t(mconfig, DECO16IC, "Data East IC 55 / 56 / 74 / 141", tag, owner, clock, "deco16ic", __FILE__) { m_token = global_alloc_clear(deco16ic_state); } diff --git a/src/mame/video/decocomn.c b/src/mame/video/decocomn.c index a7ebb53b5a3..b2bbd822f6b 100644 --- a/src/mame/video/decocomn.c +++ b/src/mame/video/decocomn.c @@ -142,7 +142,7 @@ static DEVICE_RESET( decocomn ) const device_type DECOCOMN = &device_creator; decocomn_device::decocomn_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, DECOCOMN, "Data East Common Video Functions", tag, owner, clock) + : device_t(mconfig, DECOCOMN, "Data East Common Video Functions", tag, owner, clock, "decocomn", __FILE__) { m_token = global_alloc_clear(decocomn_state); } diff --git a/src/mame/video/decospr.c b/src/mame/video/decospr.c index 90325e02bab..a4308efbe9e 100644 --- a/src/mame/video/decospr.c +++ b/src/mame/video/decospr.c @@ -160,7 +160,7 @@ void decospr_device::set_col_callback(device_t &device, decospr_colour_callback_ const device_type DECO_SPRITE = &device_creator; decospr_device::decospr_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, DECO_SPRITE, "decospr_device", tag, owner, clock), + : device_t(mconfig, DECO_SPRITE, "decospr_device", tag, owner, clock, "decospr", __FILE__), m_gfxregion(0), m_pricallback(NULL), m_colcallback(decospr_default_colour_callback), diff --git a/src/mame/video/gp9001.c b/src/mame/video/gp9001.c index 813abded4ec..86f9326e3ce 100644 --- a/src/mame/video/gp9001.c +++ b/src/mame/video/gp9001.c @@ -203,7 +203,7 @@ ADDRESS_MAP_END const device_type GP9001_VDP = &device_creator; gp9001vdp_device::gp9001vdp_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, GP9001_VDP, "GP9001_VDP", tag, owner, clock), + : device_t(mconfig, GP9001_VDP, "GP9001_VDP", tag, owner, clock, "gp9001vdp", __FILE__), device_memory_interface(mconfig, *this), m_space_config("gp9001vdp", ENDIANNESS_BIG, 16,14, 0, NULL, *ADDRESS_MAP_NAME(gp9001vdp_map)), m_gfxregion(0) diff --git a/src/mame/video/kan_pand.c b/src/mame/video/kan_pand.c index cce45d9bbf4..7356d465eb9 100644 --- a/src/mame/video/kan_pand.c +++ b/src/mame/video/kan_pand.c @@ -53,7 +53,7 @@ const device_type KANEKO_PANDORA = &device_creator; kaneko_pandora_device::kaneko_pandora_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, KANEKO_PANDORA, "Kaneko Pandora - PX79C480FP-3", tag, owner, clock) + : device_t(mconfig, KANEKO_PANDORA, "Kaneko Pandora - PX79C480FP-3", tag, owner, clock, "kaneko_pandora", __FILE__) { } diff --git a/src/mame/video/kaneko_grap2.c b/src/mame/video/kaneko_grap2.c index d29a3b9e120..ede2da8323b 100644 --- a/src/mame/video/kaneko_grap2.c +++ b/src/mame/video/kaneko_grap2.c @@ -15,7 +15,7 @@ const device_type KANEKO_GRAP2 = &device_creator; kaneko_grap2_device::kaneko_grap2_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, KANEKO_GRAP2, "kaneko_grap2_device", tag, owner, clock) + : device_t(mconfig, KANEKO_GRAP2, "kaneko_grap2_device", tag, owner, clock, "kaneko_grap2", __FILE__) { m_chipnum = 0; } diff --git a/src/mame/video/kaneko_spr.c b/src/mame/video/kaneko_spr.c index c10055375ea..121c7355a8c 100644 --- a/src/mame/video/kaneko_spr.c +++ b/src/mame/video/kaneko_spr.c @@ -30,7 +30,7 @@ const device_type KANEKO_VU002_SPRITE = &device_creator; kaneko16_sprite_device::kaneko16_sprite_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock, device_type type) - : device_t(mconfig, type, "kaneko16_sprite_device", tag, owner, clock) + : device_t(mconfig, type, "kaneko16_sprite_device", tag, owner, clock, "kaneko16_sprite", __FILE__) { m_keep_sprites = 0; // default disabled for games not using it diff --git a/src/mame/video/kaneko_tmap.c b/src/mame/video/kaneko_tmap.c index 3a87717e5f6..2e62fe7c0a5 100644 --- a/src/mame/video/kaneko_tmap.c +++ b/src/mame/video/kaneko_tmap.c @@ -95,7 +95,7 @@ There are more! const device_type KANEKO_TMAP = &device_creator; kaneko_view2_tilemap_device::kaneko_view2_tilemap_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, KANEKO_TMAP, "kaneko_view2_tilemap_device", tag, owner, clock) + : device_t(mconfig, KANEKO_TMAP, "kaneko_view2_tilemap_device", tag, owner, clock, "kaneko_view2_tilemap", __FILE__) { m_invert_flip = 0; } diff --git a/src/mame/video/konicdev.c b/src/mame/video/konicdev.c index a7ac332f78c..8f6a6dbceb4 100644 --- a/src/mame/video/konicdev.c +++ b/src/mame/video/konicdev.c @@ -1578,7 +1578,7 @@ static DEVICE_RESET( k007121 ) const device_type K007121 = &device_creator; k007121_device::k007121_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, K007121, "Konami 007121", tag, owner, clock) + : device_t(mconfig, K007121, "Konami 007121", tag, owner, clock, "k007121", __FILE__) { m_token = global_alloc_clear(k007121_state); } @@ -1851,7 +1851,7 @@ TILE_GET_INFO_MEMBER(k007342_device::k007342_get_tile_info1) const device_type K007342 = &device_creator; k007342_device::k007342_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, K007342, "Konami 007342", tag, owner, clock) + : device_t(mconfig, K007342, "Konami 007342", tag, owner, clock, "k007342", __FILE__) { m_token = global_alloc_clear(k007342_state); } @@ -2184,7 +2184,7 @@ static DEVICE_RESET( k007420 ) const device_type K007420 = &device_creator; k007420_device::k007420_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, K007420, "Konami 007420", tag, owner, clock) + : device_t(mconfig, K007420, "Konami 007420", tag, owner, clock, "k007420", __FILE__) { m_token = global_alloc_clear(k007420_state); } @@ -2755,7 +2755,7 @@ static void k052109_tileflip_reset(k052109_state *k052109) const device_type K052109 = &device_creator; k052109_device::k052109_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, K052109, "Konami 052109", tag, owner, clock) + : device_t(mconfig, K052109, "Konami 052109", tag, owner, clock, "k052109", __FILE__) { m_token = global_alloc_clear(k052109_state); } @@ -3425,7 +3425,7 @@ static DEVICE_RESET( k051960 ) const device_type K051960 = &device_creator; k051960_device::k051960_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, K051960, "Konami 051960", tag, owner, clock) + : device_t(mconfig, K051960, "Konami 051960", tag, owner, clock, "k051960", __FILE__) { m_token = global_alloc_clear(k051960_state); } @@ -4256,7 +4256,7 @@ static DEVICE_RESET( k05324x ) const device_type K053244 = &device_creator; k05324x_device::k05324x_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, K053244, "Konami 053244 & 053245", tag, owner, clock) + : device_t(mconfig, K053244, "Konami 053244 & 053245", tag, owner, clock, "k05324x", __FILE__) { m_token = global_alloc_clear(k05324x_state); } @@ -5268,7 +5268,7 @@ static DEVICE_RESET( k053247 ) const device_type K055673 = &device_creator; k055673_device::k055673_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, K055673, "Konami 055673", tag, owner, clock) + : device_t(mconfig, K055673, "Konami 055673", tag, owner, clock, "k055673", __FILE__) { m_token = global_alloc_clear(k053247_state); } @@ -5304,7 +5304,7 @@ void k055673_device::device_reset() const device_type K053246 = &device_creator; k053247_device::k053247_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, K053246, "Konami 053246 & 053247", tag, owner, clock) + : device_t(mconfig, K053246, "Konami 053246 & 053247", tag, owner, clock, "k053247", __FILE__) { m_token = global_alloc_clear(k053247_state); } @@ -5537,7 +5537,7 @@ void k051316_zoom_draw( device_t *device, bitmap_ind16 &bitmap, const rectangle const device_type K051316 = &device_creator; k051316_device::k051316_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, K051316, "Konami 051316", tag, owner, clock) + : device_t(mconfig, K051316, "Konami 051316", tag, owner, clock, "k051316", __FILE__) { m_token = global_alloc_clear(k051316_state); } @@ -5910,7 +5910,7 @@ static DEVICE_RESET( k053936 ) const device_type K053936 = &device_creator; k053936_device::k053936_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, K053936, "Konami 053936", tag, owner, clock) + : device_t(mconfig, K053936, "Konami 053936", tag, owner, clock, "k053936", __FILE__) { m_token = global_alloc_clear(k053936_state); } @@ -6101,7 +6101,7 @@ static DEVICE_RESET( k053251 ) const device_type K053251 = &device_creator; k053251_device::k053251_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, K053251, "Konami 053251", tag, owner, clock) + : device_t(mconfig, K053251, "Konami 053251", tag, owner, clock, "k053251", __FILE__) { m_token = global_alloc_clear(k053251_state); } @@ -6246,7 +6246,7 @@ static DEVICE_RESET( k054000 ) const device_type K054000 = &device_creator; k054000_device::k054000_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, K054000, "Konami 054000", tag, owner, clock) + : device_t(mconfig, K054000, "Konami 054000", tag, owner, clock, "k054000", __FILE__) { m_token = global_alloc_clear(k054000_state); } @@ -6434,7 +6434,7 @@ static DEVICE_RESET( k051733 ) const device_type K051733 = &device_creator; k051733_device::k051733_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, K051733, "Konami 051733", tag, owner, clock) + : device_t(mconfig, K051733, "Konami 051733", tag, owner, clock, "k051733", __FILE__) { m_token = global_alloc_clear(k051733_state); } @@ -8181,7 +8181,7 @@ static void k056832_postload(k056832_state *k056832) const device_type K056832 = &device_creator; k056832_device::k056832_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, K056832, "Konami 056832", tag, owner, clock) + : device_t(mconfig, K056832, "Konami 056832", tag, owner, clock, "k056832", __FILE__) { m_token = global_alloc_clear(k056832_state); } @@ -8571,7 +8571,7 @@ static DEVICE_RESET( k055555 ) const device_type K055555 = &device_creator; k055555_device::k055555_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, K055555, "Konami 055555", tag, owner, clock) + : device_t(mconfig, K055555, "Konami 055555", tag, owner, clock, "k055555", __FILE__) { m_token = global_alloc_clear(k055555_state); } @@ -8909,7 +8909,7 @@ static DEVICE_RESET( k054338 ) const device_type K054338 = &device_creator; k054338_device::k054338_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, K054338, "Konami 054338", tag, owner, clock) + : device_t(mconfig, K054338, "Konami 054338", tag, owner, clock, "k054338", __FILE__) { m_token = global_alloc_clear(k054338_state); } @@ -9120,7 +9120,7 @@ static DEVICE_RESET( k001006 ) const device_type K001006 = &device_creator; k001006_device::k001006_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, K001006, "Konami 001006", tag, owner, clock) + : device_t(mconfig, K001006, "Konami 001006", tag, owner, clock, "k001006", __FILE__) { m_token = global_alloc_clear(k001006_state); } @@ -10082,7 +10082,7 @@ static DEVICE_STOP( k001005 ) const device_type K001005 = &device_creator; k001005_device::k001005_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, K001005, "Konami 001005", tag, owner, clock) + : device_t(mconfig, K001005, "Konami 001005", tag, owner, clock, "k001005", __FILE__) { m_token = global_alloc_clear(k001005_state); } @@ -10519,7 +10519,7 @@ WRITE32_DEVICE_HANDLER( k001604_reg_w ) const device_type K001604 = &device_creator; k001604_device::k001604_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, K001604, "Konami 001604", tag, owner, clock) + : device_t(mconfig, K001604, "Konami 001604", tag, owner, clock, "k001604", __FILE__) { m_token = global_alloc_clear(k001604_state); } @@ -10809,7 +10809,7 @@ WRITE32_DEVICE_HANDLER( k037122_reg_w ) const device_type K037122 = &device_creator; k037122_device::k037122_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, K037122, "Konami 0371222", tag, owner, clock) + : device_t(mconfig, K037122, "Konami 0371222", tag, owner, clock, "k037122", __FILE__) { m_token = global_alloc_clear(k037122_state); } diff --git a/src/mame/video/mcd212.c b/src/mame/video/mcd212.c index 49aaef0b0ed..91711fe21d6 100644 --- a/src/mame/video/mcd212.c +++ b/src/mame/video/mcd212.c @@ -1509,7 +1509,7 @@ void mcd212_device::device_reset() //------------------------------------------------- mcd212_device::mcd212_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, MACHINE_MCD212, "MCD212", tag, owner, clock) + : device_t(mconfig, MACHINE_MCD212, "MCD212", tag, owner, clock, "mcd212", __FILE__) { } diff --git a/src/mame/video/powervr2.c b/src/mame/video/powervr2.c index 89619a6f393..afb2ed1413e 100644 --- a/src/mame/video/powervr2.c +++ b/src/mame/video/powervr2.c @@ -2982,7 +2982,7 @@ void powervr2_device::pvr_dma_execute(address_space &space) } powervr2_device::powervr2_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, POWERVR2, "PowerVR 2", tag, owner, clock), + : device_t(mconfig, POWERVR2, "PowerVR 2", tag, owner, clock, "powervr2", __FILE__), irq_cb(*this) { } diff --git a/src/mame/video/ppu2c0x.c b/src/mame/video/ppu2c0x.c index ef60e9aa1e5..323bbc6f378 100644 --- a/src/mame/video/ppu2c0x.c +++ b/src/mame/video/ppu2c0x.c @@ -126,8 +126,8 @@ void ppu2c0x_device::device_config_complete() m_screen_tag = config->screen_tag; } -ppu2c0x_device::ppu2c0x_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, type, name, tag, owner, clock), +ppu2c0x_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) + : device_t(mconfig, type, name, tag, owner, clock, shortname, source), device_memory_interface(mconfig, *this), m_space_config("videoram", ENDIANNESS_LITTLE, 8, 17, 0, NULL, *ADDRESS_MAP_NAME(ppu2c0x)), m_scanline(0), // reset the scanline count @@ -159,44 +159,44 @@ ppu2c0x_device::ppu2c0x_device(const machine_config &mconfig, device_type type, // NTSC NES -ppu2c02_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_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__) { } // Playchoice 10 -ppu2c03b_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_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__) { } // Vs. Unisystem -ppu2c04_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_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__) { } // PAL NES -ppu2c07_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_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__) { m_scanlines_per_frame = PPU_PAL_SCANLINES_PER_FRAME; } // The PPU_2C05 variants have different protection value, set at DEVICE_START, but otherwise are all the same... // Vs. Unisystem (Ninja Jajamaru Kun) -ppu2c05_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_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__) { m_security_value = 0x1b; // game (jajamaru) doesn't seem to ever actually check it } // Vs. Unisystem (Mighty Bomb Jack) -ppu2c05_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_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__) { m_security_value = 0x3d; } // Vs. Unisystem (Gumshoe) -ppu2c05_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_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__) { m_security_value = 0x1c; } // Vs. Unisystem (Top Gun) -ppu2c05_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_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__) { m_security_value = 0x1b; } diff --git a/src/mame/video/ppu2c0x.h b/src/mame/video/ppu2c0x.h index aa6e43ed72f..3c7a2757e84 100644 --- a/src/mame/video/ppu2c0x.h +++ b/src/mame/video/ppu2c0x.h @@ -133,7 +133,7 @@ class ppu2c0x_device : public device_t, { public: // construction/destruction - ppu2c0x_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); + 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); DECLARE_READ8_MEMBER( read ); DECLARE_WRITE8_MEMBER( write ); diff --git a/src/mame/video/scn2674.c b/src/mame/video/scn2674.c index 6c9be9ea467..a2616cc093f 100644 --- a/src/mame/video/scn2674.c +++ b/src/mame/video/scn2674.c @@ -34,7 +34,7 @@ const device_type SCN2674_VIDEO = &device_creator; scn2674_device::scn2674_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, SCN2674_VIDEO, "scn2674_device", tag, owner, clock), + : device_t(mconfig, SCN2674_VIDEO, "scn2674_device", tag, owner, clock, "scn2674_device", __FILE__), m_interrupt_callback(*this) { } diff --git a/src/mame/video/segaic24.c b/src/mame/video/segaic24.c index a1ad9d776e1..5f5882b2a8c 100644 --- a/src/mame/video/segaic24.c +++ b/src/mame/video/segaic24.c @@ -22,7 +22,7 @@ const device_type S24MIXER = &device_creator; segas24_tile::segas24_tile(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, S24TILE, "S24TILE", tag, owner, clock) + : device_t(mconfig, S24TILE, "S24TILE", tag, owner, clock, "segas24_tile", __FILE__) { } @@ -577,7 +577,7 @@ WRITE32_MEMBER(segas24_tile::char32_w) segas24_sprite::segas24_sprite(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, S24SPRITE, "S24SPRITE", tag, owner, clock) + : device_t(mconfig, S24SPRITE, "S24SPRITE", tag, owner, clock, "segas24_sprite", __FILE__) { } @@ -822,7 +822,7 @@ READ16_MEMBER(segas24_sprite::read) segas24_mixer::segas24_mixer(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, S24MIXER, "S24MIXER", tag, owner, clock) + : device_t(mconfig, S24MIXER, "S24MIXER", tag, owner, clock, "segas24_mixer", __FILE__) { } diff --git a/src/mame/video/seta001.c b/src/mame/video/seta001.c index 569222cacc9..f188957645d 100644 --- a/src/mame/video/seta001.c +++ b/src/mame/video/seta001.c @@ -30,7 +30,7 @@ const device_type SETA001_SPRITE = &device_creator; seta001_device::seta001_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, SETA001_SPRITE, "seta001_device", tag, owner, clock) + : device_t(mconfig, SETA001_SPRITE, "seta001_device", tag, owner, clock, "seta001", __FILE__) { } diff --git a/src/mame/video/sknsspr.c b/src/mame/video/sknsspr.c index b2373a8393e..fb1dae9035a 100644 --- a/src/mame/video/sknsspr.c +++ b/src/mame/video/sknsspr.c @@ -20,7 +20,7 @@ const device_type SKNS_SPRITE = &device_creator; sknsspr_device::sknsspr_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, SKNS_SPRITE, "sknsspr_device", tag, owner, clock) + : device_t(mconfig, SKNS_SPRITE, "sknsspr_device", tag, owner, clock, "sknsspr", __FILE__) { } diff --git a/src/mame/video/st0020.c b/src/mame/video/st0020.c index 8ecc1c18dcd..6fd80261199 100644 --- a/src/mame/video/st0020.c +++ b/src/mame/video/st0020.c @@ -13,7 +13,7 @@ const device_type ST0020_SPRITES = &device_creator; st0020_device::st0020_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, ST0020_SPRITES, "st0020_device", tag, owner, clock) + : device_t(mconfig, ST0020_SPRITES, "st0020_device", tag, owner, clock, "st0020", __FILE__) { m_is_st0032 = 0; m_is_jclub2 = 0; diff --git a/src/mame/video/taitoic.c b/src/mame/video/taitoic.c index a64b9ea92cb..501fd1af818 100644 --- a/src/mame/video/taitoic.c +++ b/src/mame/video/taitoic.c @@ -549,7 +549,7 @@ INLINE void taitoic_drawscanline( bitmap_ind16 &bitmap, const rectangle &cliprec const device_type PC080SN = &device_creator; pc080sn_device::pc080sn_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, PC080SN, "Taito PC080SN", tag, owner, clock) + : device_t(mconfig, PC080SN, "Taito PC080SN", tag, owner, clock, "pc080sn", __FILE__) { } @@ -1005,7 +1005,7 @@ void pc080sn_device::restore_scroll() const device_type PC090OJ = &device_creator; pc090oj_device::pc090oj_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, PC090OJ, "Taito PC090OJ", tag, owner, clock) + : device_t(mconfig, PC090OJ, "Taito PC090OJ", tag, owner, clock, "pc090oj", __FILE__) { } @@ -1176,7 +1176,7 @@ void pc090oj_device::draw_sprites( bitmap_ind16 &bitmap, const rectangle &clipre const device_type TC0080VCO = &device_creator; tc0080vco_device::tc0080vco_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, TC0080VCO, "Taito TC0080VCO", tag, owner, clock) + : device_t(mconfig, TC0080VCO, "Taito TC0080VCO", tag, owner, clock, "tc0080vco", __FILE__) { } @@ -1810,7 +1810,7 @@ void tc0080vco_device::postload() const device_type TC0100SCN = &device_creator; tc0100scn_device::tc0100scn_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, TC0100SCN, "Taito TC0100SCN", tag, owner, clock) + : device_t(mconfig, TC0100SCN, "Taito TC0100SCN", tag, owner, clock, "tc0100scn", __FILE__) { } @@ -2522,7 +2522,7 @@ void tc0430grw_zoom_draw( device_t *device, bitmap_ind16 &bitmap, const rectangl const device_type TC0280GRD = &device_creator; tc0280grd_device::tc0280grd_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, TC0280GRD, "Taito TC0280GRD & TC0430GRW", tag, owner, clock) + : device_t(mconfig, TC0280GRD, "Taito TC0280GRD & TC0430GRW", tag, owner, clock, "tc0280grd", __FILE__) { m_token = global_alloc_clear(tc0280grd_state); } @@ -2643,7 +2643,7 @@ static DEVICE_RESET( tc0360pri ) const device_type TC0360PRI = &device_creator; tc0360pri_device::tc0360pri_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, TC0360PRI, "Taito TC0360PRI", tag, owner, clock) + : device_t(mconfig, TC0360PRI, "Taito TC0360PRI", tag, owner, clock, "tc0360pri", __FILE__) { m_token = global_alloc_clear(tc0360pri_state); } @@ -3527,7 +3527,7 @@ void tc0480scp_device::tc0480scp_postload() const device_type TC0480SCP = &device_creator; tc0480scp_device::tc0480scp_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, TC0480SCP, "Taito TC0480SCP", tag, owner, clock) + : device_t(mconfig, TC0480SCP, "Taito TC0480SCP", tag, owner, clock, "tc0480scp", __FILE__) { m_token = global_alloc_clear(tc0480scp_state); } @@ -4471,7 +4471,7 @@ static DEVICE_START( tc0150rod ) const device_type TC0150ROD = &device_creator; tc0150rod_device::tc0150rod_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, TC0150ROD, "Taito TC0150ROD", tag, owner, clock) + : device_t(mconfig, TC0150ROD, "Taito TC0150ROD", tag, owner, clock, "tc0150rod", __FILE__) { m_token = global_alloc_clear(tc0150rod_state); } @@ -4698,7 +4698,7 @@ WRITE16_DEVICE_HANDLER( tc0110pcr_step1_4bpg_word_w ) const device_type TC0110PCR = &device_creator; tc0110pcr_device::tc0110pcr_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, TC0110PCR, "Taito TC0110PCR", tag, owner, clock) + : device_t(mconfig, TC0110PCR, "Taito TC0110PCR", tag, owner, clock, "tc0110pcr", __FILE__) { m_token = global_alloc_clear(tc0110pcr_state); } @@ -5043,7 +5043,7 @@ void tc0180vcu_tilemap_draw( device_t *device, bitmap_ind16 &bitmap, const recta const device_type TC0180VCU = &device_creator; tc0180vcu_device::tc0180vcu_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, TC0180VCU, "Taito TC0180VCU", tag, owner, clock) + : device_t(mconfig, TC0180VCU, "Taito TC0180VCU", tag, owner, clock, "tc0180vcu", __FILE__) { m_token = global_alloc_clear(tc0180vcu_state); } diff --git a/src/mame/video/tia.c b/src/mame/video/tia.c index f0836d69407..f38ee28258d 100644 --- a/src/mame/video/tia.c +++ b/src/mame/video/tia.c @@ -170,7 +170,7 @@ const device_type TIA_VIDEO = &device_creator; //------------------------------------------------- tia_video_device::tia_video_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, TIA_VIDEO, "TIA Video", tag, owner, clock) + : device_t(mconfig, TIA_VIDEO, "TIA Video", tag, owner, clock, "tia_video", __FILE__) { } diff --git a/src/mame/video/vrender0.c b/src/mame/video/vrender0.c index eb6473b941a..3eb5603a2fa 100644 --- a/src/mame/video/vrender0.c +++ b/src/mame/video/vrender0.c @@ -602,7 +602,7 @@ static DEVICE_RESET( vr0video ) const device_type VIDEO_VRENDER0 = &device_creator; vr0video_device::vr0video_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, VIDEO_VRENDER0, "VRender0", tag, owner, clock) + : device_t(mconfig, VIDEO_VRENDER0, "VRender0", tag, owner, clock, "vr0video", __FILE__) { m_token = global_alloc_clear(vr0video_state); } diff --git a/src/mame/video/vsystem_spr.c b/src/mame/video/vsystem_spr.c index e6410121c1a..746b68bfa7e 100644 --- a/src/mame/video/vsystem_spr.c +++ b/src/mame/video/vsystem_spr.c @@ -70,7 +70,7 @@ Abstracts the VS9210 const device_type VSYSTEM_SPR = &device_creator; vsystem_spr_device::vsystem_spr_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, VSYSTEM_SPR, "vsystem_spr_device", tag, owner, clock) + : device_t(mconfig, VSYSTEM_SPR, "vsystem_spr_device", tag, owner, clock, "vsystem_spr", __FILE__) { m_transpen = 15; m_pal_base = 0; diff --git a/src/mame/video/vsystem_spr2.c b/src/mame/video/vsystem_spr2.c index 12331efa92a..9be7c03e2d5 100644 --- a/src/mame/video/vsystem_spr2.c +++ b/src/mame/video/vsystem_spr2.c @@ -28,7 +28,7 @@ const device_type VSYSTEM_SPR2 = &device_creator; vsystem_spr2_device::vsystem_spr2_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, VSYSTEM_SPR2, "vsystem_spr2_device", tag, owner, clock) + : device_t(mconfig, VSYSTEM_SPR2, "vsystem_spr2_device", tag, owner, clock, "vsystem_spr2", __FILE__) { m_newtilecb = vsystem_tile2_indirection_delegate(FUNC(vsystem_spr2_device::tile_callback_noindirect), this); m_pritype = 0; // hack until we have better handling