1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
// This file was generated by gir (https://github.com/gtk-rs/gir) // from gir-files (https://github.com/gtk-rs/gir-files) // DO NOT EDIT use glib::translate::*; use gst; use gst_audio_sys; use gst_base; use AudioBaseSink; glib_wrapper! { /// This is the most simple base class for audio sinks that only requires /// subclasses to implement a set of simple functions: /// /// * `open()` :Open the device. /// /// * `prepare()` :Configure the device with the specified format. /// /// * `write()` :Write samples to the device. /// /// * `reset()` :Unblock writes and flush the device. /// /// * `delay()` :Get the number of samples written but not yet played /// by the device. /// /// * `unprepare()` :Undo operations done by prepare. /// /// * `close()` :Close the device. /// /// All scheduling of samples and timestamps is done in this base class /// together with `AudioBaseSink` using a default implementation of a /// `AudioRingBuffer` that uses threads. /// /// # Implements /// /// [`AudioBaseSinkExt`](trait.AudioBaseSinkExt.html), [`gst_base::BaseSinkExt`](../gst_base/trait.BaseSinkExt.html), [`gst::ElementExt`](../gst/trait.ElementExt.html), [`gst::ObjectExt`](../gst/trait.ObjectExt.html), [`glib::object::ObjectExt`](../glib/object/trait.ObjectExt.html) pub struct AudioSink(Object<gst_audio_sys::GstAudioSink, gst_audio_sys::GstAudioSinkClass, AudioSinkClass>) @extends AudioBaseSink, gst_base::BaseSink, gst::Element, gst::Object; match fn { get_type => || gst_audio_sys::gst_audio_sink_get_type(), } } impl AudioSink {} unsafe impl Send for AudioSink {} unsafe impl Sync for AudioSink {} pub const NONE_AUDIO_SINK: Option<&AudioSink> = None;