otherwise the clipped buffer is returned.
If the buffer has no timestamp, it is assumed to be inside the segment and is not clipped
gst.buffer.Buffer clip(gst.buffer.Buffer buffer, gst.segment.Segment segment, int rate, int bpf)Clip the buffer to the given [gst.segment.Segment].
After calling this function the caller does not own a reference to buffer anymore.
buffer | The buffer to clip. |
segment | Segment in [gst.types.Format.Time] or [gst.types.Format.Default] to which the buffer should be clipped. |
rate | sample rate. |
bpf | size of one audio frame in bytes. This is the size of one sample * number of channels. |
otherwise the clipped buffer is returned.
If the buffer has no timestamp, it is assumed to be inside the segment and is not clipped