diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2024-06-07 18:07:07 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2024-06-07 18:10:48 -0400 |
commit | 46ec07e4be497cb2dedb79c33aa25666db7d0d8c (patch) | |
tree | 5457881431a34e17dcc02f63fba569dd589fd930 | |
parent | 20f50bbca360b5c772299cedaaa30c1a45456c2a (diff) | |
download | rockbox-46ec07e4be497cb2dedb79c33aa25666db7d0d8c.tar.gz rockbox-46ec07e4be497cb2dedb79c33aa25666db7d0d8c.zip |
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
-rw-r--r-- | apps/plugins/mikmod/mikmod.c | 28 |
1 files 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 = | |||
491 | 491 | ||
492 | static struct mikmod_settings old_settings; | 492 | static struct mikmod_settings old_settings; |
493 | 493 | ||
494 | static const struct configdata config[] = | ||
495 | { | ||
496 | { TYPE_INT, 0, 128, { .int_p = &settings.pansep }, "Panning Separation", NULL}, | ||
497 | { TYPE_INT, 0, 15, { .int_p = &settings.reverb }, "Reverberation", NULL}, | ||
498 | { TYPE_BOOL, 0, 1, { .bool_p = &settings.interp }, "Interpolation", NULL}, | ||
499 | { TYPE_BOOL, 0, 1, { .bool_p = &settings.reverse }, "Reverse Channels", NULL}, | ||
500 | { TYPE_BOOL, 0, 1, { .bool_p = &settings.surround }, "Surround", NULL}, | ||
501 | { TYPE_BOOL, 0, 1, { .bool_p = &settings.hqmixer }, "HQ Mixer", NULL}, | ||
502 | { TYPE_INT, 0, HW_NUM_FREQ-1, { .int_p = &settings.sample_rate }, "Sample Rate", NULL}, | ||
503 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ | ||
504 | { TYPE_BOOL, 0, 1, { .bool_p = &settings.boost }, "CPU Boost", NULL}, | ||
505 | #endif | ||
506 | }; | ||
507 | |||
494 | static void applysettings(void) | 508 | static void applysettings(void) |
495 | { | 509 | { |
496 | md_pansep = settings.pansep; | 510 | md_pansep = settings.pansep; |
@@ -920,20 +934,6 @@ enum plugin_status plugin_start(const void* parameter) | |||
920 | enum plugin_status retval; | 934 | enum plugin_status retval; |
921 | int orig_samplerate = rb->mixer_get_frequency(); | 935 | int orig_samplerate = rb->mixer_get_frequency(); |
922 | 936 | ||
923 | const struct configdata config[] = | ||
924 | { | ||
925 | { TYPE_INT, 0, 128, { .int_p = &settings.pansep }, rb->str(LANG_PANNING_SEPARATION), NULL}, | ||
926 | { TYPE_INT, 0, 15, { .int_p = &settings.reverb }, rb->str(LANG_REVERBERATION), NULL}, | ||
927 | { TYPE_BOOL, 0, 1, { .bool_p = &settings.interp }, rb->str(LANG_INTERPOLATION), NULL}, | ||
928 | { TYPE_BOOL, 0, 1, { .bool_p = &settings.reverse }, rb->str(LANG_SWAP_CHANNELS), NULL}, | ||
929 | { TYPE_BOOL, 0, 1, { .bool_p = &settings.surround }, rb->str(LANG_MIKMOD_SURROUND), NULL}, | ||
930 | { TYPE_BOOL, 0, 1, { .bool_p = &settings.hqmixer }, rb->str(LANG_MIKMOD_HQMIXER), NULL}, | ||
931 | { TYPE_INT, 0, HW_NUM_FREQ-1, { .int_p = &settings.sample_rate }, rb->str(LANG_MIKMOD_SAMPLERATE), NULL}, | ||
932 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ | ||
933 | { TYPE_BOOL, 0, 1, { .bool_p = &settings.boost }, rb->str(LANG_CPU_BOOST), NULL}, | ||
934 | #endif | ||
935 | }; | ||
936 | |||
937 | if (parameter == NULL) | 937 | if (parameter == NULL) |
938 | { | 938 | { |
939 | rb->splash(HZ*2, ID2P(LANG_NO_FILES)); | 939 | rb->splash(HZ*2, ID2P(LANG_NO_FILES)); |