diff core/RTAudio.cpp @ 34:46d87f680da5 matrix_gpio

Merged bbb_network and the so-called "matrix_gpio" branches
author Giulio Moro <giuliomoro@yahoo.it>
date Mon, 11 May 2015 19:50:48 +0100
parents ad5cd8dd99b3
children 4255ecbb9bec 579c86316008
line wrap: on
line diff
--- a/core/RTAudio.cpp	Mon May 11 18:58:47 2015 +0100
+++ b/core/RTAudio.cpp	Mon May 11 19:50:48 2015 +0100
@@ -31,6 +31,7 @@
 #include "../include/I2c_Codec.h"
 #include "../include/render.h"
 #include "../include/GPIOcontrol.h"
+#include "../include/client.h"
 
 using namespace std;
 
@@ -81,6 +82,7 @@
 //
 // Returns 0 on success.
 
+
 int BeagleRT_initAudio(RTAudioSettings *settings, void *userData)
 {
 	rt_print_auto_init(1);
@@ -184,7 +186,7 @@
 				          settings->useAnalog ? settings->periodSize : 0, /* analog period size */
 				          audioPeriodSize,
 				          analogSampleRate, audioSampleRate,
-				          userData)) {
+				          userData, settings)) {
 		cout << "Couldn't initialise audio rendering\n";
 		return 1;
 	}