diff audioio/AudioPortAudioTarget.cpp @ 436:72c662fe7ea3 cxx11

Further dedicated-types fixes
author Chris Cannam
date Tue, 10 Mar 2015 17:02:52 +0000
parents 1162c93e7688
children
line wrap: on
line diff
--- a/audioio/AudioPortAudioTarget.cpp	Tue Mar 10 13:22:10 2015 +0000
+++ b/audioio/AudioPortAudioTarget.cpp	Tue Mar 10 17:02:52 2015 +0000
@@ -52,7 +52,7 @@
     m_bufferSize = 2048;
     m_sampleRate = 44100;
     if (m_source && (m_source->getSourceSampleRate() != 0)) {
-	m_sampleRate = m_source->getSourceSampleRate();
+	m_sampleRate = int(m_source->getSourceSampleRate());
     }
 
     PaStreamParameters op;
@@ -185,7 +185,7 @@
 
 int
 AudioPortAudioTarget::process(const void *, void *outputBuffer,
-                              int nframes,
+                              sv_frame_t nframes,
                               const PaStreamCallbackTimeInfo *,
                               PaStreamCallbackFlags)
 {
@@ -244,7 +244,7 @@
 	}
     }
 	
-    int received = m_source->getSourceSamples(nframes, tmpbuf);
+    sv_frame_t received = m_source->getSourceSamples(nframes, tmpbuf);
 
     float peakLeft = 0.0, peakRight = 0.0;