summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2020-03-26 15:14:52 -0400
committer AJR <ajrhacker@users.noreply.github.com>2020-03-26 15:15:32 -0400
commit11f9f6166b8d27c613cf88c88dca9985225aa612 (patch)
treee0889a5f0fa964c7a73541ba70587839683dcbc3 /src/mame/drivers
parent5ba56a827b1c856a7ca2dd04256b8adc4fed1c67 (diff)
ym2151: Add YM2414 as alias (no attempt at emulating distinctive features at the moment) (nw)
Diffstat (limited to 'src/mame/drivers')
-rw-r--r--src/mame/drivers/korgz3.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/mame/drivers/korgz3.cpp b/src/mame/drivers/korgz3.cpp
index 48c8d3ce530..f0ffd54d4a0 100644
--- a/src/mame/drivers/korgz3.cpp
+++ b/src/mame/drivers/korgz3.cpp
@@ -12,6 +12,8 @@
#include "machine/adc0808.h"
#include "machine/nvram.h"
#include "machine/pic8259.h"
+#include "sound/ym2151.h"
+#include "speaker.h"
class korgz3_state : public driver_device
{
@@ -94,7 +96,7 @@ void korgz3_state::synth_map(address_map &map)
map(0x0000, 0x0027).m(m_synthcpu, FUNC(hd6301y_cpu_device::hd6301y_io));
map(0x0040, 0x013f).ram();
map(0x2000, 0x2000).nopr();
- //map(0x3800, 0x3801).rw("ymsnd", FUNC(ym2414_device::read), FUNC(ym2414_device::write));
+ map(0x3800, 0x3801).rw("ymsnd", FUNC(ym2414_device::read), FUNC(ym2414_device::write));
map(0x4000, 0x7fff).ram().share("nvram");
map(0x8000, 0xffff).rom().region("hd6303_program", 0);
}
@@ -125,7 +127,12 @@ void korgz3_state::korgz3(machine_config &config)
M58990(config, m_adc, 1'000'000); // M58990P-1
- //YM2414(config, "ymsnd", ?'???'???); // YM2414B
+ SPEAKER(config, "lspeaker").front_left();
+ SPEAKER(config, "rspeaker").front_right();
+
+ ym2414_device &ymsnd(YM2414(config, "ymsnd", 3'579'545)); // YM2414B
+ ymsnd.add_route(0, "lspeaker", 0.60);
+ ymsnd.add_route(1, "rspeaker", 0.60);
}
ROM_START(korgz3)