(&self)
| 33 | |
| 34 | impl MicClip { |
| 35 | /// Creates a clip and panics when its format cannot be encoded losslessly. |
| 36 | /// |
| 37 | /// Prefer [`Self::try_new`] for data that is not already trusted. |
| 38 | pub fn new(samples: Vec<i16>, sample_rate: u32, channels: u16) -> Self { |
| 39 | Self::try_new(samples, sample_rate, channels).expect("invalid mic clip format") |
| 40 | } |