diff options
author | 2016-10-06 13:23:02 +0100 | |
---|---|---|
committer | 2016-10-06 13:23:02 +0100 | |
commit | d3228d98e485eae24c446d7e237e67348e64ec81 (patch) | |
tree | 4819a01499ca3ce034984a1a3366e992fc316285 | |
parent | 48774d6c8a8ce3102d492d6703ca6f2458f1ebe5 (diff) |
added "headphones" to atapi cd-rom drives [smf]
-rw-r--r-- | src/devices/bus/isa/ide.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/devices/bus/isa/ide.cpp b/src/devices/bus/isa/ide.cpp index be638b76a7f..6508aaa94cd 100644 --- a/src/devices/bus/isa/ide.cpp +++ b/src/devices/bus/isa/ide.cpp @@ -41,9 +41,22 @@ WRITE_LINE_MEMBER(isa16_ide_device::ide_interrupt) } } +static MACHINE_CONFIG_FRAGMENT(cdrom_headphones) + MCFG_DEVICE_MODIFY("cdda") + MCFG_SOUND_ROUTE(0, "lheadphone", 1.0) + MCFG_SOUND_ROUTE(1, "rheadphone", 1.0) + + MCFG_SPEAKER_STANDARD_STEREO("lheadphone", "rheadphone") +MACHINE_CONFIG_END + static MACHINE_CONFIG_FRAGMENT( ide ) MCFG_IDE_CONTROLLER_ADD("ide", ata_devices, "hdd", nullptr, false) MCFG_ATA_INTERFACE_IRQ_HANDLER(WRITELINE(isa16_ide_device, ide_interrupt)) + + MCFG_DEVICE_MODIFY("ide:0") + MCFG_SLOT_OPTION_MACHINE_CONFIG("cdrom", cdrom_headphones) + MCFG_DEVICE_MODIFY("ide:1") + MCFG_SLOT_OPTION_MACHINE_CONFIG("cdrom", cdrom_headphones) MACHINE_CONFIG_END static INPUT_PORTS_START( ide ) |