Mercurial > hg > beaglert
comparison projects/tank_wars/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 | 8d80eda512cd |
comparison
equal
deleted
inserted
replaced
54:d3f869b98147 | 108:3068421c0737 |
---|---|
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 <sndfile.h> | 13 #include <sndfile.h> |
14 #include "../../include/RTAudio.h" | 14 #include <BeagleRT.h> |
15 | 15 |
16 extern int gScreenFramesPerSecond; | 16 extern int gScreenFramesPerSecond; |
17 | 17 |
18 float *gMusicBuffer = 0; | 18 float *gMusicBuffer = 0; |
19 int gMusicBufferLength = 0; | 19 int gMusicBufferLength = 0; |
75 cerr << " --help [-h]: Print this menu\n"; | 75 cerr << " --help [-h]: Print this menu\n"; |
76 } | 76 } |
77 | 77 |
78 int main(int argc, char *argv[]) | 78 int main(int argc, char *argv[]) |
79 { | 79 { |
80 RTAudioSettings settings; // Standard audio settings | 80 BeagleRTInitSettings settings; // Standard audio settings |
81 string musicFileName = "music.wav"; | 81 string musicFileName = "music.wav"; |
82 string soundBoomFileName = "boom.wav"; | 82 string soundBoomFileName = "boom.wav"; |
83 | 83 |
84 struct option customOptions[] = | 84 struct option customOptions[] = |
85 { | 85 { |