Mercurial > hg > beaglert
comparison projects/filter_IIR/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 | 901d205d1a3c |
children | 3c3a1357657d |
comparison
equal
deleted
inserted
replaced
51:4f8db16f17b5 | 52:a6d223473ea2 |
---|---|
10 #include <libgen.h> | 10 #include <libgen.h> |
11 #include <signal.h> | 11 #include <signal.h> |
12 #include <string> | 12 #include <string> |
13 #include <getopt.h> | 13 #include <getopt.h> |
14 #include <sndfile.h> // to load audio files | 14 #include <sndfile.h> // to load audio files |
15 #include "../../include/RTAudio.h" | 15 #include "../../include/BeagleRT.h" |
16 #include "SampleData.h" | 16 #include "SampleData.h" |
17 | 17 |
18 using namespace std; | 18 using namespace std; |
19 | 19 |
20 float gCutFreq = 100; | 20 float gCutFreq = 100; |
90 cerr << " --help [-h]: Print this menu\n"; | 90 cerr << " --help [-h]: Print this menu\n"; |
91 } | 91 } |
92 | 92 |
93 int main(int argc, char *argv[]) | 93 int main(int argc, char *argv[]) |
94 { | 94 { |
95 RTAudioSettings settings; // Standard audio settings | 95 BeagleRTInitSettings settings; // Standard audio settings |
96 string fileName; // Name of the sample to load | 96 string fileName; // Name of the sample to load |
97 | 97 |
98 SampleData sampleData; // User define structure to pass data retrieved from file to render function | 98 SampleData sampleData; // User define structure to pass data retrieved from file to render function |
99 sampleData.samples = 0; | 99 sampleData.samples = 0; |
100 sampleData.sampleLen = -1; | 100 sampleData.sampleLen = -1; |