BassAudioplayer
Simple audio play library based on BASS.
Installation
Add this line to your application's Gemfile:
gem 'bass_audioplayer'
And then execute:
$ bundle
Or install it yourself as:
$ gem install bass_audioplayer
Usage
require 'bass_audioplayer'
player = BASSAudioPlayer::SoundPlayer.new
player.play_file('1.mp3')
player.toggle
player.length
player.position
player.stop
player.play_url('http://example.com/1.mp3')
callback = Proc.new { puts 'DONE' }
player.register_end_callback(callback)
Contributing
- Fork it ( https://github.com/[my-github-username]/bass_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