diff --git a/build.gradle b/build.gradle index 88a021d..e26a962 100644 --- a/build.gradle +++ b/build.gradle @@ -7,22 +7,25 @@ task wrapper(type: Wrapper) { } dependencies { - compile 'com.github.boukefalos:jlibpipe:0.1' - compile 'com.github.boukefalos:jlibloader:0.2' + compile 'com.github.boukefalos:jlibsox:0.2' + compile 'com.github.boukefalos:jlibpipe:0.1' + + compile 'commons-io:commons-io:2.+' + compile 'commons-cli:commons-cli:1.+' + compile 'commons-pool:commons-pool:1.+' + compile 'org.slf4j:slf4j-api:1.+' + compile 'org.slf4j:slf4j-log4j12:1.7.5' + compile 'org.ostermiller:utils:1.+' + compile 'com.googlecode.soundlibs:jlayer:1.+' + compile 'net.sf.javamusictag:jid3lib:0.+' - compile 'commons-io:commons-io:2.+' - compile 'commons-cli:commons-cli:1.+' - compile 'commons-pool:commons-pool:1.+' - compile 'org.slf4j:slf4j-api:1.+' - compile 'org.slf4j:slf4j-log4j12:1.7.5' - compile 'org.ostermiller:utils:1.+' - compile 'com.googlecode.soundlibs:jlayer:1.+' - compile 'net.sf.javamusictag:jid3lib:0.+' - repositories { maven { url 'https://github.com/Boukefalos/jlibpipe/raw/mvn-repo/' } + maven { + url 'https://github.com/Boukefalos/jlibsox/raw/mvn-repo/' + } maven { url 'https://github.com/Boukefalos/jlibloader/raw/mvn-repo/' } diff --git a/src/test/java/test/TestSox.java b/src/test/java/test/TestSox.java new file mode 100644 index 0000000..b983abf --- /dev/null +++ b/src/test/java/test/TestSox.java @@ -0,0 +1,20 @@ +package test; + +import java.io.IOException; + +import ie.corballis.sox.SoXEffect; +import ie.corballis.sox.Sox; +import ie.corballis.sox.WrongParametersException; + +public class TestSox { + public static void main(String[] args) throws IOException, WrongParametersException { + Sox sox = new Sox(); + sox + .device("0") + .inputFile("-n") + .outputFile("-d") + .effect(SoXEffect.SYNTH, "2") + .argument("sine", "300-500") + .execute(); + } +} \ No newline at end of file