changeset 185:126ce8570eb2

remove some warning (casting)
author lbajardsilogic
date Mon, 26 Nov 2007 08:22:54 +0000
parents 6a574a1abfc8
children e841a24915ff
files sv/filter/TimeStretchFilter.cpp sv/main/EasaierSessionManager.cpp
diffstat 2 files changed, 10 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/sv/filter/TimeStretchFilter.cpp	Fri Nov 23 13:19:43 2007 +0000
+++ b/sv/filter/TimeStretchFilter.cpp	Mon Nov 26 08:22:54 2007 +0000
@@ -296,14 +296,14 @@
 
 	int channel = getSourceChannelCount();
 
-	for (int i=0; i<samples; i++){
+	for (int i=0; i< ((int) samples); i++){
 		if (channel > 1)
 			m_inputBuffer[i] = input[0][i];// + input[1][i]) /2;
 		else
 			m_inputBuffer[i] = input[0][i];
 	}
 	
-	for (int i = 0; i<m_framesize; i++)
+	for (int i = 0; i< ((int) m_framesize); i++)
 	{
 			
 		//This block was specifically written to do resampling interpolation for crude pitch shifting
@@ -384,24 +384,24 @@
 		fft_object.rescale(processedframe); //VIP######## I have edited this function to do rewindowing also######
 	}
 
-	for (int p = 0; p<(m_framesize); p++){
+	for (int p = 0; p < ((int) m_framesize); p++){
 		processedframe[p]=processedframe[p]*window[p];
 	}
 	
-	for (int j = 0; j<(m_framesize); j++)
+	for (int j = 0; j< ((int) m_framesize); j++)
 	{		
 		//This block deals with the buffers for a 75% overlap scheme		
 		
-		if (j < m_framesize/4){
+		if (j < ((int) m_framesize)/4){
 			outbuffer[j]=(processedframe[j]+holdbuffer1[j]+holdbuffer2[j]+holdbuffer3[j])*0.5;
 			holdbuffer1[j]=holdbuffer2[j+(m_framesize/4)];
 		}
 
-		if (j < m_framesize/2){
+		if (j < ((int) m_framesize)/2){
 			holdbuffer2[j]=holdbuffer3[j+(m_framesize/4)];
 		}
 
-		if (j < m_framesize*0.75){
+		if (j < ((int) m_framesize)*0.75){
 			holdbuffer3[j]=processedframe[j+(m_framesize/4)];
 		}
 	}
@@ -414,7 +414,7 @@
 
 	int channel = getSourceChannelCount();
 
-	for (size_t ch = 0; ch < channel; ++ch) 
+	for (int ch = 0; ch < channel; ++ch) 
 	{
 		for (size_t i = 0; i < samples; ++i) {
 			output[ch][i] = outbuffer[i];
--- a/sv/main/EasaierSessionManager.cpp	Fri Nov 23 13:19:43 2007 +0000
+++ b/sv/main/EasaierSessionManager.cpp	Mon Nov 26 08:22:54 2007 +0000
@@ -389,7 +389,7 @@
 					ok = true;
 				} else if (VideoFileReaderFactory::isKnownExtensions(extension)) 
 				{
-					ok = !(MainWindow::instance()->openVideoFile(filename, MainWindow::AudioFileOpenMode::ReplaceMainModel));
+					ok = !(MainWindow::instance()->openVideoFile(filename, MainWindow::ReplaceMainModel));
 				} else
 				{
 					ModelReader modelReader(m_document, layer);
@@ -440,7 +440,7 @@
 	QString params = "";
 	if(themeModel!=0){
 		PropertyContainer::PropertyList propertyList = themeModel->getProperties();
-		for(int i=0; i<propertyList.size();i++){
+		for(int i=0; i< ((int) propertyList.size());i++){
 			params+= "&"+propertyList[i] + "="+themeModel->getPropertyValue(propertyList[i]);
 		}
 	}