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:
parent
2063056243
commit
1b6cd725e6
@ -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");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user