summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/sn76496.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/sound/sn76496.h')
-rw-r--r--src/devices/sound/sn76496.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/devices/sound/sn76496.h b/src/devices/sound/sn76496.h
index 741b6b0bcd7..b518fa25398 100644
--- a/src/devices/sound/sn76496.h
+++ b/src/devices/sound/sn76496.h
@@ -19,20 +19,15 @@ DECLARE_DEVICE_TYPE(GAMEGEAR, gamegear_device)
DECLARE_DEVICE_TYPE(SEGAPSG, segapsg_device)
-#define MCFG_SN76496_READY_HANDLER(cb) \
- downcast<sn76496_base_device &>(*device).set_ready_handler((DEVCB_##cb));
-
class sn76496_base_device : public device_t, public device_sound_interface
{
public:
- // configuration helpers
- template <class Object> devcb_base &set_ready_handler(Object &&cb) { return m_ready_handler.set_callback(std::forward<Object>(cb)); }
+ auto ready_cb() { return m_ready_handler.bind(); }
DECLARE_WRITE8_MEMBER( stereo_w );
void write(uint8_t data);
DECLARE_WRITE8_MEMBER( command_w ) { write(data); }
DECLARE_READ_LINE_MEMBER( ready_r ) { return m_ready_state ? 1 : 0; }
- auto ready_cb() { return m_ready_handler.bind(); }
protected:
sn76496_base_device(