Socket
Book a DemoInstallSign in
Socket

hallon-fifo

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hallon-fifo

0.0.3
bundlerRubygems
Version published
Maintainers
1
Created
Source

Hallon::FIFO

An audio driver for Hallon, a ruby client for the official Spotify API. Streams audio into a raw PCM-formatted FIFO queue, ideal for input into other applications.

Among other things, FIFO queues can be piped into unix utilities, like SoX, or read as a stream (which is exactly why I wrote this).

Installation

Add this line to your application's Gemfile:

gem 'hallon-fifo'

And then execute:

$ bundle

Or install it yourself as:

$ gem install hallon-fifo

Usage

Initialize a Hallon player with the FIFO driver. Pass a &block as the second argument to set the FIFO queue's path (or accept the default hallon-fifo.pcm):

# After loading Hallon and creating a session...

player = Hallon::Player.new Hallon::FIFO, Proc.new do
	@driver.output = "cat-music.pcm"
end

Play the FIFO queue elsewhere, for example, with SoX:

$ play -r 44100 -c 2 -t s16 hallon-fifo.pcm

FAQs

Package last updated on 19 Apr 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.