13
0

fix LTC frame alignment

git-svn-id: svn://localhost/ardour2/branches/3.0@13516 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Robin Gareus 2012-11-18 00:24:06 +00:00
parent 1bff57131a
commit fe11de4381

View File

@ -359,13 +359,13 @@ LTC_Slave::process_ltc(framepos_t const now)
ltc_frame_increment(&frame.ltc, fps_i, tv_standard, 0);
ltc_frame_to_time(&stime, &frame.ltc, 0);
transport_direction = 1;
frame.off_start -= ltc_frame_alignment(session.frame_rate(), tv_standard);
frame.off_end -= ltc_frame_alignment(session.frame_rate(), tv_standard);
frame.off_start += ltc_frame_alignment(session.frame_rate(), tv_standard);
frame.off_end += ltc_frame_alignment(session.frame_rate(), tv_standard);
} else {
ltc_frame_decrement(&frame.ltc, fps_i, tv_standard, 0);
int off = frame.off_end - frame.off_start;
frame.off_start += off - ltc_frame_alignment(session.frame_rate(), tv_standard);
frame.off_end += off - ltc_frame_alignment(session.frame_rate(), tv_standard);
frame.off_start += off + ltc_frame_alignment(session.frame_rate(), tv_standard);
frame.off_end += off + ltc_frame_alignment(session.frame_rate(), tv_standard);
transport_direction = -1;
}