Skip to content

Commit 64da8e7

Browse files
committed
report lane names
1 parent feb35b1 commit 64da8e7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/reaper_osara.cpp

+6-2
Original file line numberDiff line numberDiff line change
@@ -4619,7 +4619,7 @@ void cmdOpenDoc(Command* command) {
46194619
void MoveToFixedLane (int direction) {
46204620
MediaTrack* track = GetLastTouchedTrack();
46214621
if (getTrackFreeMode(track) != FreeMode::fixed) {
4622-
outputMessage("Track not in fixed lane mode");
4622+
outputMessage(translate("Track not in fixed lane mode"));
46234623
return;
46244624
}
46254625
int laneCount = (int)GetMediaTrackInfo_Value(track, "I_NUMFIXEDLANES");
@@ -4630,7 +4630,11 @@ void MoveToFixedLane (int direction) {
46304630
if (trackFixedLane >= laneCount) {
46314631
trackFixedLane = 0;
46324632
}
4633-
outputMessage(format(translate("Lane {}"), trackFixedLane + 1));
4633+
const char* laneName = (char*)GetSetMediaTrackInfo(track, format("P_LANENAME:{}", trackFixedLane).c_str(), nullptr);
4634+
if(!laneName) {
4635+
laneName = "";
4636+
}
4637+
outputMessage(format(translate("Lane {} {}"), trackFixedLane + 1, laneName));
46344638
}
46354639

46364640
void cmdNextLane(Command* cmd) {

0 commit comments

Comments
 (0)