[vlc-commits] Add "audio resampler" capability to resamplers
Rémi Denis-Courmont
git at videolan.org
Thu May 3 22:01:19 CEST 2012
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Apr 24 18:17:13 2012 +0300| [118603100b1c3479cc924aecc27533deaa8efcc7] | committer: Rémi Denis-Courmont
Add "audio resampler" capability to resamplers
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=118603100b1c3479cc924aecc27533deaa8efcc7
---
modules/audio_filter/resampler/bandlimited.c | 4 ++++
modules/audio_filter/resampler/speex.c | 4 ++++
modules/audio_filter/resampler/src.c | 4 ++++
modules/audio_filter/resampler/ugly.c | 4 ++++
4 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/modules/audio_filter/resampler/bandlimited.c b/modules/audio_filter/resampler/bandlimited.c
index 5368fc4..0da28fd 100644
--- a/modules/audio_filter/resampler/bandlimited.c
+++ b/modules/audio_filter/resampler/bandlimited.c
@@ -89,6 +89,10 @@ vlc_module_begin ()
set_description( N_("Audio filter for band-limited interpolation resampling") )
set_capability( "audio filter", 20 )
set_callbacks( OpenFilter, CloseFilter )
+
+ add_submodule()
+ set_capability( "audio resampler", 20 )
+ set_callbacks( OpenFilter, CloseFilter )
vlc_module_end ()
/*****************************************************************************
diff --git a/modules/audio_filter/resampler/speex.c b/modules/audio_filter/resampler/speex.c
index 561261a..3948afb 100644
--- a/modules/audio_filter/resampler/speex.c
+++ b/modules/audio_filter/resampler/speex.c
@@ -46,6 +46,10 @@ vlc_module_begin ()
change_integer_range (0, 10)
set_capability ("audio filter", 60)
set_callbacks (Open, Close)
+
+ add_submodule ()
+ set_capability ("audio resampler", 60)
+ set_callbacks (Open, Close)
vlc_module_end ()
static block_t *Resample (filter_t *, block_t *);
diff --git a/modules/audio_filter/resampler/src.c b/modules/audio_filter/resampler/src.c
index 7371c64..4ea01ae 100644
--- a/modules/audio_filter/resampler/src.c
+++ b/modules/audio_filter/resampler/src.c
@@ -55,6 +55,10 @@ vlc_module_begin ()
change_integer_list (conv_type_values, conv_type_texts)
set_capability ("audio filter", 50)
set_callbacks (Open, Close)
+
+ add_submodule ()
+ set_capability ("audio resampler", 50)
+ set_callbacks (Open, Close)
vlc_module_end ()
static block_t *Resample (filter_t *, block_t *);
diff --git a/modules/audio_filter/resampler/ugly.c b/modules/audio_filter/resampler/ugly.c
index 4d3e228..3ea3dab 100644
--- a/modules/audio_filter/resampler/ugly.c
+++ b/modules/audio_filter/resampler/ugly.c
@@ -50,6 +50,10 @@ vlc_module_begin ()
set_category( CAT_AUDIO )
set_subcategory( SUBCAT_AUDIO_MISC )
set_callbacks( Create, NULL )
+
+ add_submodule()
+ set_capability( "audio resampler", 2 )
+ set_callbacks( Create, NULL )
vlc_module_end ()
/*****************************************************************************
More information about the vlc-commits
mailing list