summaryrefslogtreecommitdiff
path: root/src/sndobj/SinAnal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sndobj/SinAnal.cpp')
-rw-r--r--src/sndobj/SinAnal.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/sndobj/SinAnal.cpp b/src/sndobj/SinAnal.cpp
index 63dd7bc..d8e53cf 100644
--- a/src/sndobj/SinAnal.cpp
+++ b/src/sndobj/SinAnal.cpp
@@ -374,7 +374,7 @@ SinAnal::peakdetection(){
}
}
- for(i =0; i < n; i++){
+ for(i = 0; i < n; i++){
int rmax;
rmax = m_maxix[i];
@@ -409,8 +409,7 @@ SinAnal::FindPeaks(){
if(m_enable){
// find peaks
- int n = 0;
- n = peakdetection();
+ int n = peakdetection();
// output peaks
for(m_vecpos=0; m_vecpos < m_vecsize; m_vecpos += 3){