diff options
author | AJR <ajrhacker@users.noreply.github.com> | 2017-07-04 23:14:15 -0400 |
---|---|---|
committer | AJR <ajrhacker@users.noreply.github.com> | 2018-01-10 02:11:14 -0500 |
commit | 1c6a7ab40ccd23b753777204c7a289e830b2adcb (patch) | |
tree | cef6154209fde4d65ecf098aea12b3093182573a /src/mame/drivers/mc10.cpp | |
parent | 9ee066992dd0126b7ed7450d664bf055d527ab64 (diff) |
New way to provide DAC reference inputs (nw)
- Introduce MCFG_SOUND_REFERENCE_INPUT to provide fixed inputs through the resampler, eliminating the need for the "voltage regulator" device
- Replace memset use in sound.cpp with std::fill
This was my third implementation of this concept. The previous two involved attaching sound streams to the dummy device (which required giving it device_sound_interface and other modifications).
Diffstat (limited to 'src/mame/drivers/mc10.cpp')
-rw-r--r-- | src/mame/drivers/mc10.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/mame/drivers/mc10.cpp b/src/mame/drivers/mc10.cpp index f809b883967..313e2eca108 100644 --- a/src/mame/drivers/mc10.cpp +++ b/src/mame/drivers/mc10.cpp @@ -15,7 +15,6 @@ #include "machine/ram.h" #include "machine/timer.h" #include "sound/dac.h" -#include "sound/volt_reg.h" #include "video/ef9345.h" #include "video/mc6847.h" @@ -513,8 +512,7 @@ MACHINE_CONFIG_START( mc10 ) /* sound hardware */ MCFG_SPEAKER_STANDARD_MONO("speaker") MCFG_SOUND_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.0625) - MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) - MCFG_SOUND_ROUTE_EX(0, "dac", 1.0, DAC_VREF_POS_INPUT) + MCFG_SOUND_REFERENCE_INPUT(DAC_VREF_POS_INPUT, 1.0) MCFG_CASSETTE_ADD("cassette") MCFG_CASSETTE_FORMATS(coco_cassette_formats) @@ -555,8 +553,7 @@ MACHINE_CONFIG_START( alice32 ) /* sound hardware */ MCFG_SPEAKER_STANDARD_MONO("speaker") MCFG_SOUND_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.0625) - MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) - MCFG_SOUND_ROUTE_EX(0, "dac", 1.0, DAC_VREF_POS_INPUT) + MCFG_SOUND_REFERENCE_INPUT(DAC_VREF_POS_INPUT, 1.0) MCFG_CASSETTE_ADD("cassette") MCFG_CASSETTE_FORMATS(alice32_cassette_formats) |