Fixed coreaudio callback to send proper buffersize, removed code in lib where sampleformat affected buffersize
This commit is contained in:
parent
1347c7c99d
commit
1d66e18d7e
3 changed files with 32 additions and 30 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue