summaryrefslogtreecommitdiffstats
path: root/src/devices/sound/samples.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/sound/samples.cpp')
-rw-r--r--src/devices/sound/samples.cpp21
1 files changed, 10 insertions, 11 deletions
diff --git a/src/devices/sound/samples.cpp b/src/devices/sound/samples.cpp
index 3363d8ad026..40ff619cdce 100644
--- a/src/devices/sound/samples.cpp
+++ b/src/devices/sound/samples.cpp
@@ -23,8 +23,10 @@
***************************************************************************/
#include "emu.h"
-#include "emuopts.h"
#include "samples.h"
+
+#include "emuopts.h"
+
#include "flac.h"
@@ -33,7 +35,7 @@
//**************************************************************************
// device type definition
-const device_type SAMPLES = device_creator<samples_device>;
+DEFINE_DEVICE_TYPE(SAMPLES, samples_device, "samples", "Samples")
@@ -46,18 +48,15 @@ const device_type SAMPLES = device_creator<samples_device>;
//-------------------------------------------------
samples_device::samples_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
- : device_t(mconfig, SAMPLES, "Samples", tag, owner, clock, "samples", __FILE__),
- device_sound_interface(mconfig, *this),
- m_channels(0),
- m_names(nullptr)
+ : samples_device(mconfig, SAMPLES, tag, owner, clock)
{
}
-samples_device::samples_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),
- device_sound_interface(mconfig, *this),
- m_channels(0),
- m_names(nullptr)
+samples_device::samples_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_channels(0)
+ , m_names(nullptr)
{
}