Skip to content

Commit

Permalink
Config: Add a resampler category
Browse files Browse the repository at this point in the history
  • Loading branch information
jbkempf committed Apr 19, 2016
1 parent 2d82ef2 commit 7d4afe0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions include/vlc_config_cat.h
Original file line number Diff line number Diff line change
Expand Up @@ -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" )

Expand Down Expand Up @@ -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 },

Expand Down
1 change: 1 addition & 0 deletions include/vlc_plugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 5 additions & 3 deletions src/libvlc-module.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand All @@ -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 )
Expand Down

0 comments on commit 7d4afe0

Please sign in to comment.