# HG changeset patch # User nenolod # Date 1161743347 25200 # Node ID 5755fb99ddabf69a5c24e6e93296a9c1cdae310b # Parent 5745352e0c8876c8b5898dc920bc4bfdf6a2556c [svn] - make debugging notices optional diff -r 5745352e0c88 -r 5755fb99ddab ChangeLog --- 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 + 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 revision [220] - autoconf support for wavpack plugin diff -r 5745352e0c88 -r 5755fb99ddab src/wavpack/libwavpack.cxx --- 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,