Audite is a portable ruby library for playing mp3 files built on libmp123 and portaudio.
- Nonblocking playback using native threads
- Realtime seeking
- Realtime events
- Progress information
- Simple level meter
Audite ships an example player:
audite test.mp3
require 'audite'
player = Audite.new
player.events.on(:complete) do
puts "COMPLETE"
end
player.events.on(:position_change) do |pos|
puts "POSITION: #{pos} seconds level #{player.level}"
end
player.load('test.mp3')
player.start_stream
player.forward(20)
player.thread.join
- Portaudio >= 19
- Mpg123 >= 1.14
brew install portaudio
brew install mpg123
gem install audite
apt-get install libjack0 libjack-dev
apt-get install libportaudiocpp0 portaudio19-dev libmpg123-dev
gem install audite
Audite provides the audio engine for Soundcloud2000