diff options
Diffstat (limited to 'src/mame/drivers/truco.cpp')
-rw-r--r-- | src/mame/drivers/truco.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mame/drivers/truco.cpp b/src/mame/drivers/truco.cpp index c3b9d09b7f9..dcbd0815e05 100644 --- a/src/mame/drivers/truco.cpp +++ b/src/mame/drivers/truco.cpp @@ -454,8 +454,9 @@ MACHINE_CONFIG_START(truco_state::truco) /* sound hardware */ SPEAKER(config, "speaker").front_center(); MCFG_DEVICE_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.4) - MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) - MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) + voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0)); + vref.set_output(5.0); + vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); MACHINE_CONFIG_END |