summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/3812intf.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/sound/3812intf.h')
-rw-r--r--src/devices/sound/3812intf.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/devices/sound/3812intf.h b/src/devices/sound/3812intf.h
index 910b51521ba..47fd0247314 100644
--- a/src/devices/sound/3812intf.h
+++ b/src/devices/sound/3812intf.h
@@ -5,7 +5,7 @@
#define MCFG_YM3812_IRQ_HANDLER(cb) \
- devcb = &downcast<ym3812_device &>(*device).set_irq_handler((DEVCB_##cb));
+ downcast<ym3812_device &>(*device).set_irq_handler((DEVCB_##cb));
class ym3812_device : public device_t, public device_sound_interface
{
@@ -14,6 +14,7 @@ public:
// configuration helpers
template <class Object> devcb_base &set_irq_handler(Object &&cb) { return m_irq_handler.set_callback(std::forward<Object>(cb)); }
+ auto irq_handler() { return m_irq_handler.bind(); }
DECLARE_READ8_MEMBER( read );
DECLARE_WRITE8_MEMBER( write );