Fixed coreaudio callback to send proper buffersize, removed code in lib where sampleformat affected buffersize

This commit is contained in:
mitchmindtree 2015-03-03 18:17:21 +11:00
parent 1347c7c99d
commit 1d66e18d7e
3 changed files with 32 additions and 30 deletions

View file

@ -1,3 +1,5 @@
#![feature(core, old_io)]
extern crate cpal;
extern crate vorbis;
@ -34,7 +36,7 @@ fn main() {
if let Some(output) = buffer.next() {
*output = next_sample as u16;
data = data.slice_from(1);
data = &data[1..];
} else {
break;
}