frame/audio: fix return type of frame::Audio::plane_mut()
This commit is contained in:
@ -163,7 +163,7 @@ impl Audio {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn plane_mut<T: Sample>(&mut self, index: usize) -> &[T] {
|
pub fn plane_mut<T: Sample>(&mut self, index: usize) -> &mut [T] {
|
||||||
if index >= self.planes() {
|
if index >= self.planes() {
|
||||||
panic!("out of bounds");
|
panic!("out of bounds");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user