1
0
Fork 0

Add a note regarding the Buffer lifetime

This commit is contained in:
Robbert van der Helm 2022-03-06 02:10:33 +01:00
parent b416d1630b
commit 4ff2e65b5c

View file

@ -11,6 +11,9 @@ use std::simd::{LaneCount, Simd, SupportedLaneCount};
/// inputs already copied to the outputs. You can either use the iterator adapters to conveniently
/// and efficiently iterate over the samples, or you can do your own thing using the raw audio
/// buffers.
///
/// TODO: This lifetime makes zero sense because you're going to need unsafe lifetime casts to use
/// this either way. Maybe just get rid of it in favor for raw pointers.
#[derive(Default)]
pub struct Buffer<'a> {
/// Contains slices for the plugin's outputs. You can't directly create a nested slice form