Parse v2 session-information

This commit is contained in:
Robin Gareus 2019-12-16 18:30:09 +01:00
parent eff5462009
commit 415d3191de
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

@ -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")) {