Code Monkey home page Code Monkey logo

mfsampledsp's Introduction

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!

mfsampledsp's People

Contributors

hendriks73 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

mfsampledsp's Issues

Play from memory

I need to play a MP3 that comes from a byte[].

I got an error when I tryed that:

javax.sound.sampled.UnsupportedAudioFileException: could not get audio input stream from input stream

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.