From 71582d96b78a52747c65c1aaf89d00e0a7d408a0 Mon Sep 17 00:00:00 2001 From: Comment Date: Thu, 13 Jun 2013 00:10:35 +0100 Subject: investigating sound sync --- vamphost/src/testApp.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'vamphost/src/testApp.cpp') diff --git a/vamphost/src/testApp.cpp b/vamphost/src/testApp.cpp index ebd6c1f..4ecc049 100644 --- a/vamphost/src/testApp.cpp +++ b/vamphost/src/testApp.cpp @@ -46,15 +46,13 @@ void testApp::setup() { scaledVol = 0.0; //if you want to set a different device id - //soundStream.setDeviceID(0); //bear in mind the device id corresponds to all audio devices, including input-only and output-only devices. + soundStream.setDeviceID(4); //bear in mind the device id corresponds to all audio devices, including input-only and output-only devices. soundStream.setup(this, 0, channels, rate, bufferSize, 4); ofSetFrameRate(25); - - } @@ -163,6 +161,9 @@ ofSetColor(225); string reportString = "buffers received: "+ofToString(bufferCounter)+"\ndraw routines called: "+ofToString(drawCounter)+"\nticks: " + ofToString(soundStream.getTickCount()); reportString +="\nfeatures found: "+ofToString(vamphost.numFeat)+" average signal: "+ofToString(vamphost.avg)+" samples: "+ofToString(vamphost.num); reportString +="\n"+vamphost.key; + for (int i=0;i