Sound output now works correctly
This commit is contained in:
parent
9598f68d3c
commit
1a556514b0
4 changed files with 34 additions and 19 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue