diff examples/03-Analog/analog-input/render.cpp @ 537:bfcbeb437869 API-update

Updated RTAudioSettings with in/out, ported some examples and libpd
author Giulio Moro <giuliomoro@yahoo.it>
date Fri, 24 Jun 2016 01:36:07 +0100
parents 9f455f01edd5
children 3016638b4da2
line wrap: on
line diff
--- a/examples/03-Analog/analog-input/render.cpp	Thu Jun 23 18:17:35 2016 +0100
+++ b/examples/03-Analog/analog-input/render.cpp	Fri Jun 24 01:36:07 2016 +0100
@@ -68,7 +68,7 @@
 
 		float out = amplitude * sinf(gPhase);
 
-		for(unsigned int channel = 0; channel < context->audioChannels; channel++)
+		for(unsigned int channel = 0; channel < context->audioOutChannels; channel++)
 			context->audioOut[n * context->audioChannels + channel] = out;
 
 		gPhase += 2.0 * M_PI * frequency * gInverseSampleRate;