* Avoid virtual method hiding warnings

* Avoid potential deadlock in thread join when processing has been abandoned
This commit is contained in:
Chris Cannam
2009-02-26 22:26:02 +00:00
parent c5a293da33
commit 00ff759247
12 changed files with 43 additions and 5 deletions

View File

@@ -51,5 +51,19 @@ HighFrequencyAudioCurve::process(const float *R__ mag, size_t increment)
return result;
}
float
HighFrequencyAudioCurve::processDouble(const double *R__ mag, size_t increment)
{
float result = 0.0;
const int sz = m_windowSize / 2;
for (int n = 0; n <= sz; ++n) {
result = result + (float)mag[n] * n;
}
return result;
}
}