shithub: sox

Download patch

ref: 0654c341826c8290cd14fbe2909fd562f208248a
parent: 75e242c3002ba5b07166a4a7b1f1b4db30864524
author: robs <robs>
date: Sun Apr 22 04:23:53 EDT 2007

warn about use of deprecated effects

--- a/src/sox.c
+++ b/src/sox.c
@@ -1268,6 +1268,8 @@
       sox_fail("Effect `%s' does not exist!", argv[optind]);
       exit(1);
     }
+    if (e->h->flags & SOX_EFF_DEPRECATED)
+      sox_warn("Effect `%s' is deprecated and may be removed in a future release; please refer to the manual sox(1) for an alternative effect", e->name);
 
     optind++; /* Skip past effect name */
     e->globalinfo = &globalinfo;