comparison projects/filter_FIR/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 // Load samples from file 21 // Load samples from file
88 cerr << " --help [-h]: Print this menu\n"; 89 cerr << " --help [-h]: Print this menu\n";
89 } 90 }
90 91
91 int main(int argc, char *argv[]) 92 int main(int argc, char *argv[])
92 { 93 {
93 RTAudioSettings settings; // Standard audio settings 94 BeagleRTInitSettings settings; // Standard audio settings
94 string fileName; // Name of the sample to load 95 string fileName; // Name of the sample to load
95 96
96 SampleData sampleData; // User define structure to pass data retrieved from file to render function 97 SampleData sampleData; // User define structure to pass data retrieved from file to render function
97 sampleData.samples = 0; 98 sampleData.samples = 0;
98 sampleData.sampleLen = -1; 99 sampleData.sampleLen = -1;