Fix remaining issue with sound. Now it will look for the first audio file in the directory as long as its .wav. Add more logging to catch issues.
This commit is contained in:
parent
c5aecd3053
commit
07ba08d962
|
@ -9,3 +9,5 @@ filmless_processing/data/frames/*.PNG
|
|||
filmless_processing/data/frames/*.JPEG
|
||||
filmless_processing/data/frames/*.JPG
|
||||
filmless_processing/data/frames/*.TIF
|
||||
filmless_processing/data/audio/*.wav
|
||||
filmless_processing/data/audio/*.WAV
|
|
@ -163,7 +163,7 @@ String[] listFrames (String dir, String audioDir) {
|
|||
audioDir = audioDir + SEP;
|
||||
}
|
||||
file = new File(dir);
|
||||
audioFile = new File(SOUND);
|
||||
audioFile = new File(audioDir);
|
||||
if (file.isDirectory()) {
|
||||
String names[] = file.list();
|
||||
names = sort(names);
|
||||
|
@ -184,6 +184,7 @@ String[] listFrames (String dir, String audioDir) {
|
|||
return null;
|
||||
}
|
||||
|
||||
if (audioFile.isDirectory()) {
|
||||
String audioNames[] = audioFile.list();
|
||||
if (audioNames != null) {
|
||||
audioNames = sort(audioNames);
|
||||
|
@ -193,6 +194,11 @@ String[] listFrames (String dir, String audioDir) {
|
|||
audioTmp.add(audioDir + audioNames[i]);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
println("Audio directory " + audioDir + " not found");
|
||||
}
|
||||
} else {
|
||||
println("SOUND string " + audioDir + " does not point to a directory");
|
||||
}
|
||||
|
||||
if (audioTmp.size() > 0) {
|
||||
|
|
Loading…
Reference in New Issue