fix excessive sound init
@@ -148,21 +148,11 @@ void fmboard_reset(const NP2CFG *pConfig, SOUNDID nSoundID)
soundrom_reset();
beep_reset(); // ver0.27a
- if (g_nSoundID != nSoundID)
- {
- for (i = 0; i < NELEMENTS(g_opna); i++)
- {
- opna_reset(&g_opna[i], 0);
- }
- opl3_reset(&g_opl3, 0);
- }
-
extfn = NULL;
pcm86_reset();
cs4231_reset();
board14_reset(pConfig, (nSoundID == SOUNDID_PC_9801_14) ? TRUE : FALSE);
- amd98_reset(pConfig);
switch (nSoundID)
{
@@ -216,6 +206,7 @@ void fmboard_reset(const NP2CFG *pConfig, SOUNDID nSoundID)
break;
case SOUNDID_AMD98:
+ amd98_reset(pConfig);
break;
case SOUNDID_SOUNDORCHESTRA:
