Skip to content
Snippets Groups Projects
Commit 13ee567e authored by tobias's avatar tobias
Browse files

Add Loop to Native Mac Audio

parent b006662a
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,8 @@ public class NativeAudio {
public static native void stop(int id);
public static native void setLoop(int id, boolean loop);
public static native double getVolume(int id);
public static native void setVolume(int id, double volume);
......
......@@ -70,6 +70,7 @@ public class NativeAudioMacHandler extends AudioHandler {
@Override
public void play() {
NativeAudio.setLoop(id, getContent().getPad().getPadSettings().isLoop());
NativeAudio.play(id);
boolean start = false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment