diff --git a/veejay-current/veejay-client/src/gveejay.c b/veejay-current/veejay-client/src/gveejay.c index ecf9e540..8df1b36e 100644 --- a/veejay-current/veejay-client/src/gveejay.c +++ b/veejay-current/veejay-client/src/gveejay.c @@ -39,7 +39,7 @@ static int selected_skin = 0; extern int mt_get_max_tracks(); static int load_midi = 0; -static int port_num = 3490; +static int port_num = DEFAULT_PORT_NUM; static char hostname[255]; static int gveejay_theme = 0; // set to 1 to load with the default reloaded theme static int verbosity = 0; @@ -69,7 +69,7 @@ static void usage(char *progname) printf( "Usage: %s \n",progname); printf( "where options are:\n"); printf( "-h\t\tVeejay host to connect to (defaults to localhost) \n"); - printf( "-p\t\tVeejay port to connect to (defaults to 3490) \n"); + printf( "-p\t\tVeejay port to connect to (defaults to %d) \n", DEFAULT_PORT_NUM); printf( "-t\t\tLoad gveejay's classic GTK theme\n"); printf( "-n\t\tDont use colored text\n"); printf( "-v\t\tBe extra verbose (usefull for debugging)\n"); diff --git a/veejay-current/veejay-client/src/multitrack.c b/veejay-current/veejay-client/src/multitrack.c index 7122e88f..486758fb 100644 --- a/veejay-current/veejay-client/src/multitrack.c +++ b/veejay-current/veejay-client/src/multitrack.c @@ -762,7 +762,7 @@ static char *mt_new_connection_dialog(multitracker_t *mt, int *port_num, int *er gtk_dialog_set_default_response( GTK_DIALOG(dialog), GTK_RESPONSE_REJECT ); gtk_window_set_resizable( GTK_WINDOW( dialog ), FALSE ); - gint base = 3490; + gint base = DEFAULT_PORT_NUM; gint p = (1000 * (mt->selected)) + base; diff --git a/veejay-current/veejay-client/src/vj-api.c b/veejay-current/veejay-client/src/vj-api.c index 2f022d1f..f880908b 100644 --- a/veejay-current/veejay-client/src/vj-api.c +++ b/veejay-current/veejay-client/src/vj-api.c @@ -7401,7 +7401,7 @@ void vj_gui_init(char *glade_file, int launcher, char *hostname, int port_num, use_threads); if( auto_connect ) { - for( i = 3490; i < 9999; i+= 1000 ) { + for( i = DEFAULT_PORT_NUM; i < 9999; i+= 1000 ) { multrack_audoadd( gui->mt, "localhost", i); } } diff --git a/veejay-current/veejay-client/src/vj-api.h b/veejay-current/veejay-client/src/vj-api.h index be06ead4..d7a8e043 100644 --- a/veejay-current/veejay-client/src/vj-api.h +++ b/veejay-current/veejay-client/src/vj-api.h @@ -19,6 +19,9 @@ #ifndef VJAPI_H #define VJAPI_H + +#define DEFAULT_PORT_NUM 3490 + int veejay_tick(); void *get_ui_info(); void vj_gui_set_geom(int x, int y);