diff audioio/AudioCallbackPlaySource.cpp @ 463:ad998a2fe9e2

Fix a number of warnings in the 32-bit build
author Chris Cannam
date Wed, 01 Jul 2015 15:53:54 +0100
parents 3e2a2ca24d90
children
line wrap: on
line diff
--- a/audioio/AudioCallbackPlaySource.cpp	Wed Jun 10 17:06:02 2015 +0100
+++ b/audioio/AudioCallbackPlaySource.cpp	Wed Jul 01 15:53:54 2015 +0100
@@ -1288,7 +1288,7 @@
                       << got << " < " << reqd << ")" << endl;
         }
 
-        ts->process(m_stretcherInputs, got, false);
+        ts->process(m_stretcherInputs, size_t(got), false);
 
         fedToStretcher += got;
 
@@ -1300,7 +1300,7 @@
         }
     }
 
-    ts->retrieve(buffer, count);
+    ts->retrieve(buffer, size_t(count));
 
     for (int c = stretchChannels; c < getTargetChannelCount(); ++c) {
         for (int i = 0; i < count; ++i) {
@@ -1487,8 +1487,8 @@
 	SRC_DATA data;
 	data.data_in = intlv;
 	data.data_out = srcout;
-	data.input_frames = got;
-	data.output_frames = work;
+	data.input_frames = long(got);
+	data.output_frames = long(work);
 	data.src_ratio = ratio;
 	data.end_of_input = 0;