diff options
Diffstat (limited to 'src/mame/audio/segam1audio.h')
-rw-r--r-- | src/mame/audio/segam1audio.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/mame/audio/segam1audio.h b/src/mame/audio/segam1audio.h index c31349b5ea2..9dc09cbf84c 100644 --- a/src/mame/audio/segam1audio.h +++ b/src/mame/audio/segam1audio.h @@ -15,12 +15,6 @@ #define M1AUDIO_MPCM1_REGION "m1audio:pcm1" #define M1AUDIO_MPCM2_REGION "m1audio:pcm2" -#define MCFG_SEGAM1AUDIO_ADD(_tag) \ - MCFG_DEVICE_ADD(_tag, SEGAM1AUDIO, 0) - -#define MCFG_SEGAM1AUDIO_RXD_HANDLER(_devcb) \ - devcb = &downcast<segam1audio_device &>(*device).set_rxd_handler(DEVCB_##_devcb); - //************************************************************************** // TYPE DEFINITIONS @@ -33,7 +27,7 @@ public: segam1audio_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // configuration - template <class Object> devcb_base &set_rxd_handler(Object &&cb) { return m_rxd_handler.set_callback(std::forward<Object>(cb)); } + auto rxd_handler() { return m_rxd_handler.bind(); } DECLARE_WRITE16_MEMBER(m1_snd_mpcm_bnk1_w); DECLARE_WRITE16_MEMBER(m1_snd_mpcm_bnk2_w); |