Fork me on GitHub


CASampledSP is a free implementation of the javax.sound.sampled.spi interfaces. It is part of the SampledSP collection of javax.sound.sampled libraries.

Its main purpose is to decode audio from various formats at high speed. Examples for supported formats are MP3 or AAC. That said, CASampledSP more or less supports all formats also supported by Apple's Core Audio.

Because CASampledSP depends on native code, you need to add the provided dylib to your java.library.path and the provided jar to your classpath. Everything else is taken care of automatically.

Getting Started

The easiest way to use CASampledSP (other than simply using the jar and dylib) is to start a Maven project and introduce a CASampledSP dependency.

To do so, add something like this to the dependencies section of your pom:


If Maven can't resolve this dependency, you might also want to add the following repository to the repositories section of your pom:

    <name>beaTunes Repository</name>

To use the library, simply use the javax.sound.sampled classes like you normally would.


CASampledSP requires OS X 10.6 or later and an Intel processor. Both 32 bit and 64 bit are supported.


For a cross platform (OS X/Windows) 32 bit service provider based on QuickTime, check out QTSampledSP.

For a 32/64 bit service provider implementation for Windows 7 or later, based on Microsoft's Media Foundation, check out MFSampledSP.

For a cross platform service provider implementation featuring free formats like FLAC and OGG, take a look at FFSampledSP.