13
0

Fix pre-roll rec trim near 00:00:00

This commit is contained in:
Robin Gareus 2021-07-12 02:11:35 +02:00
parent 1736cb9ef5
commit 2e90a58611
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -908,7 +908,7 @@ Session::request_preroll_record_trim (samplepos_t rec_in, samplecnt_t preroll)
config.set_punch_out (false); config.set_punch_out (false);
samplepos_t pos = std::max ((samplepos_t)0, rec_in - preroll); samplepos_t pos = std::max ((samplepos_t)0, rec_in - preroll);
_preroll_record_trim_len = preroll; _preroll_record_trim_len = rec_in - pos;
maybe_enable_record (); maybe_enable_record ();
request_locate (pos, MustRoll); request_locate (pos, MustRoll);
set_requested_return_sample (rec_in); set_requested_return_sample (rec_in);