shithub: sox

Download patch

ref: 1cf1f93bc4a884115e0c51c5392abe88e8d7a85e
parent: c3c54e7ea8cc61c0d4bca4bdddade524765466d3
author: robs <robs>
date: Sat Nov 3 10:24:54 EDT 2007

cleaner inheritence

--- a/src/dither.c
+++ b/src/dither.c
@@ -87,9 +87,9 @@
 
 sox_effect_handler_t const * sox_mask_effect_fn(void)
 {
-  static sox_effect_handler_t handler = {
-    "mask", "[amount]", SOX_EFF_MCHAN | SOX_EFF_PREC | SOX_EFF_DEPRECATED,
-    getopts, start, flow, 0, 0, 0
-  };
+  static sox_effect_handler_t handler;
+  handler = *sox_dither_effect_fn();
+  handler.name = "mask";
+  handler.flags |= SOX_EFF_DEPRECATED;
   return &handler;
 }