diff options
author | Robin Gareus <robin@gareus.org> | 2012-10-21 14:07:10 +0000 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2012-10-21 14:07:10 +0000 |
commit | ec94210a4d5009bd635b24e7f5af8946f6b7669d (patch) | |
tree | 0dc48dfca1a301a7c0a7b6f484ab397ac34c1cff /libs/ardour/ardour/session.h | |
parent | 4c13d205d4adc5dde130e199ea1f228ce670b588 (diff) |
add LTC generator
git-svn-id: svn://localhost/ardour2/branches/3.0@13315 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/session.h')
-rw-r--r-- | libs/ardour/ardour/session.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/libs/ardour/ardour/session.h b/libs/ardour/ardour/session.h index df04971e02..c9389f60b1 100644 --- a/libs/ardour/ardour/session.h +++ b/libs/ardour/ardour/session.h @@ -64,6 +64,10 @@ #include <jack/session.h> #endif +#ifdef HAVE_LTC +#include <ltc.h> +#endif + class XMLTree; class XMLNode; struct _AEffect; @@ -1178,6 +1182,23 @@ class Session : public PBD::StatefulDestructible, public PBD::ScopedConnectionLi int send_midi_time_code_for_cycle (framepos_t, framepos_t, pframes_t nframes); +#ifdef HAVE_LTC + LTCEncoder* ltc_encoder; + ltcsnd_sample_t* ltc_enc_buf; + + Timecode::TimecodeFormat ltc_enc_tcformat; + framepos_t ltc_enc_pos; + int32_t ltc_buf_off; + int32_t ltc_buf_len; + int32_t ltc_enc_byte; + double ltc_speed; + + void ltc_tx_initialize(); + void ltc_tx_cleanup(); + void ltc_tx_reset(); + int ltc_tx_send_time_code_for_cycle (framepos_t, framepos_t, double, double, pframes_t nframes); +#endif + void reset_record_status (); int no_roll (pframes_t nframes); |