Mercurial > hg > beaglert
comparison projects/analogDigitalDemo/main.cpp @ 52:a6d223473ea2 newapi
Updated examples for new API. tank_wars not yet updated; audio_in_FFT and oscillator_bank not working properly yet.
author | andrewm |
---|---|
date | Sun, 31 May 2015 02:13:39 -0500 |
parents | fbfeb5895efd |
children | 3c3a1357657d |
comparison
equal
deleted
inserted
replaced
51:4f8db16f17b5 | 52:a6d223473ea2 |
---|---|
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/RTAudio.h" | 17 #include "../../include/BeagleRT.h" |
18 #include <unistd.h> | 18 #include <unistd.h> |
19 #include <stdlib.h> | 19 #include <stdlib.h> |
20 #include <fcntl.h> | 20 #include <fcntl.h> |
21 | 21 |
22 using namespace std; | 22 using namespace std; |
37 cerr << " --help [-h]: Print this menu\n"; | 37 cerr << " --help [-h]: Print this menu\n"; |
38 } | 38 } |
39 | 39 |
40 int main(int argc, char *argv[]) | 40 int main(int argc, char *argv[]) |
41 { | 41 { |
42 RTAudioSettings settings; // Standard audio settings | 42 BeagleRTInitSettings settings; // Standard audio settings |
43 float frequency = 1000.0; // Frequency of crossover | 43 float frequency = 1000.0; // Frequency of crossover |
44 | 44 |
45 struct option customOptions[] = | 45 struct option customOptions[] = |
46 { | 46 { |
47 {"help", 0, NULL, 'h'}, | 47 {"help", 0, NULL, 'h'}, |