diff --git a/src/OSCeleton.cpp b/src/OSCeleton.cpp index fa5ecb2..f83d10d 100644 --- a/src/OSCeleton.cpp +++ b/src/OSCeleton.cpp @@ -30,7 +30,7 @@ char *ADDRESS = "127.0.0.1"; -int PORT = 7110; +char *PORT = "7110"; #define OUTPUT_BUFFER_SIZE 1024*16 char osc_buffer[OUTPUT_BUFFER_SIZE]; @@ -549,6 +549,7 @@ int main(int argc, char **argv) { usage(argv[0]); } port_argument = arg+1; + PORT = argv[arg+1]; break; case 'w': preview = true; @@ -701,7 +702,7 @@ int main(int argc, char **argv) { xnSetMirror(depth, !mirrorMode); - addr = lo_address_new(ADDRESS, argv[port_argument]); + addr = lo_address_new(ADDRESS, PORT); signal(SIGTERM, terminate); signal(SIGINT, terminate);