Allow create Sessions with a specific sample-rate

This is in preparation to create sessions from AAF which may
have a sample-rate other than the running engine.
This commit is contained in:
Robin Gareus 2024-02-15 00:33:10 +01:00
parent 25310e49c3
commit b36323688a
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 5 additions and 3 deletions

View File

@ -221,7 +221,8 @@ public:
const std::string& snapshot_name,
BusProfile const * bus_profile = 0,
std::string mix_template = "",
bool unnamed = false);
bool unnamed = false,
samplecnt_t samplerate = 0);
virtual ~Session ();

View File

@ -190,13 +190,14 @@ Session::Session (AudioEngine &eng,
const string& snapshot_name,
BusProfile const * bus_profile,
string mix_template,
bool unnamed)
bool unnamed,
samplecnt_t sr)
: _playlists (new SessionPlaylists)
, _engine (eng)
, process_function (&Session::process_with_events)
, _bounce_processing_active (false)
, waiting_for_sync_offset (false)
, _base_sample_rate (0)
, _base_sample_rate (sr)
, _current_sample_rate (0)
, _transport_sample (0)
, _session_range_location (0)