Skip to content

TheEssem/libxmp-java

 
 

Repository files navigation

Libxmp Java API

This is a fork of the official JNI bindings for the libxmp tracker module player library, designed for newer Java projects and workflows that require accurate, efficient playback.

Changes

  • Converted to a Gradle project
  • Restructured the source tree
  • Automatically build libxmp from source
  • Exposed bindings for some functions/fields that have been added to libxmp since 2014

Usage

Usage as a library with Gradle is possible like so:

repositories {
    maven { url 'https://projectlounge.pw/maven/releases' }
}

dependencies {
    implementation "org.helllabs:libxmp-java:1.0.5"
}

Build

Due to the repo being converted to a Gradle project, building is much simpler than the original project, requiring only a working JDK (Java 17 or higher is preferred) and CMake 3.9 or higher:

git clone --recursive https://github.com/TheEssem/libxmp-java && cd libxmp-java
./gradlew build

This will compile the Java project and native code together into a single jar in build/libs. When using as a library, it will attempt to load the native library from the jar automatically.

About

Java API for libxmp, a module player library.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 63.3%
  • C 31.7%
  • CMake 2.7%
  • Makefile 2.3%