apple2gs: added floppy drive sounds (for new IWM implementation) (#7793)

This commit is contained in:
leesaudan2 2021-02-16 12:25:52 +08:00 committed by GitHub
parent 61e0c1d4da
commit 6479fc5df0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,26 +60,26 @@ public:
// 5.25
static void floppies_525(device_slot_interface &device);
template<typename T> static void add_525_13(machine_config &config, T &floppy) {
FLOPPY_CONNECTOR(config, floppy, floppies_525, "525", formats_525_13);
FLOPPY_CONNECTOR(config, floppy, floppies_525, "525", formats_525_13).enable_sound(true);
}
template<typename T> static void add_525_13_nc(machine_config &config, T &floppy) {
FLOPPY_CONNECTOR(config, floppy, floppies_525, nullptr, formats_525_13);
FLOPPY_CONNECTOR(config, floppy, floppies_525, nullptr, formats_525_13).enable_sound(true);
}
template<typename T> static void add_525(machine_config &config, T &floppy) {
FLOPPY_CONNECTOR(config, floppy, floppies_525, "525", formats_525);
FLOPPY_CONNECTOR(config, floppy, floppies_525, "525", formats_525).enable_sound(true);
}
template<typename T> static void add_525_nc(machine_config &config, T &floppy) {
FLOPPY_CONNECTOR(config, floppy, floppies_525, nullptr, formats_525);
FLOPPY_CONNECTOR(config, floppy, floppies_525, nullptr, formats_525).enable_sound(true);
}
// 3.5
static void floppies_35(device_slot_interface &device);
template<typename T> static void add_35(machine_config &config, T &floppy) {
FLOPPY_CONNECTOR(config, floppy, floppies_35, "35dd", formats_35);
FLOPPY_CONNECTOR(config, floppy, floppies_35, "35dd", formats_35).enable_sound(true);
}
template<typename T> static void add_35_nc(machine_config &config, T &floppy) {
FLOPPY_CONNECTOR(config, floppy, floppies_35, nullptr, formats_35);
FLOPPY_CONNECTOR(config, floppy, floppies_35, nullptr, formats_35).enable_sound(true);
}
// Sync the state when something external is going to change, like