summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/rf5c68.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/sound/rf5c68.h')
-rw-r--r--src/devices/sound/rf5c68.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/devices/sound/rf5c68.h b/src/devices/sound/rf5c68.h
index 262efb54286..d8cd3bf344a 100644
--- a/src/devices/sound/rf5c68.h
+++ b/src/devices/sound/rf5c68.h
@@ -28,15 +28,7 @@ public:
rf5c68_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- void set_end_callback(sample_end_cb_delegate callback) { m_sample_end_cb = callback; }
- template <class FunctionClass> void set_end_callback(const char *devname, void (FunctionClass::*callback)(int), const char *name)
- {
- set_end_callback(sample_end_cb_delegate(callback, name, devname, static_cast<FunctionClass *>(nullptr)));
- }
- template <class FunctionClass> void set_end_callback(void (FunctionClass::*callback)(int), const char *name)
- {
- set_end_callback(sample_end_cb_delegate(callback, name, nullptr, static_cast<FunctionClass *>(nullptr)));
- }
+ template <typename... T> void set_end_callback(T &&... args) { m_sample_end_cb.set(std::forward<T>(args)...); }
u8 rf5c68_r(offs_t offset);
void rf5c68_w(offs_t offset, u8 data);