You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
eeeeeta 6c747fe5c5 seeking & new api & stuff 5 years ago
src seeking & new api & stuff 5 years ago
.gitignore rsndfile: libsndfile bindings for rust 5 years ago
Cargo.toml seeking & new api & stuff 5 years ago
README.md Unique<T> for Sync powers 5 years ago

README.md

rsndfile, libsndfile bindings for Rust

currently 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.

NOTE: this crate requires nightly Rust

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.

Warning: this crate may be terribly unsafe

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.

Usage

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);
}

Docs

$ cargo doc