summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2022-07-12 19:52:38 +0200
committer hap <happppp@users.noreply.github.com>2022-07-12 19:52:38 +0200
commita1112562e26e917940bae92341cc3a2864d647e3 (patch)
tree90652bfb7dbbb1a953fafd80c9c6758b0a4909a3 /src/devices/sound
parent0675bd5694f14d56a00dbebd1fe01278155b1650 (diff)
dac: remove dac_4bit_binary_weighted_sign_magnitude_longcat_device
Diffstat (limited to 'src/devices/sound')
-rw-r--r--src/devices/sound/dac.cpp17
-rw-r--r--src/devices/sound/dac.h2
2 files changed, 0 insertions, 19 deletions
diff --git a/src/devices/sound/dac.cpp b/src/devices/sound/dac.cpp
index 926e2444a76..f32d61006bc 100644
--- a/src/devices/sound/dac.cpp
+++ b/src/devices/sound/dac.cpp
@@ -62,23 +62,6 @@ stream_buffer::sample_t dac_mapper_ones_complement(u32 input, u8 bits)
//-------------------------------------------------
-// dac_mapper_ones_complement - map a value where
-// the top bit is a sign bit and the lower bits
-// are absolute magnitude
-//-------------------------------------------------
-
-stream_buffer::sample_t dac_mapper_sign_magnitude(u32 input, u8 bits)
-{
- // this mapping assumes symmetric reference voltages,
- // which is true for all existing cases
- if (BIT(input, bits - 1))
- return 0.5 - 0.5 * dac_mapper_unsigned(input, bits - 1);
- else
- return 0.5 + 0.5 * dac_mapper_unsigned(input, bits - 1);
-}
-
-
-//-------------------------------------------------
// dac_device_base - constructor
//-------------------------------------------------
diff --git a/src/devices/sound/dac.h b/src/devices/sound/dac.h
index ee6f5df0fe9..172e56592ee 100644
--- a/src/devices/sound/dac.h
+++ b/src/devices/sound/dac.h
@@ -44,7 +44,6 @@ using dac_mapper_callback = stream_buffer::sample_t (*)(u32 input, u8 bits);
stream_buffer::sample_t dac_mapper_unsigned(u32 input, u8 bits);
stream_buffer::sample_t dac_mapper_signed(u32 input, u8 bits);
stream_buffer::sample_t dac_mapper_ones_complement(u32 input, u8 bits);
-stream_buffer::sample_t dac_mapper_sign_magnitude(u32 input, u8 bits);
// ======================> dac_bit_interface
@@ -239,7 +238,6 @@ DAC_GENERATOR(DAC_16BIT_R2R_TWOS_COMPLEMENT, dac_16bit_r2r_twos_complement_devic
// special odd cases -- are these real?
DAC_GENERATOR(DAC_2BIT_BINARY_WEIGHTED_ONES_COMPLEMENT, dac_2bit_binary_weighted_ones_complement_device, dac_byte_device_base, dac_mapper_ones_complement, 2, dac_gain_bw, "2-Bit Binary Weighted Ones Complement DAC", "dac_2bit_bw_oc")
-DAC_GENERATOR(DAC_4BIT_BINARY_WEIGHTED_SIGN_MAGNITUDE, dac_4bit_binary_weighted_sign_magnitude_device, dac_byte_device_base, dac_mapper_sign_magnitude, 4, dac_gain_bw, "4-Bit Binary Weighted Sign Magnitude DAC", "dac_4bit_bw_sm")
#undef DAC_GENERATOR