comparison projects/tank_wars/main.cpp @ 56:3c3a1357657d newapi

Further API update to name three primary functions setup(), render() and cleanup(). Changed include paths so now can #include <BeagleRT.h>. Removed stale pru_rtaudio.bin file as this is now done as pru_rtaudio_bin.h. Updated examples to new API and fixed minor compiler warnings along the way. Network example needs further attention to compile.
author andrewm
date Wed, 15 Jul 2015 12:10:51 +0100
parents fbfeb5895efd
children 8d80eda512cd
comparison
equal deleted inserted replaced
55:41d24dba6b74 56:3c3a1357657d
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 {