feat: pass beat times to native player
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user