From 7e97936b57c5cac8bc5c8dfbfbf2e0379f4a3970 Mon Sep 17 00:00:00 2001 From: wd40yasu Date: Thu, 7 Mar 2024 08:32:54 +0900 Subject: [PATCH] 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. --- src/mame/nichibutsu/armedf.cpp | 2 +- src/mame/nichibutsu/gomoku_a.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mame/nichibutsu/armedf.cpp b/src/mame/nichibutsu/armedf.cpp index 75e585e32aa..f2eb9e75a38 100644 --- a/src/mame/nichibutsu/armedf.cpp +++ b/src/mame/nichibutsu/armedf.cpp @@ -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) diff --git a/src/mame/nichibutsu/gomoku_a.cpp b/src/mame/nichibutsu/gomoku_a.cpp index 7fb6bed339e..30e08c94711 100644 --- a/src/mame/nichibutsu/gomoku_a.cpp +++ b/src/mame/nichibutsu/gomoku_a.cpp @@ -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;