Add a note regarding the Buffer lifetime
This commit is contained in:
parent
b416d1630b
commit
4ff2e65b5c
1 changed files with 3 additions and 0 deletions
|
@ -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
|
/// 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
|
/// and efficiently iterate over the samples, or you can do your own thing using the raw audio
|
||||||
/// buffers.
|
/// 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)]
|
#[derive(Default)]
|
||||||
pub struct Buffer<'a> {
|
pub struct Buffer<'a> {
|
||||||
/// Contains slices for the plugin's outputs. You can't directly create a nested slice form
|
/// Contains slices for the plugin's outputs. You can't directly create a nested slice form
|
||||||
|
|
Loading…
Add table
Reference in a new issue