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.h43
1 files changed, 0 insertions, 43 deletions
diff --git a/src/devices/sound/volt_reg.h b/src/devices/sound/volt_reg.h
deleted file mode 100644
index dd036dbad28..00000000000
--- a/src/devices/sound/volt_reg.h
+++ /dev/null
@@ -1,43 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:smf
-/***************************************************************************
-
- volt_reg.h
-
- Voltage Regulator
-
-***************************************************************************/
-
-#ifndef MAME_SOUND_VOLT_REG_H
-#define MAME_SOUND_VOLT_REG_H
-
-#pragma once
-
-
-#define MCFG_VOLTAGE_REGULATOR_OUTPUT(_output) \
- voltage_regulator_device::set_output(*device, _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; }
-
- voltage_regulator_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
-
- virtual bool issound() override { return false; }
-
-protected:
- // device-level overrides
- virtual void device_start() override;
-
- // sound stream update overrides
- virtual void sound_stream_update(sound_stream &stream, stream_sample_t **inputs, stream_sample_t **outputs, int samples) override;
-
-private:
- sound_stream* m_stream;
- stream_sample_t m_output;
-};
-
-DECLARE_DEVICE_TYPE(VOLTAGE_REGULATOR, voltage_regulator_device)
-
-#endif // MAME_SOUND_VOLT_REG_H