summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author mahlemiut <bsr@xnet.co.nz>2017-09-08 13:11:09 +1200
committer mahlemiut <bsr@xnet.co.nz>2017-09-08 13:11:50 +1200
commit8e83d54af54053669b9938b0149c6ad97525d8c6 (patch)
tree2cc7c7eb4e938b9031af80bb81d62931cd202497
parent6da08cf304a7faddaa9f3f86a62c0867fc7f1edc (diff)
leland: fix missing DAC sounds in later Ataxx-era audio.
-rw-r--r--src/mame/audio/leland.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/mame/audio/leland.cpp b/src/mame/audio/leland.cpp
index 43719f7161a..3013f95dcd5 100644
--- a/src/mame/audio/leland.cpp
+++ b/src/mame/audio/leland.cpp
@@ -638,6 +638,9 @@ WRITE16_MEMBER( leland_80186_sound_device::ataxx_dac_control )
m_dac2vol->write(((data >> 3) & 7) << 5);
m_dac3vol->write(((data >> 6) & 3) << 6);
return;
+ case 0x21:
+ dac_w(space, 3, data, mem_mask);
+ return;
}
}
@@ -669,14 +672,6 @@ WRITE16_MEMBER( leland_80186_sound_device::ataxx_dac_control )
return;
}
break;
- default:
- switch (offset)
- {
- case 0x21:
- dac_w(space, 3, data, mem_mask);
- return;
- }
- break;
}
logerror("%05X:Unexpected peripheral write %d/%02X = %02X\n", m_audiocpu->device_t::safe_pc(), 5, offset, data);