13
0

fully initialize all LTC transport master members

at least the ones that can be done via initialization statements
This commit is contained in:
Paul Davis 2019-02-04 11:22:04 -07:00
parent 3a43c6375d
commit a18250905c

View File

@ -49,14 +49,19 @@ using namespace Timecode;
LTC_TransportMaster::LTC_TransportMaster (std::string const & name) LTC_TransportMaster::LTC_TransportMaster (std::string const & name)
: TimecodeTransportMaster (name, LTC) : TimecodeTransportMaster (name, LTC)
, did_reset_tc_format (false) , did_reset_tc_format (false)
, saved_tc_format (timecode_24) // whatever ....
, decoder (0) , decoder (0)
, samples_per_ltc_frame (0) , samples_per_ltc_frame (0)
, fps_detected (false) , fps_detected (false)
, monotonic_cnt (0) , monotonic_cnt (0)
, delayedlocked (10) , delayedlocked (10)
, ltc_detect_fps_cnt (0) , ltc_detect_fps_cnt (0)
, printed_timecode_warning (false)
, ltc_detect_fps_max (0) , ltc_detect_fps_max (0)
, sync_lock_broken (false) , sync_lock_broken (false)
, ltc_timecode (Timecode::timecode_24)
, a3e_timecode (Timecode::timecode_24)
, samples_per_timecode_frame (0)
{ {
if ((_port = AudioEngine::instance()->register_input_port (DataType::AUDIO, string_compose ("%1 in", _name))) == 0) { if ((_port = AudioEngine::instance()->register_input_port (DataType::AUDIO, string_compose ("%1 in", _name))) == 0) {
throw failed_constructor(); throw failed_constructor();