Haskell bindings to the MP3 decoding library libmpg123
- Based on
inline-c
This library relies on dyamically linking to libmpg123; the basic installation of libmpg123, detailed in the following, is usually sufficient for ensuring this.
-
If you don't have
libmpg123installed already, download it via its homepage (which will point you to the Sourceforge repository). After you download and decompress the archive, installation follows the usual Unix sequence:$ ./configure $ make $ make install
You might need to be root or use sudo for the last step, which copies object files and binaries to default locations. You may choose custom locations for these during the ./configure step, but you must ensure they are on $PATH.
-
Now you can compile the Haskell bindings:
$ stack build -
Optionally, you can run the tests with
$ stack test
or you can just see the outcome of the automated tests on TravisCI : https://travis-ci.org/ocramz/mpg123-hs/builds
