summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/upd1771.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/sound/upd1771.h')
-rw-r--r--src/devices/sound/upd1771.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/devices/sound/upd1771.h b/src/devices/sound/upd1771.h
index aa570528ed5..20b0467670f 100644
--- a/src/devices/sound/upd1771.h
+++ b/src/devices/sound/upd1771.h
@@ -10,10 +10,6 @@
#define MAME_SOUND_UPD1771_H
-#define MCFG_UPD1771_ACK_HANDLER(_devcb) \
- downcast<upd1771c_device &>(*device).set_ack_handler(DEVCB_##_devcb);
-
-
/***************************************************************************
MACROS / CONSTANTS
***************************************************************************/
@@ -24,7 +20,7 @@ class upd1771c_device : public device_t,
public:
upd1771c_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- template <class Object> devcb_base &set_ack_handler(Object &&cb) { return m_ack_handler.set_callback(std::forward<Object>(cb)); }
+ auto ack_handler() { return m_ack_handler.bind(); }
DECLARE_READ8_MEMBER( read );
DECLARE_WRITE8_MEMBER( write );