changeset 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 a99de38af73f
children 0136555495ae
files audioio/AudioGenerator.cpp audioio/AudioJACKTarget.cpp audioio/AudioPortAudioTarget.cpp
diffstat 3 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/audioio/AudioGenerator.cpp	Tue Aug 23 14:43:54 2011 +0100
+++ b/audioio/AudioGenerator.cpp	Mon Oct 10 17:31:30 2011 +0100
@@ -38,7 +38,7 @@
 #include <QFile>
 
 const size_t
-AudioGenerator::m_pluginBlockSize = 1024; //2048;
+AudioGenerator::m_pluginBlockSize = 1024;//2048;//1024;
 
 QString
 AudioGenerator::m_sampleDir = "";
--- a/audioio/AudioJACKTarget.cpp	Tue Aug 23 14:43:54 2011 +0100
+++ b/audioio/AudioJACKTarget.cpp	Mon Oct 10 17:31:30 2011 +0100
@@ -21,7 +21,7 @@
 #include <iostream>
 #include <cmath>
 
-#include <alloca.h>
+#include <malloc.h> //replace with #include <alloca.h> for osx compilation
 
 //#define DEBUG_AUDIO_JACK_TARGET 1
 
--- 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,