[vlc-commits] Config: Add a resampler category

Jean-Baptiste Kempf git at videolan.org
Tue Apr 19 13:35:20 CEST 2016


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Apr 19 13:33:05 2016 +0200| [7d4afe09fd318b35c9ce16c97d3257ebb37ac205] | committer: Jean-Baptiste Kempf

Config: Add a resampler category

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7d4afe09fd318b35c9ce16c97d3257ebb37ac205
---

 include/vlc_config_cat.h |    3 +++
 include/vlc_plugin.h     |    1 +
 src/libvlc-module.c      |    8 +++++---
 3 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/include/vlc_config_cat.h b/include/vlc_config_cat.h
index e50304f..55d2e46 100644
--- a/include/vlc_config_cat.h
+++ b/include/vlc_config_cat.h
@@ -58,6 +58,8 @@
 #define AFILTER_TITLE N_("Filters")
 #define AFILTER_HELP N_( "Audio filters are used to process the audio stream." )
 
+#define ARESAMPLER_TITLE N_("Audio resampler")
+
 #define AVISUAL_TITLE N_("Visualizations")
 #define AVISUAL_HELP N_( "Audio visualizations" )
 
@@ -198,6 +200,7 @@ static const struct config_category_t categories_array[] =
     { SUBCAT_AUDIO_GENERAL, AUDIO_TITLE, AUDIO_GENERAL_HELP },
     { SUBCAT_AUDIO_AOUT, AOUT_TITLE, AOUT_HELP },
     { SUBCAT_AUDIO_AFILTER, AFILTER_TITLE, AFILTER_HELP },
+    { SUBCAT_AUDIO_RESAMPLER, ARESAMPLER_TITLE, AFILTER_HELP },
     { SUBCAT_AUDIO_VISUAL, AVISUAL_TITLE, AVISUAL_HELP },
     { SUBCAT_AUDIO_MISC, AMISC_TITLE, AMISC_HELP },
 
diff --git a/include/vlc_plugin.h b/include/vlc_plugin.h
index 23fff51..e73ab91 100644
--- a/include/vlc_plugin.h
+++ b/include/vlc_plugin.h
@@ -148,6 +148,7 @@ enum vlc_module_properties
 #define SUBCAT_AUDIO_AFILTER 203
 #define SUBCAT_AUDIO_VISUAL 204
 #define SUBCAT_AUDIO_MISC 205
+#define SUBCAT_AUDIO_RESAMPLER 206
 
 #define CAT_VIDEO 3
 #define SUBCAT_VIDEO_GENERAL 301
diff --git a/src/libvlc-module.c b/src/libvlc-module.c
index c3e4a01..5c6a6e0 100644
--- a/src/libvlc-module.c
+++ b/src/libvlc-module.c
@@ -1456,9 +1456,6 @@ vlc_module_begin ()
                  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 )
@@ -1484,6 +1481,11 @@ vlc_module_begin ()
     add_module( "audio-visual", "visualization", "none", AUDIO_VISUAL_TEXT,
                 AUDIO_VISUAL_LONGTEXT, false )
 
+    set_subcategory( SUBCAT_AUDIO_RESAMPLER )
+    add_module( "audio-resampler", "audio resampler", NULL,
+                AUDIO_RESAMPLER_TEXT, AUDIO_RESAMPLER_LONGTEXT, true )
+
+
 /* Video options */
     set_category( CAT_VIDEO )
     set_subcategory( SUBCAT_VIDEO_GENERAL )



More information about the vlc-commits mailing list