summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/samples.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/sound/samples.h')
-rw-r--r--src/devices/sound/samples.h18
1 files changed, 1 insertions, 17 deletions
diff --git a/src/devices/sound/samples.h b/src/devices/sound/samples.h
index f3b6033021f..f5f1ca088f0 100644
--- a/src/devices/sound/samples.h
+++ b/src/devices/sound/samples.h
@@ -21,27 +21,12 @@
// device type definition
DECLARE_DEVICE_TYPE(SAMPLES, samples_device)
-
-
//**************************************************************************
-// INTERFACE CONFIGURATION MACROS
+// TYPE DEFINITIONS
//**************************************************************************
-#define MCFG_SAMPLES_CHANNELS(_channels) \
- downcast<samples_device &>(*device).set_channels(_channels);
-
-#define MCFG_SAMPLES_NAMES(_names) \
- downcast<samples_device &>(*device).set_samples_names(_names);
-
#define SAMPLES_START_CB_MEMBER(_name) void _name()
-#define MCFG_SAMPLES_START_CB(_class, _method) \
- downcast<samples_device &>(*device).set_samples_start_callback(samples_device::start_cb_delegate(&_class::_method, #_class "::" #_method, this));
-
-//**************************************************************************
-// TYPE DEFINITIONS
-//**************************************************************************
-
// ======================> samples_device
class samples_device : public device_t,
@@ -58,7 +43,6 @@ public:
void set_samples_names(const char *const *names) { m_names = names; }
// start callback helpers
- template <typename Object> void set_samples_start_callback(Object &&cb) { m_samples_start_cb = std::forward<Object>(cb); }
void set_samples_start_callback(start_cb_delegate callback) { m_samples_start_cb = callback; }
template <class FunctionClass> void set_samples_start_callback(const char *devname, void (FunctionClass::*callback)(), const char *name)
{