ruby bindings to libgroove.

Installation

First install libgroove (see below) then:

gem install ruby-groove

libgroove

Ubuntu, FreeBSD and Debian

Ubuntu, FreeBSD and Debian users can use a pre-built package.

Mac OS X

Install with Homebrew

brew tap johnmuhl/libgroove
brew install libgroove

Usage

TODO: Write usage instructions here

Generating the bindings

ffi_gen automatically creates the bindings from the libgroove header files. Use the included Vagrantfile and the steps below to setup a build environment.

# host computer
cd ruby-groove
vagrant up
vagrant ssh
# virtual machine
sudo apt-add-repository ppa:andrewrk/libgroove
sudo apt-get update
sudo apt-get install libgroove-dev libgrooveplayer-dev libgrooveloudness-dev libgroovefingerprinter-dev ruby ruby-dev clang libclang-dev llvm llvm-dev
sudo ln -sv /usr/lib/llvm-3.4/lib/libclang.so /usr/lib/libclang.so
sudo gem install bundler
cd /vagrant
bundle install
rake generate_ffi

Bindings are output to lib.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request