qbert: Better approximation of Votrax frequencies, pending deeper analysis.

This commit is contained in:
Aaron Giles 2020-09-13 20:45:30 -07:00
parent d54e0e3f9f
commit 83e54266ab

View File

@ -347,7 +347,7 @@ void gottlieb_sound_r1_with_votrax_device::device_post_load()
gottlieb_sound_r1_device::device_post_load();
// totally random guesswork; would like to get real measurements on a board
m_votrax->set_unscaled_clock(600000 + (m_last_speech_clock - 0xa0) * 10000);
m_votrax->set_unscaled_clock(900000 + (m_last_speech_clock - 0xa0) * 9000);
}
@ -371,7 +371,7 @@ void gottlieb_sound_r1_with_votrax_device::votrax_data_w(uint8_t data)
void gottlieb_sound_r1_with_votrax_device::speech_clock_dac_w(uint8_t data)
{
// prevent negative clock values (and possible crash)
if (data < 0x65) data = 0x65;
if (data < 0x60) data = 0x60;
// nominal clock is 0xa0
if (data != m_last_speech_clock)
@ -379,7 +379,7 @@ void gottlieb_sound_r1_with_votrax_device::speech_clock_dac_w(uint8_t data)
logerror("clock = %02X\n", data);
// totally random guesswork; would like to get real measurements on a board
m_votrax->set_unscaled_clock(600000 + (data - 0xa0) * 10000);
m_votrax->set_unscaled_clock(900000 + (data - 0xa0) * 9000);
m_last_speech_clock = data;
}
}