public class AvconvAudio extends AbstractConverter {
+ private static final String[] SUPPORTED_FORMATS = new String[]{"ogg", "wav", "mp3", "m4a", "flac"};
+
@Override
public String getCommand(final File inputFile, final File targetFile,
final EncodingOptions options, String targetFormat) {
@Override
public List<String> getSourceFileExtensions() {
- return toList("ogg", "wav");
+ return toList(SUPPORTED_FORMATS);
}
@Override
public List<String> getTargetFileExtensions() {
- return toList("mp3");
+ return toList(SUPPORTED_FORMATS);
}
@Override