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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/sound/volt_reg.h b/src/devices/sound/volt_reg.h
index 8667c18c4c1..516039aac17 100644
--- a/src/devices/sound/volt_reg.h
+++ b/src/devices/sound/volt_reg.h
@@ -17,7 +17,7 @@
class voltage_regulator_device : public device_t, public device_sound_interface
{
public:
- voltage_regulator_device &set_output(double analogue_dc) { m_output = (analogue_dc * 32767) / 5.0f; return *this; }
+ voltage_regulator_device &set_output(double analogue_dc) { m_output = (analogue_dc * 0x7fff) / 5.0f; return *this; }
voltage_regulator_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0);