summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author leesaudan2 <leesaudan2@users.noreply.github.com>2021-01-22 01:53:37 +0800
committer GitHub <noreply@github.com>2021-01-21 12:53:37 -0500
commit7026d1dfd3caac5bb613bd1a3a540595c7edd6ad (patch)
tree38a6d8c699e884df0cfda889523a775834cb30f8
parentfdc6ef42b904f3fba065818b6ff637a265a2e817 (diff)
Apple 2 floppy drive (diskiing, diskiing13): added sounds (#7685)
-rw-r--r--src/devices/bus/a2bus/a2diskiing.cpp4
-rw-r--r--src/devices/imagedev/floppy.cpp6
2 files changed, 6 insertions, 4 deletions
diff --git a/src/devices/bus/a2bus/a2diskiing.cpp b/src/devices/bus/a2bus/a2diskiing.cpp
index 9ce3a0df64c..45d792c761c 100644
--- a/src/devices/bus/a2bus/a2diskiing.cpp
+++ b/src/devices/bus/a2bus/a2diskiing.cpp
@@ -64,14 +64,14 @@ void diskiing_device::device_add_mconfig(machine_config &config)
{
DISKII_FDC(config, m_wozfdc, 1021800*2);
for (auto &floppy : m_floppy)
- FLOPPY_CONNECTOR(config, floppy, a2_floppies, "525", diskiing_device::floppy_formats);
+ FLOPPY_CONNECTOR(config, floppy, a2_floppies, "525", diskiing_device::floppy_formats).enable_sound(true);
}
void a2bus_diskiing13_device::device_add_mconfig(machine_config &config)
{
DISKII_FDC(config, m_wozfdc, 1021800*2);
for (auto &floppy : m_floppy)
- FLOPPY_CONNECTOR(config, floppy, a2_floppies, "525", a2bus_diskiing13_device::floppy_formats);
+ FLOPPY_CONNECTOR(config, floppy, a2_floppies, "525", a2bus_diskiing13_device::floppy_formats).enable_sound(true);
}
//-------------------------------------------------
diff --git a/src/devices/imagedev/floppy.cpp b/src/devices/imagedev/floppy.cpp
index af79d45af97..3bdf22a5f4e 100644
--- a/src/devices/imagedev/floppy.cpp
+++ b/src/devices/imagedev/floppy.cpp
@@ -759,8 +759,10 @@ void floppy_image_device::seek_phase_w(int phases)
cache_clear();
- if(TRACE_STEP && (next_pos != cur_pos))
- logerror("track %d.%d\n", cyl, subcyl);
+ if(next_pos != cur_pos) {
+ if (TRACE_STEP) logerror("track %d.%d\n", cyl, subcyl);
+ if (m_make_sound) m_sound_out->step(subcyl);
+ }
/* Update disk detection if applicable */
if (exists() && !dskchg_writable)