summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Robbbert <Robbbert@users.noreply.github.com>2018-08-05 10:18:06 +1000
committer Robbbert <Robbbert@users.noreply.github.com>2018-08-05 10:18:06 +1000
commit84a4bbc183459ace82285a7219af22d0e9d37785 (patch)
tree39c000757164ae77468611485d878fec1eea8ad7
parent0ef51bb6fbfb4dd38fcad4ee28f8fb904640bf10 (diff)
Fix for spectar sounds [Jim Hernandez]
-rw-r--r--src/mame/audio/targ.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mame/audio/targ.cpp b/src/mame/audio/targ.cpp
index fbdfc484172..08567e3e1de 100644
--- a/src/mame/audio/targ.cpp
+++ b/src/mame/audio/targ.cpp
@@ -63,15 +63,15 @@ WRITE8_MEMBER( exidy_state::targ_audio_1_w )
/* shot */
if (FALLING_EDGE(0x02) && !m_samples->playing(0)) m_samples->start(0,1);
- if (RISING_EDGE(0x02)) m_samples->stop(0);
+ if (RISING_EDGE(0x02)) m_samples->start(0,1);
/* crash */
if (RISING_EDGE(0x20))
{
if (data & 0x40)
- m_samples->start(1,2);
- else
m_samples->start(1,0);
+ else
+ m_samples->start(1,2);
}
/* Sspec */
@@ -137,6 +137,7 @@ static const char *const sample_names[] =
};
+
void exidy_state::common_audio_start(int freq)
{
m_max_freq = freq;