Fix for spectar sounds [Jim Hernandez]

This commit is contained in:
Robbbert 2018-08-05 10:18:06 +10:00
parent 0ef51bb6fb
commit 84a4bbc183

View File

@ -63,15 +63,15 @@ WRITE8_MEMBER( exidy_state::targ_audio_1_w )
/* shot */ /* shot */
if (FALLING_EDGE(0x02) && !m_samples->playing(0)) m_samples->start(0,1); 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 */ /* crash */
if (RISING_EDGE(0x20)) if (RISING_EDGE(0x20))
{ {
if (data & 0x40) if (data & 0x40)
m_samples->start(1,2);
else
m_samples->start(1,0); m_samples->start(1,0);
else
m_samples->start(1,2);
} }
/* Sspec */ /* Sspec */
@ -137,6 +137,7 @@ static const char *const sample_names[] =
}; };
void exidy_state::common_audio_start(int freq) void exidy_state::common_audio_start(int freq)
{ {
m_max_freq = freq; m_max_freq = freq;