shithub: sox

Download patch

ref: 7739ec7c2c21de54b7ee1f2155057600892d1814
parent: 6492a6fc36495adf03a2e36e9474f359edbf32a3
author: Mans Rullgard <mans@mansr.com>
date: Mon Aug 3 18:20:23 EDT 2020

noiseprof: remove unused clip counter

--- a/src/noiseprof.c
+++ b/src/noiseprof.c
@@ -116,7 +116,7 @@
                     size_t *isamp, size_t *osamp)
 {
   priv_t * p = (priv_t *) effp->priv;
-  size_t samp = min(*isamp, *osamp), dummy = 0; /* No need to clip count */
+  size_t samp = min(*isamp, *osamp);
   size_t chans = effp->in_signal.channels;
   size_t i, j, n = min(samp / chans, WINDOWSIZE - p->bufdata);
 
@@ -129,7 +129,7 @@
     chandata_t * chan = &(p->chandata[i]);
     for (j = 0; j < n; j ++)
       chan->window[j + p->bufdata] =
-        SOX_SAMPLE_TO_FLOAT_32BIT(ibuf[i + j * chans], dummy);
+        SOX_SAMPLE_TO_FLOAT_32BIT(ibuf[i + j * chans],);
     if (n + p->bufdata == WINDOWSIZE)
       collect_data(chan);
   }