From: Toni Wilen Date: Mon, 6 Jul 2015 17:26:25 +0000 (+0300) Subject: Only one sound board can be active at the moment. X-Git-Tag: 3200~150 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=2b0c155246f80b59fc78ca69f8e1f1a1af293233;p=francis%2Fwinuae.git Only one sound board can be active at the moment. --- 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);