diff audioio/AudioPortAudioTarget.cpp @ 249:7f08a7e35b3c integration_library

m_bufferSize = 2048 in AudioPortAudioTarget.cpp
author mathieub <mathieu.barthet@eecs.qmul.ac.uk>
date Mon, 10 Oct 2011 17:31:30 +0100
parents 8aace2d9f1c2
children 0136555495ae
line wrap: on
line diff
--- a/audioio/AudioPortAudioTarget.cpp	Tue Aug 23 14:43:54 2011 +0100
+++ b/audioio/AudioPortAudioTarget.cpp	Mon Oct 10 17:31:30 2011 +0100
@@ -49,7 +49,7 @@
 	return;
     }
 
-    m_bufferSize = 2048;
+    m_bufferSize = 2048; //1024 (does not change the latency on win); //initial: 2048
     m_sampleRate = 44100;
     if (m_source && (m_source->getSourceSampleRate() != 0)) {
 	m_sampleRate = m_source->getSourceSampleRate();
@@ -59,7 +59,7 @@
     op.device = Pa_GetDefaultOutputDevice();
     op.channelCount = 2;
     op.sampleFormat = paFloat32;
-    op.suggestedLatency = 1.0;
+    op.suggestedLatency = 0.2;//1.0;
     op.hostApiSpecificStreamInfo = 0;
     err = Pa_OpenStream(&m_stream, 0, &op, m_sampleRate,
                         paFramesPerBufferUnspecified,