X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=wdq2wav.cpp;fp=wdq2wav.cpp;h=c912b8d65386a255d1a474f071f7f620b7c6c4a0;hb=8dc7e54b7472b8422486c104b5b256b3554fc386;hp=90bb1b358eda0949e9c24a581b0c9338599926dd;hpb=7ca37015588adb2dee7054808e5bc6849dc4ff41;p=wdq2wav.git diff --git a/wdq2wav.cpp b/wdq2wav.cpp index 90bb1b3..c912b8d 100644 --- a/wdq2wav.cpp +++ b/wdq2wav.cpp @@ -8,7 +8,7 @@ ** ** Copyright (c) 2003 Kevin Rosenberg ** -** $Id: wdq2wav.cpp,v 1.23 2003/02/25 18:18:45 kevin Exp $ +** $Id: wdq2wav.cpp,v 1.24 2003/02/25 18:19:45 kevin Exp $ ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License (version 2) as @@ -26,7 +26,7 @@ #include -const char* g_szIdStr = "$Id: wdq2wav.cpp,v 1.23 2003/02/25 18:18:45 kevin Exp $"; +const char* g_szIdStr = "$Id: wdq2wav.cpp,v 1.24 2003/02/25 18:19:45 kevin Exp $"; bool g_quiet = false; bool g_verbose = false; @@ -509,7 +509,7 @@ WindaqChannel::read_channel_data () m_min_scaled_data = (m_slope * data_min) + m_intercept; if (g_demean) { - double dmean = total_data / static_cast(wdq.m_nSamples); + double dmean = total_data / static_cast(r_wdq.m_nSamples); int mean = nearest(dmean); for (i = 0; i < r_wdq.m_nSamples; i++) m_data[i] -= mean;