diff options
author | Robin Gareus <robin@gareus.org> | 2019-12-16 18:30:09 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-12-16 23:37:57 +0100 |
commit | 415d3191def17c8364ad7ea114493427319d33fe (patch) | |
tree | cc3e0600bc0f2b9935978410345c38781895852f | |
parent | eff546200903aaa4d42489fabf2f509037fb6d6b (diff) |
Parse v2 session-information
-rw-r--r-- | libs/ardour/session_state.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index a07eb9aad3..f61c197a0a 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -4523,6 +4523,12 @@ Session::get_info_from_path (const string& xmlpath, float& sample_rate, SampleFo return -1; } + if ((parse_stateful_loading_version(version) / 1000L) <= 2) { + /* sample-format '0' is implicit */ + data_format = FormatFloat; + found_data_format = true; + } + node = node->children; while (node != NULL) { if (!strcmp((const char*) node->name, "ProgramVersion")) { |