Crystal extension for the libsndfile soundfile manipulation library
Add this to your application's shard.yml
:
dependencies:
soundfile:
github: mjago/soundfile
require "soundfile"
include SoundFile
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
TODO: Write development instructions here
- Fork it ( https://github.com/mjago/soundfile/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
- mjago - creator, maintainer