summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/es5503.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/sound/es5503.h')
-rw-r--r--src/devices/sound/es5503.h15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/devices/sound/es5503.h b/src/devices/sound/es5503.h
index 1625f864851..967ec70a2d2 100644
--- a/src/devices/sound/es5503.h
+++ b/src/devices/sound/es5503.h
@@ -5,20 +5,6 @@
#pragma once
-// channels must be a power of two
-
-#define MCFG_ES5503_ADD(_tag, _clock) \
- MCFG_DEVICE_ADD(_tag, ES5503, _clock)
-
-#define MCFG_ES5503_OUTPUT_CHANNELS(_channels) \
- downcast<es5503_device &>(*device).set_channels(_channels);
-
-#define MCFG_ES5503_IRQ_FUNC(_write) \
- downcast<es5503_device &>(*device).set_irqf(DEVCB_##_write);
-
-#define MCFG_ES5503_ADC_FUNC(_read) \
- downcast<es5503_device &>(*device).set_adcf(DEVCB_##_read);
-
// ======================> es5503_device
class es5503_device : public device_t,
@@ -29,6 +15,7 @@ public:
// construction/destruction
es5503_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+ // channels must be a power of two
void set_channels(int channels) { output_channels = channels; }
template <class Object> devcb_base &set_irqf(Object &&cb) { return m_irq_func.set_callback(std::forward<Object>(cb)); }