sig
  type t
  val of_element : Gstreamer.Element.t -> Gstreamer.App_sink.t
  val pull_buffer_data : Gstreamer.App_sink.t -> Gstreamer.data
  val pull_buffer_string : Gstreamer.App_sink.t -> string
  val emit_signals : Gstreamer.App_sink.t -> unit
  val is_eos : Gstreamer.App_sink.t -> bool
  val on_new_sample : Gstreamer.App_sink.t -> (unit -> unit) -> unit
  val set_max_buffers : Gstreamer.App_sink.t -> int -> unit
end