From 2b0c155246f80b59fc78ca69f8e1f1a1af293233 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Mon, 6 Jul 2015 20:26:25 +0300 Subject: [PATCH] Only one sound board can be active at the moment. --- main.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/main.cpp b/main.cpp index e4f6e304..5ad217fc 100644 --- a/main.cpp +++ b/main.cpp @@ -670,6 +670,20 @@ void fixup_prefs (struct uae_prefs *p) if (p->tod_hack && p->cs_ciaatod == 0) p->cs_ciaatod = p->ntscmode ? 2 : 1; + if (p->sound_toccata + p->sound_es1370 + p->sound_fm801 > 1) { + error_log(_T("Only one sound card can be enabled at the same time.")); + if (p->sound_toccata) { + p->sound_es1370 = 0; + p->sound_fm801 = 0; + } else if (p->sound_es1370) { + p->sound_toccata = 0; + p->sound_fm801 = 0; + } else { + p->sound_toccata = 0; + p->sound_es1370 = 0; + } + } + built_in_chipset_prefs (p); blkdev_fix_prefs (p); target_fixup_options (p); -- 2.47.3