Mercurial > hg > beaglert
comparison projects/filter_IIR/main.cpp @ 108:3068421c0737 ultra-staging
Merged default into ultra-staging
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Tue, 18 Aug 2015 00:35:15 +0100 |
parents | 3c3a1357657d |
children |
comparison
equal
deleted
inserted
replaced
54:d3f869b98147 | 108:3068421c0737 |
---|---|
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 |
16 #include <BeagleRT.h> | |
16 #include "SampleData.h" | 17 #include "SampleData.h" |
17 | 18 |
18 using namespace std; | 19 using namespace std; |
19 | 20 |
20 float gCutFreq = 100; | 21 float gCutFreq = 100; |
90 cerr << " --help [-h]: Print this menu\n"; | 91 cerr << " --help [-h]: Print this menu\n"; |
91 } | 92 } |
92 | 93 |
93 int main(int argc, char *argv[]) | 94 int main(int argc, char *argv[]) |
94 { | 95 { |
95 RTAudioSettings settings; // Standard audio settings | 96 BeagleRTInitSettings settings; // Standard audio settings |
96 string fileName; // Name of the sample to load | 97 string fileName; // Name of the sample to load |
97 | 98 |
98 SampleData sampleData; // User define structure to pass data retrieved from file to render function | 99 SampleData sampleData; // User define structure to pass data retrieved from file to render function |
99 sampleData.samples = 0; | 100 sampleData.samples = 0; |
100 sampleData.sampleLen = -1; | 101 sampleData.sampleLen = -1; |