frame/audio: fix return type of frame::Audio::plane_mut()

This commit is contained in:
Ivan Molodetskikh
2017-06-14 12:21:20 +03:00
committed by meh
parent 6ad3d42482
commit b14dd01126

View File

@ -163,7 +163,7 @@ impl Audio {
}
#[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() {
panic!("out of bounds");
}