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