Skip to content

Media Foundation based service provider for javax.sound.sampled.

License

Notifications You must be signed in to change notification settings

hendriks73/mfsampledsp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README.md

MFSampledSP is a better-than-nothing implementation of the javax.sound.sampled service provider interfaces based on Microsoft's Media Foundation API. Among the supported formats are mp3, asf, wma, .aac, and m4a.

Its main purpose is to decode audio files or streams to signed linear pcm. It is part of the SampledSP collection of javax.sound.sampled libraries

This library comes with absolutely no support, warranty etc. you name it.

Binaries and more info can be found at its tagtraum home.

Build

You can only build this library on Windows 7 or later.

To do so, you also need:

Once you have all this set up, clone the repository like this:

git clone [email protected]:hendriks73/mfsampledsp.git mfsampledsp

Then you still need to adjust some properties in the parent pom.xml. Or.. simply override them using -Dname=value notation. E.g. to point to your JDK's JNI headers, add

-Dwin32.headers.jni=C:\jdk1.8.0_31\include\

to your mvn call.

You might also need to change win32.sdk, if you don't have your Windows SDK installed at C:\Program Files\Microsoft SDKs\Windows\v7.1

So all in all, something like the following might work for you:

mvn -Dwin32.headers.jni=C:\jdk1.8.0_31\include\ \
"-Dwin32.sdk=C:\Program Files\Microsoft SDKs\Windows\v7.1" \
clean install

Note that if you have a space character in your SDK path, you need to quote the entire "-Dname=value" parameter, not just the value part.

Enjoy!