From b38d1a1191543452ac1a780bc389f3f46ec3a89d Mon Sep 17 00:00:00 2001 From: Velmyncier <108448686+Velmyncier@users.noreply.github.com> Date: Thu, 15 Aug 2024 20:39:34 -0400 Subject: [PATCH] Add TeraDrive presets --- extern/libsndfile | 2 +- src/gui/presets.cpp | 43 +++++++++++++++++++++++++++++++++++++++---- 2 files changed, 40 insertions(+), 5 deletions(-) diff --git a/extern/libsndfile b/extern/libsndfile index 72f6af15e..ca2008903 160000 --- a/extern/libsndfile +++ b/extern/libsndfile @@ -1 +1 @@ -Subproject commit 72f6af15e8f85157bd622ed45b979025828b7001 +Subproject commit ca2008903f66f856de4cd86e83a387b56260d5b7 diff --git a/src/gui/presets.cpp b/src/gui/presets.cpp index 87133ffc8..e7c3dac6f 100644 --- a/src/gui/presets.cpp +++ b/src/gui/presets.cpp @@ -1203,28 +1203,63 @@ void FurnaceGUI::initSystemPresets() { CH(DIV_SYSTEM_PCSPKR, 1.0f, 0, "") } ); + SUB_ENTRY( + "Sega TeraDrive", { + CH(DIV_SYSTEM_PCSPKR, 1.0f, 0, ""), + CH(DIV_SYSTEM_YM2612, 1.0f, 0, ""), + CH(DIV_SYSTEM_SMS, 0.5f, 0, ""), + } + ); + SUB_SUB_ENTRY( + "Sega TeraDrive (extended channel 3)", { + CH(DIV_SYSTEM_PCSPKR, 1.0f, 0, ""), + CH(DIV_SYSTEM_YM2612_EXT, 1.0f, 0, ""), + CH(DIV_SYSTEM_SMS, 0.5f, 0, "") + } + ); + SUB_SUB_ENTRY( + "Sega TeraDrive (CSM)", { + CH(DIV_SYSTEM_PCSPKR, 1.0f, 0, ""), + CH(DIV_SYSTEM_YM2612_CSM, 1.0f, 0, ""), + CH(DIV_SYSTEM_SMS, 0.5f, 0, "") + } + ); + SUB_SUB_ENTRY( + "Sega TeraDrive (DualPCM)", { + CH(DIV_SYSTEM_PCSPKR, 1.0f, 0, ""), + CH(DIV_SYSTEM_YM2612_DUALPCM, 1.0f, 0, ""), + CH(DIV_SYSTEM_SMS, 0.5f, 0, "") + } + ); + SUB_SUB_ENTRY( + "Sega TeraDrive (DualPCM, extended channel 3)", { + CH(DIV_SYSTEM_PCSPKR, 1.0f, 0, ""), + CH(DIV_SYSTEM_YM2612_DUALPCM_EXT, 1.0f, 0, ""), + CH(DIV_SYSTEM_SMS, 0.5f, 0, "") + } + ); ENTRY( "Sharp X1", { CH(DIV_SYSTEM_AY8910, 1.0f, 0, "clockSel=3") - } + } ); SUB_ENTRY( "Sharp X1 + FM Addon", { CH(DIV_SYSTEM_AY8910, 1.0f, 0, "clockSel=3"), CH(DIV_SYSTEM_YM2151, 1.0f, 0, "clockSel=2") - } + } ); ENTRY( "Sharp X68000", { CH(DIV_SYSTEM_YM2151, 1.0f, 0, "clockSel=2"), CH(DIV_SYSTEM_MSM6258, 1.0f, 0, "clockSel=2") - } + } ); ENTRY( "FM-7", { CH(DIV_SYSTEM_AY8910, 1.0f, 0, "clockSel=12"), CH(DIV_SYSTEM_YM2203, 1.0f, 0, "clockSel=5") - } + } ); SUB_ENTRY( "FM-7 (extended channel 3)", {