Code Monkey home page Code Monkey logo

audite's Introduction

Audite - a portable mp3 player in Ruby

Audite is a portable ruby library for playing mp3 files built on libmp123 and portaudio.

Features

  • Nonblocking playback using native threads
  • Realtime seeking
  • Realtime events
  • Progress information
  • Simple level meter

Usage

Audite ships an example player:

audite test.mp3

API Example

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) 

Requirements

  • Portaudio >= 19
  • Mpg123 >= 1.14

OSX Install

brew install portaudio
brew install mpg123

gem install audite

Debian / Ubuntu Install

apt-get install libportaudiocpp0 portaudio19-dev libmpg123-dev
gem install audite

Soundcloud2000

Audite provides the audio engine for Soundcloud2000

audite's People

Contributors

georgi avatar wheresalice avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.