summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/volt_reg.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/sound/volt_reg.h')
-rw-r--r--src/devices/sound/volt_reg.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/devices/sound/volt_reg.h b/src/devices/sound/volt_reg.h
index 6493dbc7bd4..f2e5d88298e 100644
--- a/src/devices/sound/volt_reg.h
+++ b/src/devices/sound/volt_reg.h
@@ -20,14 +20,9 @@
class voltage_regulator_device : public device_t, public device_sound_interface
{
public:
- void set_output(double analogue_dc) { m_output = (analogue_dc * 32768) / 5.0f; }
+ voltage_regulator_device &set_output(double analogue_dc) { m_output = (analogue_dc * 32768) / 5.0f; return *this; }
- voltage_regulator_device(const machine_config &mconfig, const char *tag, device_t *owner)
- : voltage_regulator_device(mconfig, tag, owner, (uint32_t)0)
- {
- }
-
- voltage_regulator_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+ voltage_regulator_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0);
virtual bool issound() override { return false; }