Switch back to using buffers
This commit is contained in:
parent
1a556514b0
commit
49636365d8
4 changed files with 11 additions and 38 deletions
|
|
@ -21,7 +21,7 @@ fn main() {
|
|||
}
|
||||
|
||||
let mut buffer = channel.append_data(channels, cpal::SamplesRate(rate as u32), data.len());
|
||||
let mut buffer = buffer.samples();
|
||||
let mut buffer = buffer.iter_mut();
|
||||
|
||||
loop {
|
||||
let next_sample = match data.get(0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue