Reorganise test files, test jlibpipe in exec.sound
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
dependencies {
|
dependencies {
|
||||||
compile project(':core.worker')
|
compile project(':core.worker')
|
||||||
|
|
||||||
|
compile 'com.github.boukefalos:jlibpipe:0.1'
|
||||||
|
|
||||||
compile 'commons-io:commons-io:2.+'
|
compile 'commons-io:commons-io:2.+'
|
||||||
compile 'commons-cli:commons-cli:1.+'
|
compile 'commons-cli:commons-cli:1.+'
|
||||||
compile 'commons-pool:commons-pool:1.+'
|
compile 'commons-pool:commons-pool:1.+'
|
||||||
|
|||||||
@@ -16,6 +16,8 @@
|
|||||||
*/
|
*/
|
||||||
package pipe;
|
package pipe;
|
||||||
|
|
||||||
|
import com.github.boukefalos.jlibloader.Native;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Vikram S Khatri vikram.khatri@us.ibm.com
|
* @author Vikram S Khatri vikram.khatri@us.ibm.com
|
||||||
*/
|
*/
|
||||||
@@ -26,7 +28,7 @@ public class Pipe {
|
|||||||
static final int PIPE_WAIT = 0x00000000;
|
static final int PIPE_WAIT = 0x00000000;
|
||||||
|
|
||||||
static {
|
static {
|
||||||
System.loadLibrary("pipe");
|
Native.load("com.github.boukefalos", "jlibpipe");
|
||||||
}
|
}
|
||||||
|
|
||||||
public static final native int CreateNamedPipe(
|
public static final native int CreateNamedPipe(
|
||||||
|
|||||||
@@ -95,8 +95,8 @@ public class TestPipe {
|
|||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
String pipeName = "\\\\.\\pipe\\detest";
|
String pipeName = "\\\\.\\pipe\\detest";
|
||||||
String fileName = "txt/bla.txt";
|
String fileName = "txt/mp3";
|
||||||
//fileName = "C:\\Users\\Rik\\Music\\Artists\\+44\\When Your Heart Stops Beating\\+44 - 155.mp3";
|
fileName = "C:\\Users\\Rik\\Music\\Artists\\+44\\When Your Heart Stops Beating\\+44 - 155.mp3";
|
||||||
TestPipe testPipe = new TestPipe(pipeName, fileName);
|
TestPipe testPipe = new TestPipe(pipeName, fileName);
|
||||||
testPipe.runPipe();
|
testPipe.runPipe();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
medium.mp3
|
|
||||||
Reference in New Issue
Block a user