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
// 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 AudioBaseSrc; glib_wrapper! { /// This is the most simple base class for audio sources that only requires /// subclasses to implement a set of simple functions: /// /// * `open()` :Open the device. /// * `prepare()` :Configure the device with the specified format. /// * `read()` :Read samples from the device. /// * `reset()` :Unblock reads and flush the device. /// * `delay()` :Get the number of samples in the device but not yet read. /// * `unprepare()` :Undo operations done by prepare. /// * `close()` :Close the device. /// /// All scheduling of samples and timestamps is done in this base class /// together with `AudioBaseSrc` using a default implementation of a /// `AudioRingBuffer` that uses threads. /// /// # Implements /// /// [`AudioBaseSrcExt`](trait.AudioBaseSrcExt.html), [`gst_base::BaseSrcExt`](../gst_base/trait.BaseSrcExt.html), [`gst::ElementExt`](../gst/trait.ElementExt.html), [`gst::ObjectExt`](../gst/trait.ObjectExt.html), [`glib::object::ObjectExt`](../glib/object/trait.ObjectExt.html) pub struct AudioSrc(Object<gst_audio_sys::GstAudioSrc, gst_audio_sys::GstAudioSrcClass, AudioSrcClass>) @extends AudioBaseSrc, gst_base::BaseSrc, gst::Element, gst::Object; match fn { get_type => || gst_audio_sys::gst_audio_src_get_type(), } } impl AudioSrc {} unsafe impl Send for AudioSrc {} unsafe impl Sync for AudioSrc {} pub const NONE_AUDIO_SRC: Option<&AudioSrc> = None;