mirror of
https://github.com/game-stop/veejay.git
synced 2025-12-21 23:30:00 +01:00
reloaded : #define default port num
This commit is contained in:
@@ -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 <options>\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");
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user