X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Feu%2Fsvjatoslav%2Fmeviz%2Fencoder%2Fconverters%2FOgg2Wav.java;h=5fcb8e7c3336cd2ef401918ebcb5c8d9db8b6a4d;hb=567410640f4e0428caf9de9fc83df4c73f0e5067;hp=49b989be7e77925e9feaf15ad04504a471406948;hpb=50cb7085d553fdd82cd06806cd27b1675299f719;p=meviz.git diff --git a/src/main/java/eu/svjatoslav/meviz/encoder/converters/Ogg2Wav.java b/src/main/java/eu/svjatoslav/meviz/encoder/converters/Ogg2Wav.java index 49b989b..5fcb8e7 100755 --- a/src/main/java/eu/svjatoslav/meviz/encoder/converters/Ogg2Wav.java +++ b/src/main/java/eu/svjatoslav/meviz/encoder/converters/Ogg2Wav.java @@ -1,35 +1,38 @@ /* * Meviz - Various tools collection to work with multimedia. - * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu - * + * Copyright (C) 2012 -- 2019, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu + * * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2 of the GNU General Public License - * as published by the Free Software Foundation. - */ + * modify it under the terms of version 3 of the GNU Lesser General Public License + * or later as published by the Free Software Foundation. +*/ package eu.svjatoslav.meviz.encoder.converters; -import java.io.File; - import eu.svjatoslav.meviz.encoder.EncodingOptions; -public class Ogg2Wav implements Converter { +import java.io.File; +import java.util.List; + +public class Ogg2Wav extends AbstractConverter { @Override - public String getCommand(final File inputFile, final File targetFile, final EncodingOptions options) { + public String getCommand(final File inputFile, final File targetFile, + final EncodingOptions options, String targetFormat) { - return "oggdec \"" + inputFile.getAbsolutePath() + "\" -o \"" + targetFile.getAbsolutePath() + "\""; + return "oggdec \"" + inputFile.getAbsolutePath() + "\" -o \"" + + targetFile.getAbsolutePath() + "\""; } @Override - public String getSourceFileExtension() { - return "ogg"; + public List getSourceFileExtensions() { + return toList("ogg"); } @Override - public String getTargetFileExtension() { - return "wav"; + public List getTargetFileExtensions() { + return toList("wav"); } @Override