comparison projects/samples/main.cpp @ 67:472e892c6e41

Merge newapi into default
author Andrew McPherson <a.mcpherson@qmul.ac.uk>
date Fri, 17 Jul 2015 15:28:18 +0100
parents 3c3a1357657d
children
comparison
equal deleted inserted replaced
21:0d80ff9e2227 67:472e892c6e41
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;