13
0

Assign a take_id to Bounced regions, so a multitrack bounce can be sorted/recognized in a list

This commit is contained in:
Ben Loftis 2020-07-14 09:31:22 -05:00
parent af4ab3708b
commit a8c29991d6

View File

@ -39,6 +39,7 @@
#include <unistd.h>
#include <limits.h>
#include <glibmm/datetime.h>
#include <glibmm/threads.h>
#include <glibmm/miscutils.h>
#include <glibmm/fileutils.h>
@ -5759,6 +5760,11 @@ Session::write_one_track (Track& track, samplepos_t start, samplepos_t end,
source->set_captured_for(track.name());
time_t now;
time (&now);
Glib::DateTime tm (Glib::DateTime::create_now_local (now));
source->set_take_id (tm.format ("%F %H.%M.%S"));
srcs.push_back (source);
}