Mercurial > hg > beaglert
comparison projects/oscillator_bank/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 | 
|---|---|
| 8 #include <iostream> | 8 #include <iostream> | 
| 9 #include <cstdlib> | 9 #include <cstdlib> | 
| 10 #include <libgen.h> | 10 #include <libgen.h> | 
| 11 #include <signal.h> | 11 #include <signal.h> | 
| 12 #include <getopt.h> | 12 #include <getopt.h> | 
| 13 #include "../../include/RTAudio.h" | 13 #include <BeagleRT.h> | 
| 14 | 14 | 
| 15 using namespace std; | 15 using namespace std; | 
| 16 | 16 | 
| 17 int gNumOscillators = 32; | 17 int gNumOscillators = 32; | 
| 18 int gWavetableLength = 1024; | 18 int gWavetableLength = 1024; | 
| 35 cerr << " --help [-h]: Print this menu\n"; | 35 cerr << " --help [-h]: Print this menu\n"; | 
| 36 } | 36 } | 
| 37 | 37 | 
| 38 int main(int argc, char *argv[]) | 38 int main(int argc, char *argv[]) | 
| 39 { | 39 { | 
| 40 RTAudioSettings settings; // Standard audio settings | 40 BeagleRTInitSettings settings; // Standard audio settings | 
| 41 | 41 | 
| 42 struct option customOptions[] = | 42 struct option customOptions[] = | 
| 43 { | 43 { | 
| 44 {"help", 0, NULL, 'h'}, | 44 {"help", 0, NULL, 'h'}, | 
| 45 {"num-oscillators", 1, NULL, 'n'}, | 45 {"num-oscillators", 1, NULL, 'n'}, | 
