FMODAudioPlayer
FMODAudioPlayer is a simple audio player based on FMOD.
Installation
Add this line to your application's Gemfile:
gem 'fmod_audioplayer'
And then execute:
$ bundle
Or install it yourself as:
$ gem install fmod_audioplayer
Usage
require 'fmod_audioplayer'
sound = FMODAudioPlayer::SoundPlayer.new
sound.play('example.mp3')
sound.toggle
sound.toggle
sound.song_length
sound.position
sound.stop
sound.play('http://example.com/example.mp3')
Contributing
- Fork it ( https://github.com/[my-github-username]/fmod_audioplayer/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request