13
0

Fix VST3 PSL channel-index order

While Ardour uses separate indices when naming tracks and busses
("track 1", "track 2", "bus 1", "bus 2"), the indices are contiguous
(0: "track 1", 1: "track 2", 2: "bus 1", 3: "bus 2").
This commit is contained in:
Robin Gareus 2020-10-22 01:37:40 +02:00
parent e96c7e9b84
commit f3fbb96d6a
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -2497,7 +2497,7 @@ VST3PI::getContextInfoValue (int32& value, FIDString id)
return kNotInitialized;
}
if (0 == strcmp (id, ContextInfo::kIndexMode)) {
value = ContextInfo::kPerTypeIndex;
value = ContextInfo::kFlatIndex;
} else if (0 == strcmp (id, ContextInfo::kType)) {
if (s->is_master ()) {
value = ContextInfo::kOut;
@ -2511,7 +2511,7 @@ VST3PI::getContextInfoValue (int32& value, FIDString id)
} else if (0 == strcmp (id, ContextInfo::kMain)) {
value = s->is_master() ? 1 : 0;
} else if (0 == strcmp (id, ContextInfo::kIndex)) {
value = s->presentation_info ().order(); // XXX
value = s->presentation_info ().order();
} else if (0 == strcmp (id, ContextInfo::kColor)) {
value = s->presentation_info ().color();
#if BYTEORDER == kBigEndian