diff options
author | Robin Gareus <robin@gareus.org> | 2012-10-21 14:07:07 +0000 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2012-10-21 14:07:07 +0000 |
commit | 4c13d205d4adc5dde130e199ea1f228ce670b588 (patch) | |
tree | 433af834325199d64cb792368f5197fdf01f049e /libs/ardour/ltc_slave.cc | |
parent | 7f8d2e32da0f97c519219bb1869f5ca24a62e318 (diff) |
LTC Slave cleanup
initialize audioengine's ltc_port - if HAVE_LTC is not set
trying to connect it would segfault.
LTC frameno is < 40 by (two bit frame-ten's)
git-svn-id: svn://localhost/ardour2/branches/3.0@13314 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ltc_slave.cc')
-rw-r--r-- | libs/ardour/ltc_slave.cc | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/libs/ardour/ltc_slave.cc b/libs/ardour/ltc_slave.cc index 39a97677a6..9153facb8c 100644 --- a/libs/ardour/ltc_slave.cc +++ b/libs/ardour/ltc_slave.cc @@ -76,12 +76,6 @@ LTC_Slave::resolution () const return (framecnt_t) (frames_per_ltc_frame); } -ARDOUR::framecnt_t -LTC_Slave::seekahead_distance () const -{ - return 0; -} - bool LTC_Slave::locked () const { @@ -135,7 +129,7 @@ LTC_Slave::detect_ltc_fps(int frameno, bool df) } ltc_detect_fps_cnt++; - if (ltc_detect_fps_cnt > 60) + if (ltc_detect_fps_cnt > 40) { if (ltc_detect_fps_cnt > ltc_detect_fps_max && ( ceil(timecode.rate) != (ltc_detect_fps_max + 1) |