diff options
Diffstat (limited to 'src/mame/audio/tx1.cpp')
-rw-r--r-- | src/mame/audio/tx1.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mame/audio/tx1.cpp b/src/mame/audio/tx1.cpp index a8e3d53e4d1..f462fb20b31 100644 --- a/src/mame/audio/tx1.cpp +++ b/src/mame/audio/tx1.cpp @@ -7,9 +7,10 @@ ***************************************************************************/ #include "emu.h" +#include "includes/tx1.h" + #include "sound/ay8910.h" #include "video/resnet.h" -#include "includes/tx1.h" /************************************* @@ -51,16 +52,15 @@ static const double tx1_engine_gains[16] = }; -const device_type TX1 = device_creator<tx1_sound_device>; +DEFINE_DEVICE_TYPE(TX1, tx1_sound_device, "tx1_sound", "TX-1 Audio Custom") tx1_sound_device::tx1_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) - : device_t(mconfig, TX1, "TX-1 Audio Custom", tag, owner, clock, "tx1_sound", __FILE__), - device_sound_interface(mconfig, *this) + : tx1_sound_device(mconfig, TX1, 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_t clock, const char *shortname, const char *source) - : device_t(mconfig, type, name, tag, owner, clock, shortname, source), +tx1_sound_device::tx1_sound_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock) + : device_t(mconfig, type, tag, owner, clock), device_sound_interface(mconfig, *this), m_stream(nullptr), m_freq_to_step(0), @@ -335,10 +335,10 @@ static const double bb_engine_gains[16] = -1.0/(1.0/(BUGGYBOY_R1S + BUGGYBOY_R2S + BUGGYBOY_R3S + BUGGYBOY_R4S) + 1.0/100e3)/100e3, }; -const device_type BUGGYBOY = device_creator<buggyboy_sound_device>; +DEFINE_DEVICE_TYPE(BUGGYBOY, buggyboy_sound_device, "buggyboy_sound", "Buggy Boy Audio Custom") buggyboy_sound_device::buggyboy_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) - : tx1_sound_device(mconfig, BUGGYBOY, "Buggy Boy Audio Custom", tag, owner, clock, "buggyboy_sound", __FILE__) + : tx1_sound_device(mconfig, BUGGYBOY, tag, owner, clock) { } |