Patch from antgel to fix resampling of sessions with no
automation/ directory (#4888). git-svn-id: svn://localhost/ardour2/branches/3.0@12454 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
d7a32eb85e
commit
67953dc93b
@ -99,15 +99,17 @@ while ( my $file=readdir(DOT_ARDOUR) ) {
|
|||||||
}
|
}
|
||||||
close(DOT_ARDOUR);
|
close(DOT_ARDOUR);
|
||||||
|
|
||||||
# Read the names of all automation files in /automation/
|
if ( -d $sourceDirectory."/automation/") {
|
||||||
opendir(AUTOMATION,$sourceDirectory."/automation/") || die ($sourceDirectory."/automation: could not open!");
|
# Read the names of all automation files in /automation/
|
||||||
while ( my $file=readdir(AUTOMATION) ) {
|
opendir(AUTOMATION,$sourceDirectory."/automation/") || die ($sourceDirectory."/automation: could not open!");
|
||||||
if ( -f $sourceDirectory."/automation/".$file &&
|
while ( my $file=readdir(AUTOMATION) ) {
|
||||||
index($file,".automation") eq (length($file)-11)) {
|
if ( -f $sourceDirectory."/automation/".$file &&
|
||||||
push(@automation,$file);
|
index($file,".automation") eq (length($file)-11)) {
|
||||||
|
push(@automation,$file);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
close(AUTOMATION);
|
||||||
}
|
}
|
||||||
close(AUTOMATION);
|
|
||||||
|
|
||||||
# Check for /peaks/
|
# Check for /peaks/
|
||||||
if ( ! -d $sourceDirectory."/peaks" ) {
|
if ( ! -d $sourceDirectory."/peaks" ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user