summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Lord-Nightmare <Lord-Nightmare@users.noreply.github.com>2017-06-11 22:29:36 -0400
committer Lord-Nightmare <Lord-Nightmare@users.noreply.github.com>2017-06-11 22:29:36 -0400
commit96ed3869ff8461670a940a0ef4cc3e0274938a29 (patch)
treee26d1197fdeabf26ae42d48821aded097dea2ba1
parent0aca016ad25a6711ca42de8a8721927db0b65256 (diff)
ay8910.cpp: Fixed device_clock_changed to respect the YM2149_PIN26_LOW flag. Fixes MameTesters #06614 [Lord Nightmare]
-rw-r--r--src/devices/sound/ay8910.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/devices/sound/ay8910.cpp b/src/devices/sound/ay8910.cpp
index b7be0cbf46e..9eab30544e8 100644
--- a/src/devices/sound/ay8910.cpp
+++ b/src/devices/sound/ay8910.cpp
@@ -1200,12 +1200,6 @@ void ay8910_device::device_start()
m_streams = 1;
}
- // FIXME: this doesn't belong here, it should be an input pin exposed via devcb
- if (type() == YM2149 && (m_flags & YM2149_PIN26_LOW))
- {
- master_clock /= 2;
- }
-
build_mixer_table();
/* The envelope is pacing twice as fast for the YM2149 as for the AY-3-8910, */
@@ -1267,6 +1261,11 @@ void ay8910_device::set_volume(int channel,int volume)
void ay8910_device::ay_set_clock(int clock)
{
+ // FIXME: this doesn't belong here, it should be an input pin exposed via devcb
+ if (type() == YM2149 && (m_flags & YM2149_PIN26_LOW))
+ {
+ clock /= 2;
+ }
m_channel->set_sample_rate( clock / 8 );
}