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:
parent
25310e49c3
commit
b36323688a
@ -221,7 +221,8 @@ public:
|
|||||||
const std::string& snapshot_name,
|
const std::string& snapshot_name,
|
||||||
BusProfile const * bus_profile = 0,
|
BusProfile const * bus_profile = 0,
|
||||||
std::string mix_template = "",
|
std::string mix_template = "",
|
||||||
bool unnamed = false);
|
bool unnamed = false,
|
||||||
|
samplecnt_t samplerate = 0);
|
||||||
|
|
||||||
virtual ~Session ();
|
virtual ~Session ();
|
||||||
|
|
||||||
|
@ -190,13 +190,14 @@ Session::Session (AudioEngine &eng,
|
|||||||
const string& snapshot_name,
|
const string& snapshot_name,
|
||||||
BusProfile const * bus_profile,
|
BusProfile const * bus_profile,
|
||||||
string mix_template,
|
string mix_template,
|
||||||
bool unnamed)
|
bool unnamed,
|
||||||
|
samplecnt_t sr)
|
||||||
: _playlists (new SessionPlaylists)
|
: _playlists (new SessionPlaylists)
|
||||||
, _engine (eng)
|
, _engine (eng)
|
||||||
, process_function (&Session::process_with_events)
|
, process_function (&Session::process_with_events)
|
||||||
, _bounce_processing_active (false)
|
, _bounce_processing_active (false)
|
||||||
, waiting_for_sync_offset (false)
|
, waiting_for_sync_offset (false)
|
||||||
, _base_sample_rate (0)
|
, _base_sample_rate (sr)
|
||||||
, _current_sample_rate (0)
|
, _current_sample_rate (0)
|
||||||
, _transport_sample (0)
|
, _transport_sample (0)
|
||||||
, _session_range_location (0)
|
, _session_range_location (0)
|
||||||
|
Loading…
Reference in New Issue
Block a user