"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "snd-edits.c" between
snd-20.8.tar.gz and snd-20.9.tar.gz

About: Snd is a sound editor (requires Motif or Gtk+).

snd-edits.c  (snd-20.8):snd-edits.c  (snd-20.9)
skipping to change at line 267 skipping to change at line 267
} }
#endif #endif
} }
return(filename); return(filename);
} }
/* -------- EDIT LISTS -------- /* -------- EDIT LISTS --------
* *
* each channel has a list of lists containing the current edit history and the associated sound temp files or buffers * each channel has a list of lists containing the current edit history and the associated sound temp files or buffers
* undo: back up current list position * undo: back up current list position
* redo: push position foward * redo: push position forward
* No actual changes are flushed out to the file system until the file is saved. * No actual changes are flushed out to the file system until the file is saved.
* *
* the editing possibilities are insert, change, delete, scale, zero, env, mix * the editing possibilities are insert, change, delete, scale, zero, env, mix
* All input goes through these lists (with minor exceptions -- see chn_sample b elow). * All input goes through these lists (with minor exceptions -- see chn_sample b elow).
* *
* The accessors are highly optimized (split into numerous choices) since everyt hing else in Snd * The accessors are highly optimized (split into numerous choices) since everyt hing else in Snd
* goes through the accessors to get at the data. * goes through the accessors to get at the data.
* *
* I tried a flattened version (using ed_fragment* rather than ed_fragment**) wh ich involves fewer calls on malloc, * I tried a flattened version (using ed_fragment* rather than ed_fragment**) wh ich involves fewer calls on malloc,
* but the edit list is a "real" list -- we do internal insertions and deletio ns and so on, so it's simpler * but the edit list is a "real" list -- we do internal insertions and deletio ns and so on, so it's simpler
skipping to change at line 1937 skipping to change at line 1937
ed->beg, ed->beg,
ed->len); ed->len);
if (ed->origin) if (ed->origin)
fprintf_with_possible_embedded_string(fd, ed->origin); fprintf_with_possible_embedded_string(fd, ed->origin);
else fprintf(fd, "\"\""); else fprintf(fd, "\"\"");
nfile = edit_list_data_to_temp_file(cp, ed, DONT_DELETE_ME, wit h_save_state_hook); nfile = edit_list_data_to_temp_file(cp, ed, DONT_DELETE_ME, wit h_save_state_hook);
fprintf(fd, " \"%s\" sfile %d", nfile, cp->chan); fprintf(fd, " \"%s\" sfile %d", nfile, cp->chan);
break; break;
case EXTEND_EDIT: case EXTEND_EDIT:
/* not currently savable (this is a dummy edit fragment for zer o-mix-drag position change) */ /* not currently saveable (this is a dummy edit fragment for ze ro-mix-drag position change) */
break; break;
case ZERO_EDIT: case ZERO_EDIT:
forth_func = S_pad_channel; forth_func = S_pad_channel;
fprintf(fd, "%" print_mus_long " %" print_mus_long " sfile %d", fprintf(fd, "%" print_mus_long " %" print_mus_long " sfile %d",
ed->beg, ed->beg,
ed->len, ed->len,
cp->chan); cp->chan);
break; break;
skipping to change at line 2017 skipping to change at line 2017
ed->len); ed->len);
if (ed->origin) if (ed->origin)
fprintf_with_possible_embedded_string(fd, ed->origin); fprintf_with_possible_embedded_string(fd, ed->origin);
else fprintf(fd, "\"\""); else fprintf(fd, "\"\"");
fprintf(fd, PROC_SEP); fprintf(fd, PROC_SEP);
nfile = edit_list_data_to_temp_file(cp, ed, DONT_DELETE_ME, wit h_save_state_hook); nfile = edit_list_data_to_temp_file(cp, ed, DONT_DELETE_ME, wit h_save_state_hook);
fprintf(fd, "\"%s\"" PROC_SEP "sfile" PROC_SEP "%d", nfile, cp- >chan); fprintf(fd, "\"%s\"" PROC_SEP "sfile" PROC_SEP "%d", nfile, cp- >chan);
break; break;
case EXTEND_EDIT: case EXTEND_EDIT:
/* not currently savable (this is a dummy edit fragment for zer o-mix-drag position change) */ /* not currently saveable (this is a dummy edit fragment for ze ro-mix-drag position change) */
break; break;
case SCALED_EDIT: case SCALED_EDIT:
fprintf(fd, "%s" PROC_SEP "sfile" PROC_SEP "%d", fprintf(fd, "%s" PROC_SEP "sfile" PROC_SEP "%d",
ed->origin, /* imports scaler */ ed->origin, /* imports scaler */
cp->chan); cp->chan);
break; break;
case ZERO_EDIT: case ZERO_EDIT:
fprintf(fd, "%s" PROC_OPEN "%" print_mus_long PROC_SEP "%" prin t_mus_long PROC_SEP "sfile" PROC_SEP "%d", fprintf(fd, "%s" PROC_OPEN "%" print_mus_long PROC_SEP "%" prin t_mus_long PROC_SEP "sfile" PROC_SEP "%d",
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)