// license:MAME // copyright-holders:smf /*************************************************************************** scsicd.c - Implementation of a SCSI CD-ROM device ***************************************************************************/ #include "scsicd.h" // device type definition const device_type SCSICD = &device_creator; scsicd_device::scsicd_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : scsihle_device(mconfig, SCSICD, "SCSI CD", tag, owner, clock, "scsicd", __FILE__) { } scsicd_device::scsicd_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) : scsihle_device(mconfig, type, name, tag, owner, clock, shortname, source) { } void scsicd_device::device_start() { m_image = subdevice("image"); m_cdda = subdevice("cdda"); scsihle_device::device_start(); } cdrom_interface scsicd_device::cd_intf = { "cdrom", NULL }; static MACHINE_CONFIG_FRAGMENT(scsi_cdrom) MCFG_CDROM_ADD("image", scsicd_device::cd_intf) MCFG_SOUND_ADD("cdda", CDDA, 0) MACHINE_CONFIG_END machine_config_constructor scsicd_device::device_mconfig_additions() const { return MACHINE_CONFIG_NAME(scsi_cdrom); }