1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-01 08:29:27 +02:00

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.
This commit is contained in:
James Crook 2018-09-10 23:51:33 +01:00
parent 2063056243
commit 1b6cd725e6

View File

@ -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");
}