Set pun_duration_saved

This commit is contained in:
Gerhard Hoffmann 2024-07-23 12:51:51 +02:00
parent 2b30e9562f
commit 7f25c46d30

View File

@ -691,8 +691,10 @@ bool Configuration::ParseJson(Configuration* cfg, const char* json)
case MemberType::DurationType:
if (strcmp(inner_obj_name, "pun_id") == 0) Duration.pun_id = k->value.GetInt();
else if (strcmp(inner_obj_name, "pun_label") == 0) Duration.pun_label = k->value.GetString();
else if (strcmp(inner_obj_name, "pun_duration") == 0) Duration.pun_duration = k->value.GetDouble();
else if (strcmp(inner_obj_name, "pun_duration_min") == 0) Duration.pun_duration_min = k->value.GetInt();
else if (strcmp(inner_obj_name, "pun_duration") == 0) {
Duration.pun_duration = k->value.GetDouble();
Duration.pun_duration_saved = Duration.pun_duration;
} else if (strcmp(inner_obj_name, "pun_duration_min") == 0) Duration.pun_duration_min = k->value.GetInt();
else if (strcmp(inner_obj_name, "pun_duration_max") == 0) Duration.pun_duration_max = k->value.GetInt();
else if (strcmp(inner_obj_name, "pun_interpolation_id") == 0) Duration.pun_interpolation_id = k->value.GetInt();
break;