CASampledSP is an implementation of the
service provider interfaces based on Apple's Core Audio library, supporting all its file formats (mp3, aac, ...).
It is part of the SampledSP collection of
Its main purpose is to decode audio files or streams to signed linear pcm.
This library comes with absolutely no support, warranty etc. you name it.
Binaries and more info can be found at its tagtraum home.
You can only build this library on macOS.
To do so, you also need:
- Maven 3.0.5 or later, http://maven.apache.org/
- Apple Command Line Tools, available via https://developer.apple.com/, or XCode, https://developer.apple.com/xcode/
- a JDK (to run Maven and get the OSX JNI headers)
- Doxygen, available via MacPorts or HomeBrew
Once you have all this, you need to adjust some properties in the parent pom.xml.
Or.. simply override them using
-Dname=value notation. E.g. to point to your
Oracle JDK JNI headers, add e.g.
to your mvn call. You might also need to change
isysroot, if you
don't have an OS X 10.6 SDK installed.
So all in all, something like the following might work for you:
mvn -Ddarwin.headers.jni=/Library/Java/JavaVirtualMachines/jdk-10.jdk/Contents/Home/include/ \ -Dmmacosx-version-min=10.7 \ -Disysroot=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/ \ clean install
Note, that the C sources in the casampledsp-x86_64 module are expected to compile on all supported architectures. In fact, the very same sources are compiled in the modules for other architectures.