Fixed sound of gomoku and kozure (by Takahiro Nogi)

gomoku: fixed frequency of oneshot voices

kozure: kozure uses waveform select function of YM3812. Previously MAME used YM3526. This results incorrect tone.
This commit is contained in:
wd40yasu 2024-03-07 08:32:54 +09:00
parent 7f407625e0
commit 7e97936b57
2 changed files with 3 additions and 3 deletions

View File

@ -1240,7 +1240,7 @@ void armedf_state::kozure(machine_config &config)
MCFG_VIDEO_START_OVERRIDE(armedf_state,terraf)
/* sound hardware */
sound_config(config);
sound_config_3812(config);
}
void armedf_state::armedf(machine_config &config)

View File

@ -213,9 +213,9 @@ void gomoku_sound_device::sound2_w(offs_t offset, uint8_t data)
// oneshot frequency is hand tune...
if ((m_soundregs2[0x1d] & 0x0f) < 0x0c)
voice->frequency = 3000 / 16; // ichi, ni, san, yon, go
voice->frequency = (18'432'000 / 96000); // ichi, ni, san, yon, go
else
voice->frequency = 8000 / 16; // shoot
voice->frequency = (18'432'000 / 48000); // shoot
voice->volume = 8;
voice->counter = 0;