From 1b6cd725e6e1f450b761db0f17bff37f592597de Mon Sep 17 00:00:00 2001 From: James Crook Date: Mon, 10 Sep 2018 23:51:33 +0100 Subject: [PATCH] Use count of channels instead of boolean 'linked' in GetInfo. This change is inspired by the plan to eliminate GetLinked() in 2.3.1. Logically we shouldn't be exposing a boolean 'linked' in scripting, but instead a channel count. --- src/commands/GetInfoCommand.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/GetInfoCommand.cpp b/src/commands/GetInfoCommand.cpp index a2b5b6822..bafd47ffc 100644 --- a/src/commands/GetInfoCommand.cpp +++ b/src/commands/GetInfoCommand.cpp @@ -271,7 +271,7 @@ bool GetInfoCommand::SendTracks(const CommandContext & context) context.AddItem( t->GetEndTime(), "end" ); context.AddItem( t->GetPan() , "pan"); context.AddItem( t->GetGain() , "gain"); - context.AddBool( t->GetLinked(), "linked"); + context.AddItem( t->GetLinked() ? 2:1, "channels"); context.AddBool( t->GetSolo(), "solo" ); context.AddBool( t->GetMute(), "mute"); }