[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdesupport/akode/lib
From:       Allan Sandfeld Jensen <kde () carewolf ! com>
Date:       2005-10-28 10:41:31
Message-ID: 1130496091.320486.1441.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 475136 by carewolf:

Debug should only be printed in debug mode


 M  +6 -4      player.cpp  


--- trunk/kdesupport/akode/lib/player.cpp #475135:475136
@@ -37,12 +37,12 @@
 
 #include "player.h"
 
-// #ifndef NDEBUG
+#ifndef NDEBUG
 #include <iostream>
 #define AKODE_DEBUG(x) {std::cerr << "akode: " << x << "\n";}
-// #else
-// #define AKODE_DEBUG(x) { }
-// #endif
+#else
+#define AKODE_DEBUG(x) { }
+#endif
 
 namespace aKode {
 
@@ -339,6 +339,7 @@
         // Configuration not 100% accurate
         d->sample_rate = d->sink->audioConfiguration()->sample_rate;
         if (d->sample_rate != first_frame.sample_rate) {
+            AKODE_DEBUG("Resampling to " << d->sample_rate);
             if (!d->resampler) {
                 if (d->resampler_plugin) {
                     d->resampler_handler.load(d->resampler_plugin);
@@ -366,6 +367,7 @@
         int out_width = d->sink->audioConfiguration()->sample_width;
         int in_width = first_frame.sample_width;
         if (in_width != out_width) {
+            AKODE_DEBUG("Converting to " << out_width << "bits");
             if (!d->converter)
                 d->converter = new Converter(out_width);
             else
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic