RustAudio / coreaudio-rs

A friendly rust interface to Apple's Core Audio API.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remove unnecessary Vec allocation in `extern "C" fn input_proc`

mitchmindtree opened this issue · comments

There should definitely be no allocations occurring in the realtime audio callback.

It should be possible to change this array of channels from a Vec to a slice, using from_raw_parts_mut instead.