main: Add echo canceller to help

This commit is contained in:
Martin Piatka
2022-01-10 12:59:27 +01:00
parent 2b623c5afd
commit 96033da66f
2 changed files with 3 additions and 10 deletions

View File

@@ -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;

View File

@@ -409,10 +409,8 @@ static void usage(const char *exec_path, bool full = false)
print_help_item("--audio-scale <factor> | <method> | 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 <index> | help", {"use specified CUDA device"});
if (full) {
print_help_item("--encryption <passphrase>", {"key material for encryption"});