From d2517d67851256d0f09c40c233165d2eb09b22d9 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Tue, 1 Mar 2022 04:18:06 +0100 Subject: [PATCH] Rename Buffer::as_raw to Buffer::as_slice Since things named `as_raw` usually involve pointers. --- src/buffer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/buffer.rs b/src/buffer.rs index 03c956bf..93e6bd8e 100644 --- a/src/buffer.rs +++ b/src/buffer.rs @@ -23,7 +23,7 @@ impl<'a> Buffer<'a> { } /// Obtain the raw audio buffers. - pub fn as_raw(&mut self) -> &mut [&'a mut [f32]] { + pub fn as_slice(&mut self) -> &mut [&'a mut [f32]] { &mut self.output_slices }