diff include/PRU.h @ 528:5c8f46fcd4d0 API-update

Updated BelaContext to use separate values for in/ou channels
author Giulio Moro <giuliomoro@yahoo.it>
date Thu, 23 Jun 2016 18:17:35 +0100
parents 493a07f6ec09
children
line wrap: on
line diff
--- a/include/PRU.h	Thu Jun 23 18:15:26 2016 +0100
+++ b/include/PRU.h	Thu Jun 23 18:17:35 2016 +0100
@@ -55,8 +55,10 @@
 
 	/// Number of audio frames per period
 	uint32_t audioFrames;
-	/// Number of audio channels (currently always 2)
-	uint32_t audioChannels;
+	/// Number of input audio channels
+	uint32_t audioInChannels;
+	/// Number of output audio channels
+	uint32_t audioOutChannels;
 	/// Audio sample rate in Hz (currently always 44100.0)
 	float audioSampleRate;
 
@@ -65,10 +67,15 @@
 	/// This will be 0 if analog I/O is disabled.
 	uint32_t analogFrames;
 
-	/// \brief Number of analog channels
+	/// \brief Number of input analog channels
 	///
-	/// This could take a value of 8, 4 or 2. This will be 0 if analog I/O is disabled.
-	uint32_t analogChannels;
+	/// This will be 0 if analog I/O is disabled.
+	uint32_t analogInChannels;
+
+	/// \brief Number of output analog channels
+	///
+	/// This will be 0 if analog I/O is disabled.
+	uint32_t analogOutChannels;
 
 	/// \brief Analog sample rate in Hz
 	///