From 4983694793f527e7c7bed8f4881116f24dd102c5 Mon Sep 17 00:00:00 2001 From: "v.audacity" Date: Sun, 17 Jun 2012 01:51:05 +0000 Subject: [PATCH] Fix PaulStretch warnings from VC++ compiler. --- src/effects/Paulstretch.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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