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.
To do so, add something like this to the dependencies section of your pom:
<dependency> <groupId>com.tagtraum</groupId> <artifactId>casampledsp</artifactId> <version>0.9.9</version> <type>dylib</type> </dependency> <dependency> <groupId>com.tagtraum</groupId> <artifactId>casampledsp-java</artifactId> <version>0.9.9</version> <type>jar</type> </dependency>
If Maven can't resolve this dependency, you might also want to add the following repository to the repositories section of your pom:
<repository> <id>beatunes</id> <name>beaTunes Repository</name> <url>https://www.beatunes.com/repo/maven2</url> </repository>
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.