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

This commit is contained in:
Ivan Molodetskikh
2017-06-14 13:01:15 +02:00
committed by meh
parent 6ad3d42482
commit b14dd01126
+1 -1
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");
}