summaryrefslogtreecommitdiff
path: root/sms/analysis.c
diff options
context:
space:
mode:
Diffstat (limited to 'sms/analysis.c')
-rw-r--r--sms/analysis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sms/analysis.c b/sms/analysis.c
index f4da530..a435a5a 100644
--- a/sms/analysis.c
+++ b/sms/analysis.c
@@ -87,7 +87,7 @@ void sms_analyzeFrame(int iCurrentFrame, SMS_AnalParams *pAnalParams, sfloat fRe
/* find a reference harmonic */
if(pCurrentFrame->nPeaks > 0 &&
(pAnalParams->iFormat == SMS_FORMAT_H || pAnalParams->iFormat == SMS_FORMAT_HP))
- pCurrentFrame->fFundamental = sms_harmDetection(pAnalParams->nTracks, pCurrentFrame->pSpectralPeaks,
+ pCurrentFrame->fFundamental = sms_harmDetection(pAnalParams->maxPeaks, pCurrentFrame->pSpectralPeaks,
fRefFundamental, pAnalParams->iRefHarmonic,
pAnalParams->fLowestFundamental, pAnalParams->fHighestFundamental,
pAnalParams->iSoundType, pAnalParams->fMinRefHarmMag,