diff options
author | 2018-12-21 14:17:30 +0100 | |
---|---|---|
committer | 2018-12-21 14:17:55 +0100 | |
commit | 87323a78c0630772f47e35953ade7581e4dd028a (patch) | |
tree | 0a31282e7d8b56c777521e40576cd83e581e9337 /src/devices/sound/mea8000.h | |
parent | ae37434866ccfd12c9e283f64ce750830332797e (diff) |
-bus/adam/exp, adamnet, bus/coleco, bus/crvision: Removed MCFG macros. [Ryan Holtz]
-sound/es1373, gaelco, mea8000, rf5c68, sn76496, st0016: Removed MCFG macros. [Ryan Holtz]
-drivers/adam, coleco, crvision, fmtowns, gaelco2, spcforce, machine/st0016: Removed MACHINE_CONFIG macros. [Ryan Holtz]
Diffstat (limited to 'src/devices/sound/mea8000.h')
-rw-r--r-- | src/devices/sound/mea8000.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/devices/sound/mea8000.h b/src/devices/sound/mea8000.h index 21764e75b88..23cebceade9 100644 --- a/src/devices/sound/mea8000.h +++ b/src/devices/sound/mea8000.h @@ -13,19 +13,15 @@ #pragma once -#define MCFG_MEA8000_REQ_CALLBACK(_write) \ - downcast<mea8000_device &>(*device).set_reqwr_callback(*device, DEVCB_##_write); - /* define to use double instead of int (slow but useful for debugging) */ #undef MEA8000_FLOAT_MODE - class mea8000_device : public device_t, public device_sound_interface { public: mea8000_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - template <class Object> devcb_base &set_req_wr_callback(Object &&cb) { return m_write_req.set_callback(std::forward<Object>(cb)); } + auto req() { return m_write_req.bind(); } DECLARE_READ8_MEMBER(read); DECLARE_WRITE8_MEMBER(write); @@ -46,7 +42,7 @@ private: enum class mea8000_state : u8 { STOPPED, /* nothing to do, timer disabled */ - WAIT_FIRST, /* received pitch, wait for first full trame, timer disabled */ + WAIT_FIRST, /* received pitch, wait for first full frame, timer disabled */ STARTED, /* playing a frame, timer on */ SLOWING /* repeating last frame with decreasing amplitude, timer on */ }; @@ -55,7 +51,7 @@ private: { #ifdef MEA8000_FLOAT_MODE double fm, last_fm; /* frequency, in Hz */ - double bw, last_bw; /* band-width, in Hz */ + double bw, last_bw; /* bandwidth, in Hz */ double output, last_output; /* filter state */ #else uint16_t fm, last_fm; |