soundfile
Version, currently master branch1 version
- master branchlatestFeb 6, 2021
github.com/mjago/soundfile
libsndfile bindings for the Crystal Language
9 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
soundfile:
github: mjago/soundfile
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
0.20.1- License
- MIT
- Author
- mjago <martyn.jago@btinternet.com>
Dependencies
This version declares no dependencies.
README
[](https://travis-ci.org/mjago/soundfile)
# soundfile
Crystal extension for the [libsndfile](http://www.mega-nerd.com/libsndfile/) _soundfile manipulation_ library
## Installation
Add this to your application's `shard.yml`:
```yaml
dependencies:
soundfile:
github: mjago/soundfile
```
## Usage
```crystal
require "soundfile"
include SoundFile
```
### Read and write files
```crystal
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](https://github.com/mjago/soundfile/blob/master/spec/soundfile_spec.cr) and [libsndfile](http://www.mega-nerd.com/libsndfile/) for further usage
## Dependencies
1. [libsndfile](http://www.mega-nerd.com/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](https://github.com/mjago) - creator, maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Feb 6, 2021
- Crystal
0.20.1- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/mjago/soundfile
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 13, 2026
- Synced
- Aug 13, 2026
- Versions
- 1