Skip to content

Commit

Permalink
Call filter after config (Fixes #50)
Browse files Browse the repository at this point in the history
when the sidemu have been added to the mixer
  • Loading branch information
drfiemost committed Oct 3, 2024
1 parent 1c78517 commit 2d71b0d
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -757,16 +757,12 @@ bool ConsolePlayer::createSidEmu (SIDEMUS emu, const SidTuneInfo *tuneInfo)
}
}

#ifndef FEAT_FILTER_DISABLE
if (m_engCfg.sidEmulation) {
/* set up SID filter. HardSID just ignores call with def. */
#ifdef FEAT_FILTER_DISABLE
m_engine.filter(0, m_filter.enabled);
m_engine.filter(1, m_filter.enabled);
m_engine.filter(2, m_filter.enabled);
#else
m_engCfg.sidEmulation->filter(m_filter.enabled);
#endif
m_engCfg.sidEmulation->filter(m_filter.enabled);
}
#endif

return true;

Expand Down Expand Up @@ -812,6 +808,12 @@ bool ConsolePlayer::open (void)
displayError(m_engine.error ());
return false;
}

#ifdef FEAT_FILTER_DISABLE
m_engine.filter(0, m_filter.enabled);
m_engine.filter(1, m_filter.enabled);
m_engine.filter(2, m_filter.enabled);
#endif
#ifdef FEAT_REGS_DUMP_SID
if (
(
Expand Down

0 comments on commit 2d71b0d

Please sign in to comment.