From 46ec07e4be497cb2dedb79c33aa25666db7d0d8c Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Fri, 7 Jun 2024 18:07:07 -0400 Subject: mikmod: partial revert of previous commit. The strings in the struct configdata[] are only used in the settings file, and not displayed. Therefore there is no need to translate them. Change-Id: Id9e03c4b0454412b319ad678e6f57a46e1da0f6e --- apps/plugins/mikmod/mikmod.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/apps/plugins/mikmod/mikmod.c b/apps/plugins/mikmod/mikmod.c index 089c338308..bb0e2e04ab 100644 --- a/apps/plugins/mikmod/mikmod.c +++ b/apps/plugins/mikmod/mikmod.c @@ -491,6 +491,20 @@ static struct mikmod_settings settings = static struct mikmod_settings old_settings; +static const struct configdata config[] = +{ + { TYPE_INT, 0, 128, { .int_p = &settings.pansep }, "Panning Separation", NULL}, + { TYPE_INT, 0, 15, { .int_p = &settings.reverb }, "Reverberation", NULL}, + { TYPE_BOOL, 0, 1, { .bool_p = &settings.interp }, "Interpolation", NULL}, + { TYPE_BOOL, 0, 1, { .bool_p = &settings.reverse }, "Reverse Channels", NULL}, + { TYPE_BOOL, 0, 1, { .bool_p = &settings.surround }, "Surround", NULL}, + { TYPE_BOOL, 0, 1, { .bool_p = &settings.hqmixer }, "HQ Mixer", NULL}, + { TYPE_INT, 0, HW_NUM_FREQ-1, { .int_p = &settings.sample_rate }, "Sample Rate", NULL}, +#ifdef HAVE_ADJUSTABLE_CPU_FREQ + { TYPE_BOOL, 0, 1, { .bool_p = &settings.boost }, "CPU Boost", NULL}, +#endif +}; + static void applysettings(void) { md_pansep = settings.pansep; @@ -920,20 +934,6 @@ enum plugin_status plugin_start(const void* parameter) enum plugin_status retval; int orig_samplerate = rb->mixer_get_frequency(); - const struct configdata config[] = - { - { TYPE_INT, 0, 128, { .int_p = &settings.pansep }, rb->str(LANG_PANNING_SEPARATION), NULL}, - { TYPE_INT, 0, 15, { .int_p = &settings.reverb }, rb->str(LANG_REVERBERATION), NULL}, - { TYPE_BOOL, 0, 1, { .bool_p = &settings.interp }, rb->str(LANG_INTERPOLATION), NULL}, - { TYPE_BOOL, 0, 1, { .bool_p = &settings.reverse }, rb->str(LANG_SWAP_CHANNELS), NULL}, - { TYPE_BOOL, 0, 1, { .bool_p = &settings.surround }, rb->str(LANG_MIKMOD_SURROUND), NULL}, - { TYPE_BOOL, 0, 1, { .bool_p = &settings.hqmixer }, rb->str(LANG_MIKMOD_HQMIXER), NULL}, - { TYPE_INT, 0, HW_NUM_FREQ-1, { .int_p = &settings.sample_rate }, rb->str(LANG_MIKMOD_SAMPLERATE), NULL}, -#ifdef HAVE_ADJUSTABLE_CPU_FREQ - { TYPE_BOOL, 0, 1, { .bool_p = &settings.boost }, rb->str(LANG_CPU_BOOST), NULL}, -#endif - }; - if (parameter == NULL) { rb->splash(HZ*2, ID2P(LANG_NO_FILES)); -- cgit v1.2.3