652ed168bb40 — Chris Cannam 3 years ago
Some minor debug/reporting improvements
2 files changed, 7 insertions(+), 7 deletions(-)

M example/resample.cpp
M src/Resampler.cpp
M example/resample.cpp +2 -2
@@ 14,8 14,8 @@ using namespace std;
 void usage()
 {
     cerr << "Usage: resample [-v] [-c <converter>] -to <rate> <infile> <outfile>" << endl;
-    cerr << "where <converter> may be 0, 1, or 2, for best, medium, or fastest respectively" << endl;
-    cerr << "supply -v for verbose output" << endl;
+    cerr << "where <converter> may be 0, 1, or 2, for best, medium, or fastest respectively." << endl;
+    cerr << "Supply -v for verbose output." << endl;
     exit(2);
 }
 

          
M src/Resampler.cpp +5 -5
@@ 175,7 175,7 @@ D_IPP::D_IPP(Resampler::Quality /* quali
     m_debugLevel(debugLevel)
 {
     if (m_debugLevel > 0) {
-        cerr << "Resampler::Resampler: using IPP implementation" << endl;
+        cerr << "Resampler::Resampler: using implementation: IPP" << endl;
     }
 
     m_window = 32;

          
@@ 601,7 601,7 @@ D_SRC::D_SRC(Resampler::Quality quality,
     m_debugLevel(debugLevel)
 {
     if (m_debugLevel > 0) {
-        cerr << "Resampler::Resampler: using libsamplerate implementation"
+        cerr << "Resampler::Resampler: using implementation: libsamplerate"
              << endl;
     }
 

          
@@ 820,7 820,7 @@ D_Resample::D_Resample(Resampler::Qualit
     m_debugLevel(debugLevel)
 {
     if (m_debugLevel > 0) {
-        cerr << "Resampler::Resampler: using libresample implementation"
+        cerr << "Resampler::Resampler: using implementation: libresample"
                   << endl;
     }
 

          
@@ 1004,7 1004,7 @@ D_BQResampler::D_BQResampler(Resampler::
     m_debugLevel(params.debugLevel)
 {
     if (m_debugLevel > 0) {
-        cerr << "Resampler::Resampler: using BQResampler implementation" << endl;
+        cerr << "Resampler::Resampler: using implementation: BQResampler" << endl;
     }
 
     BQResampler::Parameters rparams;

          
@@ 1170,7 1170,7 @@ D_Speex::D_Speex(Resampler::Quality qual
              quality == Resampler::Fastest ? 0 : 4);
 
     if (m_debugLevel > 0) {
-        cerr << "Resampler::Resampler: using Speex implementation with q = "
+        cerr << "Resampler::Resampler: using implementation: Speex with q = "
              << q << endl;
     }