mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-01 06:33:53 +01:00
Update Perl pipe-test.pl script.
This commit is contained in:
@@ -140,11 +140,11 @@ sub menuCommand{
|
||||
doCommand("MenuCommand: CommandName=$commandName");
|
||||
}
|
||||
|
||||
# Send a command which requests a list of all available menu commands
|
||||
# Send a command which requests a list of all available menu commands
|
||||
sub getMenuCommands{
|
||||
doCommand("GetMenus: ShowStatus=0");
|
||||
}
|
||||
|
||||
|
||||
sub showMenuStatus{
|
||||
sendCommand("GetMenus: ShowStatus=1");
|
||||
my @resps = getResponses();
|
||||
@@ -161,7 +161,7 @@ sub noSuchCommand{
|
||||
doCommand("NoSuchCommand: myParam=3");
|
||||
}
|
||||
|
||||
sub parameterTest{
|
||||
sub parameterTest{
|
||||
# Set a non-existent parameter
|
||||
doCommand("GetMenus: blah=2");
|
||||
# Parameter with no '='
|
||||
@@ -197,7 +197,7 @@ sub help{
|
||||
doCommand("Help: CommandName=$cmdName");
|
||||
}
|
||||
|
||||
# Get help on all of the listed commands
|
||||
# Get help on all of the listed commands
|
||||
sub fullHelp{
|
||||
my @cmds = qw(BatchCommand CompareAudio MenuCommand GetMenus GetTrackInfo Help Message Screenshot Select SetTrackInfo);
|
||||
foreach my $cmd (@cmds){
|
||||
@@ -260,10 +260,38 @@ sub getTrackInfo{
|
||||
@resps = getResponses();
|
||||
my $startTime = shift(@resps);
|
||||
sendCommand("GetTrackInfo: Type=EndTime TrackIndex=0");
|
||||
@resps = getResponses();
|
||||
my $endTime = shift(@resps);
|
||||
sendCommand("GetTrackInfo: Type=Pan TrackIndex=0");
|
||||
@resps = getResponses();
|
||||
my $pan = shift(@resps);
|
||||
sendCommand("GetTrackInfo: Type=Gain TrackIndex=0");
|
||||
@resps = getResponses();
|
||||
my $gain = shift(@resps);
|
||||
sendCommand("GetTrackInfo: Type=Mute TrackIndex=0");
|
||||
@resps = getResponses();
|
||||
my $mute = shift(@resps);
|
||||
sendCommand("GetTrackInfo: Type=Solo TrackIndex=0");
|
||||
@resps = getResponses();
|
||||
my $solo = shift(@resps);
|
||||
sendCommand("GetTrackInfo: Type=Selected TrackIndex=0");
|
||||
@resps = getResponses();
|
||||
my $selected = shift(@resps);
|
||||
sendCommand("GetTrackInfo: Type=Focused TrackIndex=0");
|
||||
@resps = getResponses();
|
||||
my $focused = shift(@resps);
|
||||
sendCommand("GetTrackInfo: Type=Linked TrackIndex=0");
|
||||
@resps = getResponses();
|
||||
my $linked = shift(@resps);
|
||||
|
||||
print " Name: $name\n";
|
||||
print "StartTime: $startTime\n";
|
||||
print " EndTime: $endTime\n";
|
||||
print " Pan: $pan\n";
|
||||
print " Gain: $gain\n";
|
||||
print " Mute: $mute\n";
|
||||
print " Solo: $solo\n";
|
||||
print " Selected: $selected\n";
|
||||
print " Focused: $focused\n";
|
||||
print " Linked: $linked\n";
|
||||
}
|
||||
@@ -390,7 +418,6 @@ sub getEffects{
|
||||
Echo
|
||||
Equalization
|
||||
FadeIn
|
||||
FadeOut
|
||||
FadeOut
|
||||
Invert
|
||||
Normalize
|
||||
|
||||
Reference in New Issue
Block a user