diff include/Bela.h @ 539:b486344aa796 prerelease

merge
author Giulio Moro <giuliomoro@yahoo.it>
date Fri, 24 Jun 2016 01:43:53 +0100
parents bfcbeb437869
children ce391098f321
line wrap: on
line diff
--- a/include/Bela.h	Fri Jun 24 01:40:25 2016 +0100
+++ b/include/Bela.h	Fri Jun 24 01:43:53 2016 +0100
@@ -112,8 +112,14 @@
 	int useAnalog;
 	/// Whether to use the 16 programmable GPIOs
 	int useDigital;
-	/// How many channels for the ADC and DAC
-	int numAnalogChannels;
+	/// How many audio input channels
+	int numAudioInChannels;
+	/// How many audio out channels
+	int numAudioOutChannels;
+	/// How many analog input channels
+	int numAnalogInChannels;
+	/// How many analog output channels
+	int numAnalogOutChannels;
 	/// How many channels for the GPIOs
 	int numDigitalChannels;
 
@@ -206,8 +212,10 @@
 
 	/// Number of audio frames per period
 	const uint32_t audioFrames;
-	/// Number of audio channels (currently always 2)
-	const uint32_t audioChannels;
+	/// Number of input audio channels
+	const uint32_t audioInChannels;
+	/// Number of output audio channels
+	const uint32_t audioOutChannels;
 	/// Audio sample rate in Hz (currently always 44100.0)
 	const float audioSampleRate;
 
@@ -216,10 +224,15 @@
 	/// This will be 0 if analog I/O is disabled.
 	const 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.
-	const uint32_t analogChannels;
+	/// This will be 0 if analog I/O is disabled.
+	const uint32_t analogInChannels;
+
+	/// \brief Number of output analog channels
+	///
+	/// This will be 0 if analog I/O is disabled.
+	const uint32_t analogOutChannels;
 
 	/// \brief Analog sample rate in Hz
 	///