+
+ max_bandwidth = max (max_bandwidth, bandwidth);
+ min_bandwidth = min (min_bandwidth, bandwidth);
+
+ if (!quiet) {
+ cout << "BW @ " << written << " frames (" << ds.str() << " minutes) = " << (bandwidth/1048576.0) << " MB/sec " << bandwidth / data_rate << " x faster than necessary " << endl;
+ }
+ }
+
+ cout << "Max bandwidth = " << max_bandwidth / 1048576.0 << " MB/sec" << endl;
+ cout << "Min bandwidth = " << min_bandwidth / 1048576.0 << " MB/sec" << endl;
+
+ if (!quiet) {
+ cout << "Closing files ...\n";
+ for (vector<SNDFILE*>::iterator s = sndfiles.begin(); s != sndfiles.end(); ++s) {
+ sf_close (*s);
+ }
+ cout << "Done.\n";