changeset 14:8c87484e6d79

Minor tidy
author Chris Cannam
date Fri, 18 Oct 2013 12:24:42 +0100
parents 1b95c3a52b45
children e35d83f7b4f0
files garage-resampler/resample.cpp
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/garage-resampler/resample.cpp	Fri Oct 18 12:22:22 2013 +0100
+++ b/garage-resampler/resample.cpp	Fri Oct 18 12:24:42 2013 +0100
@@ -50,8 +50,6 @@
 	return 0;
     }
 
-    cerr << "help = " << help << ", targetRate = " << targetRate << ", optionIndex = " << optind << ", argc = " << argc << endl;
-
     if (help || targetRate == 0 || optind + 2 != argc) {
 	cerr << endl;
 	cerr << "usage: " << argv[0] << " --to <rate> <infile.wav> <outfile.wav>" << endl;
@@ -173,8 +171,8 @@
 	    obuf[i * channels + c] = postbuf[c][i];
 	}
     }
-    sf_writef_float(sndfileOut, obuf, rcount);
-    n += rcount;
+    sf_writef_float(sndfileOut, obuf, outputLatency);
+    n += outputLatency;
 
     sf_close(sndfile);
     sf_close(sndfileOut);