Mercurial > hg > beaglert
comparison projects/analogDigitalDemo/main.cpp @ 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 | a6d223473ea2 |
children |
comparison
equal
deleted
inserted
replaced
55:41d24dba6b74 | 56:3c3a1357657d |
---|---|
12 #include <iostream> | 12 #include <iostream> |
13 #include <cstdlib> | 13 #include <cstdlib> |
14 #include <libgen.h> | 14 #include <libgen.h> |
15 #include <signal.h> | 15 #include <signal.h> |
16 #include <getopt.h> | 16 #include <getopt.h> |
17 #include "../../include/BeagleRT.h" | |
18 #include <unistd.h> | 17 #include <unistd.h> |
19 #include <stdlib.h> | 18 #include <stdlib.h> |
20 #include <fcntl.h> | 19 #include <fcntl.h> |
20 | |
21 #include <BeagleRT.h> | |
21 | 22 |
22 using namespace std; | 23 using namespace std; |
23 | 24 |
24 // Handle Ctrl-C by requesting that the audio rendering stop | 25 // Handle Ctrl-C by requesting that the audio rendering stop |
25 void interrupt_handler(int var) | 26 void interrupt_handler(int var) |