[vlc-devel] [PATCH 6/6] spatialaudio: remove the "headphones" option

Thomas Guillem thomas at gllm.fr
Thu Jul 16 14:25:35 CEST 2020


---
 modules/audio_filter/channel_mixer/spatialaudio.cpp | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/modules/audio_filter/channel_mixer/spatialaudio.cpp b/modules/audio_filter/channel_mixer/spatialaudio.cpp
index 7671b5b7aa2..216f1da8c3b 100644
--- a/modules/audio_filter/channel_mixer/spatialaudio.cpp
+++ b/modules/audio_filter/channel_mixer/spatialaudio.cpp
@@ -43,18 +43,12 @@
 #include <spatialaudio/Ambisonics.h>
 #include <spatialaudio/SpeakersBinauralizer.h>
 
-#define CFG_PREFIX "spatialaudio-"
-
 #define DEFAULT_HRTF_PATH "hrtfs" DIR_SEP "dodeca_and_7channel_3DSL_HRTF.sofa"
 
 #define HRTF_FILE_TEXT N_("HRTF file for the binauralization")
 #define HRTF_FILE_LONGTEXT N_("Custom HRTF (Head-related transfer function) file " \
                               "in the SOFA format.")
 
-#define HEADPHONES_TEXT N_("Headphones mode (binaural)")
-#define HEADPHONES_LONGTEXT N_("If the output is stereo, render ambisonics " \
-                               "with the binaural decoder.")
-
 static int OpenBinauralizer(vlc_object_t *p_this);
 static int Open( vlc_object_t * );
 static void Close( vlc_object_t * );
@@ -67,8 +61,7 @@ vlc_module_begin()
     set_category(CAT_AUDIO)
     set_subcategory(SUBCAT_AUDIO_AFILTER)
     set_callbacks(Open, Close)
-    add_bool(CFG_PREFIX "headphones", false,
-             HEADPHONES_TEXT, HEADPHONES_LONGTEXT, true)
+    add_obsolete_bool("spatialaudio-headphones")
     add_loadfile("hrtf-file", NULL, HRTF_FILE_TEXT, HRTF_FILE_LONGTEXT)
     add_shortcut("ambisonics")
 
-- 
2.20.1



More information about the vlc-devel mailing list