#endif
#endif
globals.use_stdout_cmdline=0;
- globals.current_path = NULL;
+ strcpy(globals.current_path, "");
globals.pitch=1.0;
globals.volume=1.0;
restore_string("record_filename", globals.record_filename);
restore_string("file_editor", globals.file_editor);
restore_string("lrdf_path", globals.lrdf_path);
+ restore_string("last_path", globals.current_path);
restore_int("compress_set_files", globals.compress_set_files);
restore_int("fullscreen_enabled", globals.fullscreen_enabled);
store_int("confirm_events", globals.confirm_events);
store_float("vtt_inertia", globals.vtt_inertia);
+ store_string("last_path", globals.current_path);
+
fprintf(rc,"</terminatorXrc>\n");
}
}
int true_block_size;
int update_delay;
- char *current_path;
+ char current_path[PATH_MAX];
/* new audiodevice handling
we have *all* variables for *all* audiodevice types -
to old values on startup....
*/
globals.use_stdout_cmdline=0;
- globals.current_path = NULL;
+ globals.current_path[0] = 0;
globals.pitch=1.0;
globals.volume=1.0;
}
float tmp=max_value - min_value/1000;
*fx_value=min_value;
+ //myadj=GTK_ADJUSTMENT(gtk_adjustment_new(*fx_value, min_value+tmp/10, max_value-tmp/10, tmp, tmp, tmp));
myadj=GTK_ADJUSTMENT(gtk_adjustment_new(*fx_value, min_value, max_value, tmp, tmp, tmp));
mydial=new tX_extdial(label_name, myadj);
gtk_signal_connect(GTK_OBJECT(myadj), "value_changed", (GtkSignalFunc) tX_seqpar_vttfx_float :: gtk_callback, this);
if (output_buffer) tX_freemem(output_buffer, "output_buffer", "vtt Destructor");
vtt_amount--;
+ if (mix_solo) solo_ctr--;
+
while (fx_list.size())
{
effect=(*fx_list.begin());
recalc_volume();
+ if (mix_solo) {
+ solo_ctr++;
+ }
+
if (xpar_id>=0) {
set_x_input_parameter(tX_seqpar :: get_sp_by_persistence_id(xpar_id));
}
load_part(newfile, vtt);
- if (!globals.current_path)
- {
- free(globals.current_path);
- globals.current_path = NULL;
- }
-
- globals.current_path = strdup(newfile);
+ strcpy(globals.current_path, newfile);
vtt->gui.file_dialog=NULL;
sprintf(buffer, "Select Audio File for %s", vtt->name);
vtt->gui.fs=gtk_file_selection_new(buffer);
- if (strlen(vtt->filename) > 0)
- {
+ if (vtt->audiofile) {
gtk_file_selection_set_filename(GTK_FILE_SELECTION(vtt->gui.fs), vtt->filename);
+ } else if (strlen(globals.current_path)>0 ) {
+ gtk_file_selection_set_filename(GTK_FILE_SELECTION(vtt->gui.fs),globals.current_path);
}
gtk_widget_show(GTK_WIDGET(vtt->gui.fs));
vtt->gui.file_dialog=vtt->gui.fs->window;
- if (globals.current_path)
- {
- gtk_file_selection_set_filename(GTK_FILE_SELECTION(vtt->gui.fs),globals.current_path);
- }
gtk_signal_connect (GTK_OBJECT(GTK_FILE_SELECTION(vtt->gui.fs)->ok_button), "clicked", GTK_SIGNAL_FUNC(do_load_file), vtt);
gtk_signal_connect (GTK_OBJECT(GTK_FILE_SELECTION(vtt->gui.fs)->cancel_button), "clicked", GTK_SIGNAL_FUNC (cancel_load_file), vtt);
gtk_signal_connect (GTK_OBJECT(vtt->gui.fs), "delete-event", GTK_SIGNAL_FUNC(quit_load_file), vtt);