comparison projects/basic_network/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
comparison
equal deleted inserted replaced
54:d3f869b98147 108:3068421c0737
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"
14 #include <unistd.h> 13 #include <unistd.h>
14 #include <BeagleRT.h>
15 15
16 using namespace std; 16 using namespace std;
17 17
18 // Handle Ctrl-C by requesting that the audio rendering stop 18 // Handle Ctrl-C by requesting that the audio rendering stop
19 void interrupt_handler(int var) 19 void interrupt_handler(int var)
32 cerr << " --help [-h]: Print this menu\n"; 32 cerr << " --help [-h]: Print this menu\n";
33 } 33 }
34 34
35 int main(int argc, char *argv[]) 35 int main(int argc, char *argv[])
36 { 36 {
37 RTAudioSettings settings; // Standard audio settings 37 BeagleRTInitSettings settings; // Standard audio settings
38 float frequency = 440.0; // Frequency of oscillator 38 float frequency = 440.0; // Frequency of oscillator
39 39
40 struct option customOptions[] = 40 struct option customOptions[] =
41 { 41 {
42 {"help", 0, NULL, 'h'}, 42 {"help", 0, NULL, 'h'},
43 {"frequency", 1, NULL, 'f'}, 43 {"frequency", 1, NULL, 'f'},