#include "vlc_keys.h"
#include "vlc_meta.h"
-#if defined (WIN32) || defined (__APPLE__)
-static const char *const ppsz_language[] =
-{
- "auto",
- "en",
- "ar",
- "bn",
- "pt_BR",
- "en_GB",
- "el",
- "bg",
- "ca",
- "zh_TW",
- "cs",
- "da",
- "nl",
- "fi",
- "fr",
- "gl",
- "ka",
- "de",
- "he",
- "hr",
- "hu",
- "hy",
- "id",
- "it",
- "ja",
- "ko",
- "lt",
- "mn",
- "ms",
- "nn",
- "kk",
- "km",
- "oc",
- "fa",
- "pl",
- "pt_PT",
- "pa",
- "ro",
- "ru",
- "zh_CN",
- "si",
- "sr",
- "sk",
- "sl",
- "ckb",
- "es",
- "sv",
- "tr",
- "uk",
- "vi",
- "wa",
-};
-
-static const char *const ppsz_language_text[] =
-{
- N_("Auto"),
- "American English",
- "ﻉﺮﺒﻳ",
- "বাংলা",
- "Português Brasileiro",
- "British English",
- "Νέα Ελληνικά",
- "български език",
- "Català",
- "正體中文",
- "Čeština",
- "Dansk",
- "Nederlands",
- "Suomi",
- "Français",
- "Galego",
- "ქართული",
- "Deutsch",
- "עברית",
- "hrvatski",
- "Magyar",
- "հայերեն",
- "Bahasa Indonesia",
- "Italiano",
- "日本語",
- "한국어",
- "lietuvių",
- "Монгол хэл",
- "Melayu",
- "Nynorsk",
- "Қазақ тілі",
- "ភាសាខ្មែរ",
- "Occitan",
- "ﻑﺍﺮﺳی",
- "Polski",
- "Português",
- "ਪੰਜਾਬੀ",
- "Română",
- "Русский",
- "简体中文",
- "සිංහල",
- "српски",
- "Slovensky",
- "slovenščina",
- "کوردیی سۆرانی",
- "Español",
- "Svenska",
- "Türkçe",
- "украї́нська мо́ва",
- "tiếng Việt",
- "Walon",
-};
-#endif
-
static const char *const ppsz_snap_formats[] =
-{ "png", "jpg" };
+{ "png", "jpg", "tiff" };
/*****************************************************************************
* Configuration options for the main program. Each module will also separatly
#define OPEN_LONGTEXT N_( \
"This stream will always be opened at VLC startup." )
-#define LANGUAGE_TEXT N_("Language")
-#define LANGUAGE_LONGTEXT N_( "You can manually select a language for the " \
- "interface. The system language is auto-detected if \"auto\" is " \
- "specified here." )
-
#define COLOR_TEXT N_("Color messages")
#define COLOR_LONGTEXT N_( \
"This enables colorization of the messages sent to the console " \
#define MONO_LONGTEXT N_("This will force a mono audio output.")
#endif
-#define VOLUME_TEXT N_("Default audio volume")
-#define VOLUME_LONGTEXT N_( \
- "You can set the default audio output volume here, in a range from 0 to " \
- "1024.")
+#define GAIN_TEXT N_("Audio gain")
+#define GAIN_LONGTEXT N_( \
+ "This linear gain will be applied to outputted audio.")
#define VOLUME_STEP_TEXT N_("Audio output volume step")
#define VOLUME_STEP_LONGTEXT N_( \
- "The step size of the volume is adjustable using this option, " \
- "in a range from 0 to 1024." )
+ "The step size of the volume is adjustable using this option.")
#define AOUT_VOLUME_STEP 32
-#define AOUT_RATE_TEXT N_("Audio output frequency (Hz)")
-#define AOUT_RATE_LONGTEXT N_( \
- "You can force the audio output frequency here. Common values are " \
- "0 (undefined), 48000, 44100, 32000, 22050, 16000, 11025, 8000.")
+#define VOLUME_SAVE_TEXT N_( "Remember the audio volume" )
+#define VOLUME_SAVE_LONGTEXT N_( \
+ "The volume can be recorded and automatically restored next time " \
+ "VLC is used." )
#if !defined( __APPLE__ )
#define AOUT_RESAMP_TEXT N_("High quality audio resampling")
"This delays the audio output. The delay must be given in milliseconds. " \
"This can be handy if you notice a lag between the video and the audio.")
+#define AUDIO_RESAMPLER_TEXT N_("Audio resampler")
+#define AUDIO_RESAMPLER_LONGTEXT N_( \
+ "This selects which plugin to use for audio resampling." )
+
#define MULTICHA_TEXT N_("Audio output channels mode")
#define MULTICHA_LONGTEXT N_( \
"This sets the audio output channels mode that will " \
"This adds audio post processing filters, to modify " \
"the sound rendering." )
-#define AUDIO_VISUAL_TEXT N_("Audio visualizations ")
+#define AUDIO_VISUAL_TEXT N_("Audio visualizations")
#define AUDIO_VISUAL_LONGTEXT N_( \
"This adds visualization modules (spectrum analyzer, etc.).")
"When several video formats are available, select one whose " \
"resolution is closest to (but not higher than) this setting, " \
"in number of lines. Use this option if you don't have enough CPU " \
- "power or network bandwith to play higher resolutions.")
-static const int pi_prefres[] = { -1, 1080, 720, 576, 320 };
+ "power or network bandwidth to play higher resolutions.")
+static const int pi_prefres[] = { -1, 1080, 720, 576, 360, 240 };
static const char *const ppsz_prefres[] = {
N_("Best available"), N_("Full HD (1080p)"), N_("HD (720p)"),
N_("Standard Definition (576 or 480 lines)"),
- N_("Low definition (320 lines)")
+ N_("Low Definition (360 lines)"),
+ N_("Very Low Definition (240 lines)"),
};
#define INPUT_REPEAT_TEXT N_("Input repetitions")
#define HTTP_CRL_TEXT N_("HTTP/TLS Certificate Revocation List")
#define CRL_LONGTEXT N_( \
- "This file countains an optional CRL to prevent remove clients " \
+ "This file contains an optional CRL to prevent remove clients " \
"from using revoked certificates in TLS sessions.")
#define SOCKS_SERVER_TEXT N_("SOCKS server")
add_bool( "audio", 1, AUDIO_TEXT, AUDIO_LONGTEXT, false )
change_safe ()
- add_integer_with_range( "volume", AOUT_VOLUME_DEFAULT, 0,
- AOUT_VOLUME_MAX, VOLUME_TEXT,
- VOLUME_LONGTEXT, false )
- add_integer_with_range( "volume-step", AOUT_VOLUME_STEP, 0,
- AOUT_VOLUME_MAX, VOLUME_STEP_TEXT,
- VOLUME_STEP_LONGTEXT, true )
+ add_float( "gain", 1., GAIN_TEXT, GAIN_LONGTEXT, true )
+ change_float_range( 0., 8. )
+ add_obsolete_integer( "volume" ) /* since 2.1.0 */
+ add_integer( "volume-step", AOUT_VOLUME_STEP, VOLUME_STEP_TEXT,
+ VOLUME_STEP_LONGTEXT, true )
+ change_integer_range( 1, AOUT_VOLUME_DEFAULT )
+ add_bool( "volume-save", true, VOLUME_SAVE_TEXT, VOLUME_SAVE_TEXT, true )
add_obsolete_integer( "aout-rate" ) /* since 2.0.0 */
#if HAVE_FPU && !defined( __APPLE__ )
add_bool( "hq-resampling", 1, AOUT_RESAMP_TEXT,
DESYNC_LONGTEXT, true )
change_safe ()
+ add_module( "audio-resampler", "audio resampler", NULL,
+ AUDIO_RESAMPLER_TEXT, AUDIO_RESAMPLER_LONGTEXT, true )
+
/* FIXME TODO create a subcat replay gain ? */
add_string( "audio-replay-gain-mode", ppsz_replay_gain_mode[0], AUDIO_REPLAY_GAIN_MODE_TEXT,
AUDIO_REPLAY_GAIN_MODE_LONGTEXT, false )
set_subcategory( SUBCAT_VIDEO_VFILTER )
add_module_list_cat( "video-filter", SUBCAT_VIDEO_VFILTER, NULL,
VIDEO_FILTER_TEXT, VIDEO_FILTER_LONGTEXT, false )
- add_module_list_cat( "video-splitter", SUBCAT_VIDEO_VFILTER, NULL,
- VIDEO_SPLITTER_TEXT, VIDEO_SPLITTER_LONGTEXT, false )
+ add_module_list( "video-splitter", "video splitter", NULL,
+ VIDEO_SPLITTER_TEXT, VIDEO_SPLITTER_LONGTEXT, false )
add_obsolete_string( "vout-filter" ) /* since 2.0.0 */
#if 0
add_string( "pixel-ratio", "1", PIXEL_RATIO_TEXT, PIXEL_RATIO_TEXT )
add_integer( "sub-margin", 0, SUB_MARGIN_TEXT,
SUB_MARGIN_LONGTEXT, true )
set_section( N_( "Overlays" ) , NULL )
- add_module_list_cat( "sub-source", SUBCAT_VIDEO_SUBPIC, NULL,
- SUB_SOURCE_TEXT, SUB_SOURCE_LONGTEXT, false )
- add_module_list_cat( "sub-filter", SUBCAT_VIDEO_SUBPIC, NULL,
- SUB_FILTER_TEXT, SUB_FILTER_LONGTEXT, false )
+ add_module_list( "sub-source", "sub source", NULL,
+ SUB_SOURCE_TEXT, SUB_SOURCE_LONGTEXT, false )
+ add_module_list( "sub-filter", "sub filter", NULL,
+ SUB_FILTER_TEXT, SUB_FILTER_LONGTEXT, false )
/* Input options */
set_category( CAT_INPUT )
add_obsolete_bool( "prefer-system-codecs" )
set_subcategory( SUBCAT_INPUT_STREAM_FILTER )
- add_module_list_cat( "stream-filter", SUBCAT_INPUT_STREAM_FILTER, NULL,
- STREAM_FILTER_TEXT, STREAM_FILTER_LONGTEXT, false )
+ add_module_list( "stream-filter", "stream_filter", NULL,
+ STREAM_FILTER_TEXT, STREAM_FILTER_LONGTEXT, false )
/* Stream output options */
#endif
#if defined (WIN32) || defined (__APPLE__)
- add_string( "language", "auto", LANGUAGE_TEXT, LANGUAGE_LONGTEXT,
- false )
- change_string_list( ppsz_language, ppsz_language_text, 0 )
+ add_obsolete_string( "language" ) /* since 2.1.0 */
#endif
add_bool( "color", true, COLOR_TEXT, COLOR_LONGTEXT, true )