1
0
Fork 0

Rename Buffer::as_raw to Buffer::as_slice

Since things named `as_raw` usually involve pointers.
This commit is contained in:
Robbert van der Helm 2022-03-01 04:18:06 +01:00
parent e5edbac2b4
commit d2517d6785

View file

@ -23,7 +23,7 @@ impl<'a> Buffer<'a> {
} }
/// Obtain the raw audio buffers. /// 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 &mut self.output_slices
} }