changeset 112:5755fb99ddab trunk

[svn] - make debugging notices optional
author nenolod
date Tue, 24 Oct 2006 19:29:07 -0700
parents 5745352e0c88
children daba9f15ca01
files ChangeLog src/wavpack/libwavpack.cxx
diffstat 2 files changed, 18 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Oct 24 19:25:50 2006 -0700
+++ b/ChangeLog	Tue Oct 24 19:29:07 2006 -0700
@@ -1,3 +1,13 @@
+2006-10-25 02:25:50 +0000  William Pitcock <nenolod@nenolod.net>
+  revision [222]
+  - hey, this compiles now. neat :P
+  
+  trunk/src/wavpack/Makefile       |    4 ++--
+  trunk/src/wavpack/libwavpack.cxx |   10 ++++++----
+  trunk/src/wavpack/ui.cxx         |    4 ++--
+  3 files changed, 10 insertions(+), 8 deletions(-)
+
+
 2006-10-25 02:13:48 +0000  William Pitcock <nenolod@nenolod.net>
   revision [220]
   - autoconf support for wavpack plugin
--- a/src/wavpack/libwavpack.cxx	Tue Oct 24 19:25:50 2006 -0700
+++ b/src/wavpack/libwavpack.cxx	Tue Oct 24 19:29:07 2006 -0700
@@ -20,7 +20,12 @@
 #define M_LN10   2.3025850929940456840179914546843642
 #endif
 
-#define DBG(format, args...) fprintf(stderr, format, ## args)
+#ifdef DEBUG
+# define DBG(format, args...) fprintf(stderr, format, ## args)
+#else
+# define DBG(format, args...)
+#endif
+
 #define BUFFER_SIZE 256 // read buffer size, in samples
 
 extern "C" InputPlugin * get_iplugin_info(void);
@@ -132,7 +137,7 @@
 
     bool open_audio()
     {
-        return mod->output->open_audio(FMT_S16_LE, sample_rate, num_channels);
+        return mod->output->open_audio(FMT_S16_NE, sample_rate, num_channels);
     }
 
     void process_buffer(size_t num_samples)
@@ -140,7 +145,7 @@
         for (int i = 0; i < num_samples * num_channels; i++) {
             output[i] = input[i];
         }
-        produce_audio(mod->output->output_time(), FMT_S16_LE, 
+        produce_audio(mod->output->output_time(), FMT_S16_NE, 
 		num_channels, 
 		num_samples * num_channels * sizeof(int16_t),
 		output,