udoprog / audio

A crate for working with audio in Rust
Apache License 2.0
78 stars 11 forks source link

Add copy_within method on ChannelMut? #29

Open Be-ing opened 1 year ago

Be-ing commented 1 year ago

Slices have a copy_within method similar to C's memmove. It could be nice to have this on ChannelMut. For LinearChannel, it's already easy enough to call .as_mut() to get a slice and use slice::copy_within on that. For InterleavedChannel, it would be trickier to implement.