From 96033da66feeebe6e4701535a288311bd4d12922 Mon Sep 17 00:00:00 2001 From: Martin Piatka Date: Mon, 10 Jan 2022 12:59:27 +0100 Subject: [PATCH] main: Add echo canceller to help --- src/audio/audio.cpp | 9 ++------- src/main.cpp | 4 +--- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/src/audio/audio.cpp b/src/audio/audio.cpp index 0f5c5bc33..fc3c581f6 100644 --- a/src/audio/audio.cpp +++ b/src/audio/audio.cpp @@ -281,15 +281,10 @@ struct state_audio * audio_cfg_init(struct module *parent, if (opt->echo_cancellation) { #ifdef HAVE_SPEEXDSP -#if 1 s->echo_state = echo_cancellation_init(); -#else - fprintf(stderr, "Echo cancellation is currently broken " - "in UltraGrid.\nPlease write to %s " - "if you wish to use this feature.\n", - PACKAGE_BUGREPORT); + fprintf(stderr, "Echo cancellation is currently experimental " + "and may not work as expected."); goto error; -#endif #else fprintf(stderr, "Speex not compiled in. Could not enable echo cancellation.\n"); delete s; diff --git a/src/main.cpp b/src/main.cpp index 7844f95a2..15bab6fbc 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -409,10 +409,8 @@ static void usage(const char *exec_path, bool full = false) print_help_item("--audio-scale | | help", {"scales received audio"}); } -#if 0 - printf("\t--echo-cancellation \tapply acoustic echo cancellation to audio\n"); + printf("\t--echo-cancellation \tapply acoustic echo cancellation to audio (experimental)\n"); printf("\n"); -#endif print_help_item("--cuda-device | help", {"use specified CUDA device"}); if (full) { print_help_item("--encryption ", {"key material for encryption"});