Mercurial > hg > beaglert
annotate projects/samples/SampleData.h @ 56:3c3a1357657d newapi
Further API update to name three primary functions setup(), render() and cleanup(). Changed include paths so now can #include <BeagleRT.h>. Removed stale pru_rtaudio.bin file as this is now done as pru_rtaudio_bin.h. Updated examples to new API and fixed minor compiler warnings along the way. Network example needs further attention to compile.
author | andrewm |
---|---|
date | Wed, 15 Jul 2015 12:10:51 +0100 |
parents | 24fc8026ae8e |
children |
rev | line source |
---|---|
victor@1 | 1 /* |
victor@1 | 2 * SampleData.h |
victor@1 | 3 * |
victor@1 | 4 * Created on: Nov 5, 2014 |
victor@1 | 5 * Author: Victor Zappi |
victor@1 | 6 */ |
victor@1 | 7 |
victor@1 | 8 #ifndef SAMPLEDATA_H_ |
victor@1 | 9 #define SAMPLEDATA_H_ |
victor@1 | 10 |
victor@1 | 11 // User defined structure to pass between main and rendere complex data retrieved from file |
victor@1 | 12 struct SampleData { |
victor@1 | 13 float *samples; // Samples in file |
victor@1 | 14 int sampleLen; // Total nume of samples |
victor@1 | 15 }; |
victor@1 | 16 |
victor@1 | 17 |
victor@1 | 18 |
victor@1 | 19 #endif /* SAMPLEDATA_H_ */ |