static void configure_win_ok_cb(GtkWidget * w, gpointer data) { jack_cfg.isTraceEnabled = (gint) GTK_CHECK_BUTTON(GTK_isTraceEnabled)->toggle_button.active; jack_cfg.port_connection_mode = GET_CHARS(GTK_COMBO(port_connection_mode_combo)->entry); jack_set_port_connection_mode(); /* update the connection mode */ mlp_set_bool ("jack", "isTraceEnabled", jack_cfg.isTraceEnabled); mlp_set_string ("jack", "port_connection_mode", jack_cfg.port_connection_mode); gtk_widget_destroy(configure_win); }
/* Initialize necessary things */ static bool_t jack_init (void) { aud_config_set_defaults ("jack", jack_defaults); jack_cfg.isTraceEnabled = aud_get_bool ("jack", "isTraceEnabled"); jack_cfg.volume_left = aud_get_int ("jack", "volume_left"); jack_cfg.volume_right = aud_get_int ("jack", "volume_right"); TRACE("initializing\n"); JACK_Init(); /* initialize the driver */ /* set the bio2jack name so users will see xmms-jack in their */ /* jack client list */ JACK_SetClientName("audacious-jack"); /* set the port connection mode */ jack_set_port_connection_mode(); output_opened = FALSE; /* Always return OK, as we don't know about physical devices here */ return TRUE; }