pub fn audio_buffer_clip(
    buffer: Buffer,
    segment: &Segment,
    rate: u32,
    bpf: u32
) -> Option<Buffer>