Sound output now works correctly

This commit is contained in:
Pierre Krieger 2014-12-15 16:26:55 +01:00
parent 9598f68d3c
commit 1a556514b0
4 changed files with 34 additions and 19 deletions

View file

@ -18,7 +18,7 @@ fn main() {
});
loop {
let mut buffer = channel.append_data(1, cpal::SamplesRate(44100));
let mut buffer = channel.append_data(1, cpal::SamplesRate(44100), 32768);
for sample in buffer.samples() {
let value = data_source.next().unwrap();