diff --git a/src/effects/Paulstretch.cpp b/src/effects/Paulstretch.cpp index c7fcdf389..fa6556ec9 100644 --- a/src/effects/Paulstretch.cpp +++ b/src/effects/Paulstretch.cpp @@ -145,7 +145,7 @@ class PaulStretch{ bool EffectPaulstretch::ProcessOne(WaveTrack *track,double t0,double t1,int count){ int stretch_buf_size;//must be power of 2 (because Audacity's fft requires it) - if (time_resolution<0.001) time_resolution=0.001; + if (time_resolution<0.001) time_resolution=0.001f; { float tmp=track->GetRate()*time_resolution*0.5; tmp=log(tmp)/log(2.0); @@ -328,7 +328,7 @@ void PaulStretch::process(float *smps,int nsmps){ //put randomize phases to frequencies and do a IFFT - float inv_2p15_2pi=1.0/16384.0*M_PI; + float inv_2p15_2pi=1.0/16384.0*(float)M_PI; for (int i=1;i