feat: pass beat times to native player

This commit is contained in:
2026-06-14 18:09:07 +02:00
parent 166a2e1ffb
commit c41a758b49
6 changed files with 102 additions and 28 deletions

View File

@@ -37,8 +37,14 @@ public final class LibPasada {
* @param fd open read FD (Java retains ownership; do not close until track changes)
* @param offset start offset within the FD (0 for whole file)
* @param length byte length from offset ({@code -1} if unknown / to EOF)
* @param beatTimesSec beat times in seconds from track start, or {@code null} when unknown
*/
public static native void play(int fd, long offset, long length);
public static native void play(int fd, long offset, long length, double[] beatTimesSec);
/** Same as {@link #play(int, long, long, double[])} with no beat annotation. */
public static void play(int fd, long offset, long length) {
play(fd, offset, length, null);
}
/** PLAYING → PAUSED (silent output, graph kept alive). */
public static native void pause();