diff options
Diffstat (limited to 'libs/ardour/session_ltc.cc')
-rw-r--r-- | libs/ardour/session_ltc.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/ardour/session_ltc.cc b/libs/ardour/session_ltc.cc index 2982255024..95d7d2861c 100644 --- a/libs/ardour/session_ltc.cc +++ b/libs/ardour/session_ltc.cc @@ -96,7 +96,8 @@ Session::ltc_tx_send_time_code_for_cycle (framepos_t start_frame, framepos_t end return nframes; } - DEBUG_TRACE (DEBUG::LTC, string_compose("LTC TX %1 to %2 / %3\n", start_frame, end_frame, nframes)); + /* range from libltc (38..218) || - 128.0 -> (-90..90) */ + const float ltcvol = Config->get_ltc_output_volume()/(90.0); // pow(10, db/20.0)/(90.0); /* all systems go. Now here's the plan: * @@ -293,7 +294,7 @@ Session::ltc_tx_send_time_code_for_cycle (framepos_t start_frame, framepos_t end // (6a) while ((ltc_buf_off < ltc_buf_len) && (txf < nframes)) { const float v1 = ltc_enc_buf[ltc_buf_off++] - 128.0; - const jack_default_audio_sample_t val = (jack_default_audio_sample_t) (v1*smult); + const jack_default_audio_sample_t val = (jack_default_audio_sample_t) (v1*ltcvol); out[txf++] = val; } #ifdef LTC_GEN_FRAMEDBUG |