mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
LTC-file reader: offset frame position (not timecode)
This commit is contained in:
parent
d7dc224da5
commit
f9f0b4aabd
1 changed files with 3 additions and 3 deletions
|
|
@ -215,12 +215,12 @@ LTCFileReader::read_ltc (uint32_t channel, uint32_t max_frames)
|
|||
_info.samplerate,
|
||||
0, 0, 0);
|
||||
|
||||
// align LTC frame relative to video-frame
|
||||
sample -= ltc_frame_alignment (
|
||||
/* align LTC frame relative to video-frame */
|
||||
off_start += ltc_frame_alignment (
|
||||
_info.samplerate / _expected_fps,
|
||||
_ltc_tv_standard);
|
||||
|
||||
// convert to seconds (session can use session-rate)
|
||||
/* convert to seconds (session can use session-rate) */
|
||||
double fp_sec = off_start / (double) _info.samplerate;
|
||||
double tc_sec = sample / (double) _info.samplerate;
|
||||
rv.push_back (LTCMap (fp_sec, tc_sec));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue