ports/audio/mixxx/files/patch-src::probabilityvector.cpp
Kirill Ponomarev 18dd10fbb7 Add mixxx 1.3.2,
Mixxx is software for DJ'ing. You can use wave based audio
files, Ogg Vorbis and MP3 files as audio input. Mixxx can be
controlled through the GUI and with external controllers
including MIDI devices, joysticks and more.

PR:		ports/68345
Submitted by:	Jean-Yves Lefort <jylefort@brutele.be>
2004-06-26 06:07:01 +00:00

19 lines
676 B
C++

--- src/probabilityvector.cpp.orig Fri Jun 25 19:36:10 2004
+++ src/probabilityvector.cpp Fri Jun 25 19:36:33 2004
@@ -18,6 +18,7 @@
#include "probabilityvector.h"
#include "mathstuff.h"
#include "qapplication.h"
+#include "compat_round.h"
ProbabilityVector::ProbabilityVector(float fMinInterval, float fMaxInterval, int iBins)
{
@@ -55,7 +56,7 @@
for (float j=fStart; j<fEnd; j++)
{
- int idx = round((fCenter+j));
+ int idx = compat_round((fCenter+j));
m_pHist[idx] += exp((-0.5*j*j)/(0.5*(CSAMPLE)kiGaussWidth))*fValue; //*fHysterisisFactor;
if (m_pHist[idx]>m_pHist[m_iCurrMaxBin])
{