@@ -75,9 +75,9 @@ const char* ERR_NOT_ENOUGH_MEMORY = "ERROR: Not enough memory.";
7575const char ConsolePlayer::RESIDFP_ID[] = " ReSIDfp" ;
7676#endif
7777
78- #ifdef HAVE_SIDPLAYFP_BUILDERS_RESIDFPII_H
79- # include < sidplayfp/builders/residfpII .h>
80- const char ConsolePlayer::RESIDFPII_ID [] = " ReSIDfpII " ;
78+ #ifdef HAVE_SIDPLAYFP_BUILDERS_SIDLITE_H
79+ # include < sidplayfp/builders/sidlite .h>
80+ const char ConsolePlayer::SIDLITE_ID [] = " SidLite " ;
8181#endif
8282
8383#ifdef HAVE_SIDPLAYFP_BUILDERS_RESID_H
@@ -412,9 +412,9 @@ ConsolePlayer::ConsolePlayer (const char * const name) :
412412 {
413413 m_driver.sid = EMU_RESIDFP;
414414 }
415- else if (emulation.engine .compare (TEXT (" RESIDFPII " )) == 0 )
415+ else if (emulation.engine .compare (TEXT (" SIDLITE " )) == 0 )
416416 {
417- m_driver.sid = EMU_RESIDFPII ;
417+ m_driver.sid = EMU_SIDLITE ;
418418 }
419419 else if (emulation.engine .compare (TEXT (" RESID" )) == 0 )
420420 {
@@ -736,87 +736,19 @@ bool ConsolePlayer::createSidEmu (SIDEMUS emu, const SidTuneInfo *tuneInfo)
736736 }
737737#endif // HAVE_SIDPLAYFP_BUILDERS_RESIDFP_H
738738
739- #ifdef HAVE_SIDPLAYFP_BUILDERS_RESIDFPII_H
740- case EMU_RESIDFPII :
739+ #ifdef HAVE_SIDPLAYFP_BUILDERS_SIDLITE_H
740+ case EMU_SIDLITE :
741741 {
742742 try
743743 {
744- ReSIDfpIIBuilder *rs = new ReSIDfpIIBuilder ( RESIDFPII_ID );
744+ SIDLiteBuilder *rs = new SIDLiteBuilder ( SIDLITE_ID );
745745
746746 m_engCfg.sidEmulation = rs;
747- rs->combinedWaveformsStrength (m_combinedWaveformsStrength);
748-
749- double frange = m_filter.filterRange6581 ;
750-
751- if (m_autofilter && (tuneInfo->numberOfInfoStrings () == 3 ))
752- {
753- double rfr = getRecommendedFilterRange (tuneInfo->infoString (1 ));
754- if (rfr < 0 .)
755- {
756- if (m_verboseLevel > 1 )
757- cerr << " No recommended filter range available" << endl;
758- }
759- else
760- {
761- if (m_verboseLevel > 1 )
762- cerr << " Recommended filter range: " << rfr << endl;
763- frange = rfr;
764- }
765- }
766-
767- if (m_frange.has_value ())
768- {
769- frange = m_frange.value ();
770- }
771-
772- if ((frange < 0.0 ) || (frange > 1.0 ))
773- {
774- cerr << " Invalid 6581 filter range: " << frange << endl;
775- exit (EXIT_FAILURE);
776- }
777-
778- if (m_verboseLevel)
779- cerr << " 6581 filter range: " << frange << endl;
780- rs->filter6581Range (frange);
781-
782- // 6581
783- double fcurve = m_filter.filterCurve6581 ;
784- if (m_fcurve.has_value ())
785- {
786- fcurve = m_fcurve.value ();
787- }
788-
789- if ((fcurve < 0.0 ) || (fcurve > 1.0 ))
790- {
791- cerr << " Invalid 6581 filter curve: " << fcurve << endl;
792- exit (EXIT_FAILURE);
793- }
794-
795- if (m_verboseLevel)
796- cerr << " 6581 filter curve: " << fcurve << endl;
797- rs->filter6581Curve (fcurve);
798-
799- // 8580
800- fcurve = m_filter.filterCurve8580 ;
801- if (m_fcurve.has_value ())
802- {
803- fcurve = m_fcurve.value ();
804- }
805-
806- if ((fcurve < 0.0 ) || (fcurve > 1.0 ))
807- {
808- cerr << " Invalid 8580 filter curve: " << fcurve << endl;
809- exit (EXIT_FAILURE);
810- }
811-
812- if (m_verboseLevel)
813- cerr << " 8580 filter curve: " << fcurve << endl;
814- rs->filter8580Curve (fcurve);
815747 }
816748 catch (std::bad_alloc const &ba) {}
817749 break ;
818750 }
819- #endif // HAVE_SIDPLAYFP_BUILDERS_RESIDFPII_H
751+ #endif // HAVE_SIDPLAYFP_BUILDERS_SIDLITE_H
820752
821753#ifdef HAVE_SIDPLAYFP_BUILDERS_RESID_H
822754 case EMU_RESID:
0 commit comments