projects
/
wdq2wav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8dc7e54
)
r4125: Auto commit for Debian build
author
Kevin M. Rosenberg
<kevin@rosenberg.net>
Tue, 25 Feb 2003 18:24:48 +0000
(18:24 +0000)
committer
Kevin M. Rosenberg
<kevin@rosenberg.net>
Tue, 25 Feb 2003 18:24:48 +0000
(18:24 +0000)
wdq2wav.cpp
patch
|
blob
|
history
diff --git
a/wdq2wav.cpp
b/wdq2wav.cpp
index c912b8d65386a255d1a474f071f7f620b7c6c4a0..510294b9d48406d6ee0f14ba5e8e8c28ef72de9f 100644
(file)
--- a/
wdq2wav.cpp
+++ b/
wdq2wav.cpp
@@
-8,7
+8,7
@@
**
** Copyright (c) 2003 Kevin Rosenberg
**
**
** Copyright (c) 2003 Kevin Rosenberg
**
-** $Id: wdq2wav.cpp,v 1.2
4 2003/02/25 18:19:45
kevin Exp $
+** $Id: wdq2wav.cpp,v 1.2
5 2003/02/25 18:24:48
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
**
** 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 <wdq2wav.h>
#include <wdq2wav.h>
-const char* g_szIdStr = "$Id: wdq2wav.cpp,v 1.2
4 2003/02/25 18:19:45
kevin Exp $";
+const char* g_szIdStr = "$Id: wdq2wav.cpp,v 1.2
5 2003/02/25 18:24:48
kevin Exp $";
bool g_quiet = false;
bool g_verbose = false;
bool g_quiet = false;
bool g_verbose = false;
@@
-511,6
+511,9
@@
WindaqChannel::read_channel_data ()
if (g_demean) {
double dmean = total_data / static_cast<double>(r_wdq.m_nSamples);
int mean = nearest<int>(dmean);
if (g_demean) {
double dmean = total_data / static_cast<double>(r_wdq.m_nSamples);
int mean = nearest<int>(dmean);
+ std::cout << "Removing mean: " << (dmean * m_slope) + m_intercept <<
+ " " << m_units << std::endl;
+
for (i = 0; i < r_wdq.m_nSamples; i++)
m_data[i] -= mean;
}
for (i = 0; i < r_wdq.m_nSamples; i++)
m_data[i] -= mean;
}