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:
parent
e96c7e9b84
commit
f3fbb96d6a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user