soundfile

Bindings for libsndfile library libsndfile sound-files sound
HEAD Latest release released
mjago/soundfile
7 2 1
Martyn Jago

Build Status

soundfile

Crystal extension for the libsndfile soundfile manipulation library

Installation

Add this to your application's shard.yml:

dependencies:
  soundfile:
    github: mjago/soundfile

Usage

require "soundfile"
include SoundFile

Read and write files

SFile.open("read.wav", :read) do |sf_in|
  ptr = Slice.new(sf_in.size, Int32.new(0))
  sf.read_int(ptr, sf_in.size)

  SFile.open("write.wav", :write, sf_in.info) do |sf_out|
    sf_out.write_int(ptr, sf_in.size)
  end
end

See specs and libsndfile for further usage

Dependencies

  1. libsndfile

Development

TODO: Write development instructions here

Contributing

  1. Fork it ( https://github.com/mjago/soundfile/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

  • mjago - creator, maintainer
soundfile:
  github: mjago/soundfile
  
License MIT
Crystal 0.20.1

Libraries 1

  • libsndfile: ~> 1.0.26

Dependencies 0

Development Dependencies 0

Dependents 0

Last synced .
search fire star recently