Merge pull request #1308 from Lukas-W/ci-win

Travis CI Windows builds
This commit is contained in:
Lukas W
2014-11-16 16:10:38 +02:00
4 changed files with 35 additions and 8 deletions

View File

@@ -25,7 +25,7 @@
#include "fft_helpers.h"
#include <math.h>
#include "lmms_math.h"
/* returns biggest value from abs_spectrum[spec_size] array
@@ -73,7 +73,7 @@ int hanming(float *timebuffer, int length, WINDOWS type)
for ( i=0; i<length; i++ )
{
timebuffer[i]=timebuffer[i]*(alpha+(1-alpha)*cos(2*M_PI*i/((float)length-1.0)));
timebuffer[i]=timebuffer[i]*(alpha+(1-alpha)*cos(2*F_PI*i/((float)length-1.0)));
}
return 0;

View File

@@ -305,7 +305,7 @@ void knob::setarcColor( const QColor & _c )
QLineF knob::calculateLine( const QPointF & _mid, float _radius, float _innerRadius ) const
{
const float rarc = m_angle * M_PI / 180.0;
const float rarc = m_angle * F_PI / 180.0;
const float ca = cos( rarc );
const float sa = -sin( rarc );