shithub: sox

Download patch

ref: 7b8c07617896add470f0bbfb0045e2844d1f0ec2
parent: 49e582e17530a50f18f58547b241371894a98d76
author: robs <robs>
date: Sun Jun 10 10:07:06 EDT 2007

tidying

--- a/src/skeleff.c
+++ b/src/skeleff.c
@@ -29,10 +29,9 @@
               /* else */ skeleff_PRIVSIZE_too_big);
 
 /*
- * Process command-line options
- *
- * Don't do initialization now.
- * The 'info' fields are not yet filled in.
+ * Process command-line options but don't do other
+ * initialization now: effp->ininfo & effp->outinfo are not
+ * yet filled in.
  */
 static int getopts(sox_effect_t * effp, int n, char **argv)
 {
@@ -53,7 +52,7 @@
 static int start(sox_effect_t * effp)
 {
   if (effp->outinfo.channels == 1) {
-    sox_fail("Can't run skeleff on mono data.");
+    sox_fail("Can't run on mono data.");
     return SOX_EOF;
   }
 
@@ -100,9 +99,9 @@
 static int drain(sox_effect_t * effp, sox_ssample_t *obuf, sox_size_t *osamp)
 {
   *osamp = 0;
-  /* Help out application and return SOX_EOF when drain
-   * will not return any mre information.  *osamp == 0
-   * also indicates that.
+  /* Return SOX_EOF when drain
+   * will not output any more samples.
+   * *osamp == 0 * also indicates that.
    */
   return SOX_EOF;
 }