Crates.io | rsndfile |
lib.rs | rsndfile |
version | 0.0.2 |
source | src |
created_at | 2016-03-24 12:50:01.516766 |
updated_at | 2016-03-25 17:11:19.585826 |
description | libsndfile bindings for Rust (αlpha) |
homepage | |
repository | https://github.com/eeeeeta/rsndfile |
max_upload_size | |
id | 4548 |
size | 24,757 |
libsndfile
bindings for Rustcurrently very alpha
This is a crate to provide basic libsndfile bindings for Rust. Currently, it's not very developed and is only useful for extremely basic playback. It works, though. Sort of.
due to use of the unstable Unique<T>
type for Sync
on SndFile
objects. Sorry, stable Rust
users - but then again, this crate is not probably what stable Rust users want.
I don't think it does anything bad, but if your program blows up because you used this crappy alpha code, I will laugh at you.
extern crate rsndfile;
use rsndfile::SndFile;
fn main() {
let sf = SndFile::open("file.aiff").unwrap();
let mut buf = [f32; 500] = [0.0; 500];
sf.into_slice_float(&mut buf, 500);
}
$ cargo doc