X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fedl.C;h=cd20a7b0d56e570d3a36de7b47bd6315fcff947e;hb=5e3715ec449272335bab3419bf21ed4cd6d4bcbf;hp=134aa8c9641f0faaa1407cf4e30da16d7c15a1b1;hpb=b5c58822be78c8820692c916e296a2230bb2b9e2;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/edl.C b/cinelerra-5.1/cinelerra/edl.C index 134aa8c9..cd20a7b0 100644 --- a/cinelerra-5.1/cinelerra/edl.C +++ b/cinelerra-5.1/cinelerra/edl.C @@ -808,12 +808,23 @@ void EDL::set_outpoint(double position) } } +void EDL::deglitch(double position) +{ + if( !session->cursor_on_frames ) return; + Track *current_track = tracks->first; + for( ; current_track; current_track=current_track->next ) { + if( !current_track->record ) continue; + if( current_track->data_type != TRACK_AUDIO ) continue; + ATrack *atrack = (ATrack*)current_track; + atrack->deglitch(position, + session->labels_follow_edits, + session->plugins_follow_edits, + session->autos_follow_edits); + } +} -int EDL::clear(double start, - double end, - int clear_labels, - int clear_plugins, - int edit_autos) +int EDL::clear(double start, double end, + int clear_labels, int clear_plugins, int edit_autos) { if(start == end) { @@ -1552,7 +1563,7 @@ void EDL::append_vwindow_edl(EDL *edl, int increase_counter) double EDL::next_edit(double position) { Units::fix_double(&position); - double new_position = INFINITY; + double new_position = tracks->total_length(); double max_rate = get_frame_rate(); int sample_rate = get_sample_rate();