Commit 8eaa37ed authored by thurner's avatar thurner

parent ab28d1f9
......@@ -40,7 +40,7 @@ import ttt.TTT;
*/
public class LameEncoder {
private static final String LAME = "C:\\dev\\bin\\lame.exe";
private static final String LAME = "lame";
public static void main(String[] args) throws Exception{
......
......@@ -40,7 +40,7 @@ import ttt.TTT;
*/
public class OggVorbisEncoder {
private static final String OGGVORBIS = "C:\\dev\\bin\\oggenc.exe";
private static final String OGGVORBIS = "oggenc";
public static void main(String[] args) throws Exception{
......@@ -103,7 +103,7 @@ public class OggVorbisEncoder {
//call oggenc
exec.createListenerStream();
i = exec.exec(new String[] {oggencCmd, options, "-o "+outFile.getPath(), inFile.getPath()});
i = exec.exec(new String[] {oggencCmd, options, "-o "+outFile.getPath(), inFile.getPath()});
timer.stop();
if (progressMonitor.isCanceled()) {
......@@ -128,7 +128,7 @@ public class OggVorbisEncoder {
}
System.out.println(exec.getListenerStream());
outFile.delete();
throw new IOException("unable to encode audio file using oggenc");
throw new IOException("unable to encode audio file using oggenc, i: "+i+" outFile.length: "+outFile.length()+" outFile.getPath(): "+outFile.getPath());
}
if(TTT.verbose){
System.out.println("Done in " + Constants.getStringFromTime((int)(System.currentTimeMillis()-startTime)));
......
......@@ -165,7 +165,7 @@ public class PostProcessorPanel extends GradientPanel {
public void itemStateChanged(ItemEvent event) {
try {
//if there is no mp3 file, a mp3 file must be created before creating the flash movie
if (html5CheckBox.isSelected() && PostProcessorPanel.this.recording.getExistingFileBySuffix("mp3").exists() == false) {
if (html5CheckBox.isSelected() && mp3CheckBox.isEnabled() && PostProcessorPanel.this.recording.getExistingFileBySuffix("mp3").exists() == false) {
mp3CheckBox.setSelected(true);
}
} catch (IOException e) {
......@@ -179,7 +179,7 @@ public class PostProcessorPanel extends GradientPanel {
public void itemStateChanged(ItemEvent event) {
try {
//if there is no mp3 file, a mp3 file must be created before creating the flash movie
if (html5CheckBox.isSelected() && PostProcessorPanel.this.recording.getExistingFileBySuffix("ogg").exists() == false) {
if (html5CheckBox.isSelected() && oggVorbisCheckBox.isEnabled() && PostProcessorPanel.this.recording.getExistingFileBySuffix("ogg").exists() == false) {
oggVorbisCheckBox.setSelected(true);
}
} catch (IOException e) {
......
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