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
// This file was generated by gir (https://github.com/gtk-rs/gir)
// from gir-files (https://github.com/gtk-rs/gir-files)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT
glib::wrapper! {
/// [`AudioFilter`][crate::AudioFilter] is a [`gst_base::BaseTransform`][crate::gst_base::BaseTransform]<!-- -->-derived base class for simple audio
/// filters, ie. those that output the same format that they get as input.
///
/// [`AudioFilter`][crate::AudioFilter] will parse the input format for you (with error checking)
/// before calling your setup function. Also, elements deriving from
/// [`AudioFilter`][crate::AudioFilter] may use `gst_audio_filter_class_add_pad_templates()` from
/// their class_init function to easily configure the set of caps/formats that
/// the element is able to handle.
///
/// Derived classes should override the `GstAudioFilterClass.setup()` and
/// `GstBaseTransformClass.transform_ip()` and/or
/// `GstBaseTransformClass.transform()`
/// virtual functions in their class_init function.
///
/// This is an Abstract Base Class, you cannot instantiate it.
///
/// # Implements
///
/// [`trait@gst_base::prelude::BaseTransformExt`], [`trait@gst::prelude::ElementExt`], [`trait@gst::prelude::GstObjectExt`], [`trait@glib::ObjectExt`]
#[doc(alias = "GstAudioFilter")]
pub struct AudioFilter(Object<ffi::GstAudioFilter, ffi::GstAudioFilterClass>) @extends gst_base::BaseTransform, gst::Element, gst::Object;
match fn {
type_ => || ffi::gst_audio_filter_get_type(),
}
}
impl AudioFilter {
pub const NONE: Option<&'static AudioFilter> = None;
}
unsafe impl Send for AudioFilter {}
unsafe impl Sync for AudioFilter {}