volt_reg: output of 32768 is above mame's sound stream cutoff(-32768 to 32767) (nw)

This commit is contained in:
hap 2019-02-19 13:11:22 +01:00
parent b909c6e1a3
commit e284f32669

View File

@ -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 * 32768) / 5.0f; return *this; }
voltage_regulator_device &set_output(double analogue_dc) { m_output = (analogue_dc * 32767) / 5.0f; return *this; }
voltage_regulator_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0);