summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/odyssey2/voice.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/odyssey2/voice.cpp')
-rw-r--r--src/devices/bus/odyssey2/voice.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/devices/bus/odyssey2/voice.cpp b/src/devices/bus/odyssey2/voice.cpp
index 83c199f7431..073b4a83173 100644
--- a/src/devices/bus/odyssey2/voice.cpp
+++ b/src/devices/bus/odyssey2/voice.cpp
@@ -43,8 +43,7 @@ void o2_voice_device::device_start()
// device_add_mconfig - add device configuration
//-------------------------------------------------
-void o2_voice_device::device_add_mconfig(machine_config &config)
-{
+MACHINE_CONFIG_START(o2_voice_device::device_add_mconfig)
SPEAKER(config, "mono").front_center();
SP0256(config, m_speech, 3120000);
@@ -52,8 +51,8 @@ void o2_voice_device::device_add_mconfig(machine_config &config)
// The Voice uses a speaker with its own volume control so the relative volumes to use are subjective, these sound good
m_speech->add_route(ALL_OUTPUTS, "mono", 1.00);
- O2_CART_SLOT(config, m_subslot, o2_cart, nullptr);
-}
+ MCFG_O2_CARTRIDGE_ADD("subslot", o2_cart, nullptr)
+MACHINE_CONFIG_END
ROM_START( o2voice )