We dont need changable dither stuff & remove "unfiltered" from amiga type

"unfiltered" almost acts the same as just disabling the amiga filter
dithering is nothing anyone needs to change
default value is recommended and openmpt chooses the best one with that autmatically anyways
This commit is contained in:
alufolie91 committed 2023-08-20 01:01:38 +02:00
1 parent 7b346db6bc
commit deaeb99928
3 files changed
+1 -14

No files matched your search

-1
View File
@@ -916,7 +916,6 @@ void D_RegisterClientCommands(void)
#if OPENMPT_API_VERSION_MAJOR < 1 && OPENMPT_API_VERSION_MINOR > 4
CV_RegisterVar(&cv_amigatype);
#endif
//CV_RegisterVar(&cv_mptdither);
#endif
// FIXME: not to be here.. but needs be done for config loading
+1 -12
View File
@@ -71,7 +71,6 @@ static void AmigaFilter_OnChange(void);
#if OPENMPT_API_VERSION_MAJOR < 1 && OPENMPT_API_VERSION_MINOR > 4
static void AmigaType_OnChange(void);
#endif
//static void MPTDither_OnChange(void);
#endif
// commands for music and sound servers
@@ -150,12 +149,10 @@ consvar_t cv_amigafilter = {"amigafilter", "1", CV_SAVE|CV_CALL, amigafilter_con
#if OPENMPT_API_VERSION_MAJOR < 1 && OPENMPT_API_VERSION_MINOR > 4
static CV_PossibleValue_t amigatype_cons_t[] = {{0, "auto"}, {1, "a500"}, {2, "a1200"}, {3, "unfiltered"}, {0, NULL}};
static CV_PossibleValue_t amigatype_cons_t[] = {{0, "auto"}, {1, "a500"}, {2, "a1200"}, {0, NULL}};
consvar_t cv_amigatype = {"amigatype", "0", CV_SAVE|CV_CALL, amigatype_cons_t, AmigaType_OnChange, 0, NULL, NULL, 0, 0, NULL};
#endif
//static CV_PossibleValue_t mptdither_cons_t[] = {{0, "No dithering"}, {1, "Default"}, {2, "Rectangular 0.5 bit"}, {3, "Rectangular 1 bit"}, {0, NULL}};
//consvar_t cv_mptdither = {"mptdither", "1", CV_SAVE|CV_CALL, mptdither_cons_t, MPTDither_OnChange, 0, NULL, NULL, 0, 0, NULL};
#endif
#define S_MAX_VOLUME 127
@@ -2248,14 +2245,6 @@ void AmigaType_OnChange(void)
COM_ImmedExecute("restartmusic"); //need to restart the music system or else it wont work
}
#endif
/*
void MPTDither_OnChange(void)
{
if (openmpt_mhandle)
openmpt_module_ctl_set(openmpt_mhandle, "dither", cv_mptdither.value);
}
*/
#endif
#ifndef NO_MIDI
-1
View File
@@ -48,7 +48,6 @@ extern consvar_t cv_amigafilter;
#if OPENMPT_API_VERSION_MAJOR < 1 && OPENMPT_API_VERSION_MINOR > 4
extern consvar_t cv_amigatype;
#endif
//extern consvar_t cv_mptdither;
#endif
extern consvar_t cv_music_resync_threshold;