Commit e2a9c3a3 authored by CallisteHanriat's avatar CallisteHanriat

delete preview file save

parent 39e5772b
......@@ -177,7 +177,7 @@ public class RecordingLig extends Recording {
}
// if the recording is original
if (isOriginal()) {
/*if (isOriginal()) {
// Import the sample wave file into the new recording directory
importWav(recordingUUID + SAMPLE_SUFFIX, PRVW_WAV_EXT);
} else {
......@@ -186,7 +186,7 @@ public class RecordingLig extends Recording {
// Write the index file
super.index(sourceVerId, getVersionName() + "-" + getId());
}
}*/
JSONObject encodedRecording = this.encode();
......
......@@ -283,7 +283,6 @@ public class RecordElicitation extends AikumaActivity {
FileUtils.copyFile(recording.getFile(),
new File(filename.replace(".wav", "_" + phraseId + ".wav")));
FileIO.delete(new File(filename));
FileIO.delete(new File(filename.replace(".wav", "-preview.wav")));
FileUtils.copyFile(new File(filename.replace(".wav", "-metadata.json")),
new File(filename.replace(".wav", "_" + phraseId + "-metadata.json")));
FileIO.delete(new File(filename.replace(".wav", "-metadata.json")));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment