Skip to content
Snippets Groups Projects
Commit 44296e2c authored by Tobias Ullerich's avatar Tobias Ullerich
Browse files

Remove old tests

parent 0e75041c
No related branches found
No related tags found
No related merge requests found
package de.tobias.playpad;
public class NativeAudioTest {
public static void main(String[] args) {
System.load("/Users/tobias/Documents/Programmieren/Java/git/PlayWall/PlayWallNative/libNativeAudio.dylib");
NativeAudio.load(0, "/Users/tobias/Downloads/03%20Hymn%20For%20The%20Weekend.mp3.wav");
System.out.println(NativeAudio.getDuration(0));
NativeAudio.play(0);
while (true) {
try {
Thread.sleep(100);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
}
}
package de.tobias.playpad;
import de.tobias.playpad.view.WaveformView;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.image.ImageView;
import javafx.scene.image.WritableImage;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;
public class WaveformTest extends Application {
public static void main(String[] args) {
System.load("/Users/tobias/Documents/Programmieren/Java/git/PlayWall/PlayWallNative/libNativeAudio.dylib");
launch(args);
}
@Override
public void start(Stage primaryStage) throws Exception {
float[] data = Waveform.createWaveform("/Users/tobias/Music/iTunes/iTunes Media/Music/Coldplay/Mylo Xyloto/04 Charlie Brown.mp3");
float[] data2 = Waveform.createWaveform("/Users/tobias/Downloads/TNT-Loop.wav");
WaveformView view = new WaveformView(data);
WaveformView view2 = new WaveformView(data2);
WritableImage image = new WritableImage(1200, 150);
view.snapshot(null, image);
WritableImage image2 = new WritableImage(1200, 150);
view2.snapshot(null, image2);
VBox root = new VBox(new ImageView(image), new ImageView(image2));
Scene scene = new Scene(root);
primaryStage.setScene(scene);
primaryStage.show();
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment