Add basic API

This commit is contained in:
Pierre Krieger 2014-12-11 17:23:33 +01:00
parent 6b48a00758
commit 873779aaa8
4 changed files with 191 additions and 26 deletions

View file

@ -1,5 +1,10 @@
extern crate cpal;
fn main() {
cpal::cpal_impl::create().unwrap();
let mut channel = cpal::Channel::new();
loop {
let mut buffer = channel.append_data::<(u16, u16)>();
buffer[0] = std::rand::random();
}
}