From b6afb5f6e45482d8f4e620509bcd36b2fb77bc76 Mon Sep 17 00:00:00 2001 From: Stephane Letz Date: Sat, 5 Jun 2021 07:47:51 +0200 Subject: [PATCH] Use T in Soundfile definition. --- faust-types/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/faust-types/src/lib.rs b/faust-types/src/lib.rs index 7b8f08b..9b17c93 100644 --- a/faust-types/src/lib.rs +++ b/faust-types/src/lib.rs @@ -15,8 +15,8 @@ pub type F64 = f64; #[derive(Copy, Clone)] pub struct ParamIndex(pub i32); -pub struct Soundfile<'a> { - fBuffers: &'a &'a F32, +pub struct Soundfile<'a, T> { + fBuffers: &'a &'a T, fLength: &'a i32, fSR: &'a i32, fOffset: &'a i32,