summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/audio/lynx.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/audio/lynx.h')
-rw-r--r--src/mame/audio/lynx.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/mame/audio/lynx.h b/src/mame/audio/lynx.h
index 0476a39f176..670f3ff2a76 100644
--- a/src/mame/audio/lynx.h
+++ b/src/mame/audio/lynx.h
@@ -16,7 +16,7 @@ public:
DECLARE_READ8_MEMBER(read);
DECLARE_WRITE8_MEMBER(write);
void count_down(int nr);
- template<typename Object> void set_timer_delegate(Object &&cb) { m_timer_delegate = std::forward<Object>(cb); }
+ template <typename... T> void set_timer_delegate(T &&... args) { m_timer_delegate = timer_delegate(std::forward<T>(args)...); }
protected:
struct LYNX_AUDIO {
@@ -82,9 +82,4 @@ protected:
DECLARE_DEVICE_TYPE(LYNX_SND, lynx_sound_device)
DECLARE_DEVICE_TYPE(LYNX2_SND, lynx2_sound_device)
-
-#define MCFG_LYNX_SND_SET_TIMER( _class, _method) \
- downcast<lynx_sound_device &>(*device).set_timer_delegate(lynx_sound_device::timer_delegate(&_class::_method, #_class "::" #_method, nullptr, (_class *)nullptr));
-
-
#endif // MAME_AUDIO_LYNX_H