summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/volt_reg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/sound/volt_reg.cpp')
-rw-r--r--src/devices/sound/volt_reg.cpp41
1 files changed, 0 insertions, 41 deletions
diff --git a/src/devices/sound/volt_reg.cpp b/src/devices/sound/volt_reg.cpp
deleted file mode 100644
index aade7ddff01..00000000000
--- a/src/devices/sound/volt_reg.cpp
+++ /dev/null
@@ -1,41 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:smf
-/***************************************************************************
-
- volt_reg.c
-
- Direct current.
-
- TODO:
- - If we continue having this device in MAME, add support for default voltage other
- than (currently hardcoded) 5.0
- - When used in combination with a DAC, vreg device 1st stream update is skipped,
- causing the DAC to fetch invalid input data. Why does this happen?
-
-***************************************************************************/
-
-#include "emu.h"
-#include "volt_reg.h"
-
-DEFINE_DEVICE_TYPE(VOLTAGE_REGULATOR, voltage_regulator_device, "volt_reg", "Voltage Regulator")
-
-voltage_regulator_device::voltage_regulator_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) :
- device_t(mconfig, VOLTAGE_REGULATOR, tag, owner, clock),
- device_sound_interface(mconfig, *this),
- m_stream(nullptr),
- m_output(0x7fff)
-{
-}
-
-void voltage_regulator_device::device_start()
-{
- m_stream = stream_alloc(0, 1, 500);
-}
-
-void voltage_regulator_device::sound_stream_update(sound_stream &stream, stream_sample_t **inputs, stream_sample_t **outputs, int samples)
-{
- for (int samp = 0; samp < samples; samp++)
- {
- outputs[0][samp] = m_output;
- }
-}