diff options
Diffstat (limited to 'src/devices/sound/volt_reg.h')
-rw-r--r-- | src/devices/sound/volt_reg.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/sound/volt_reg.h b/src/devices/sound/volt_reg.h index dd036dbad28..f687b3a7713 100644 --- a/src/devices/sound/volt_reg.h +++ b/src/devices/sound/volt_reg.h @@ -15,12 +15,12 @@ #define MCFG_VOLTAGE_REGULATOR_OUTPUT(_output) \ - voltage_regulator_device::set_output(*device, _output); + downcast<voltage_regulator_device &>(*device).set_output(_output); class voltage_regulator_device : public device_t, public device_sound_interface { public: - static void set_output(device_t &device, double analogue_dc) { downcast<voltage_regulator_device &>(device).m_output = (analogue_dc * 32768) / 5.0f; } + void set_output(double analogue_dc) { m_output = (analogue_dc * 32768) / 5.0f; } voltage_regulator_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); |