pub fn audio_buffer_truncate(
    buffer: Buffer,
    bpf: u32,
    trim: usize,
    samples: Option<usize>
) -> Buffer
This is supported on crate feature v1_16 only.