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
// This file was generated by gir (https://github.com/gtk-rs/gir)
// from
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT
use crate::{ffi, AlsaFirewire, EfwProtocol};
use glib::translate::*;
glib::wrapper! {
/// A GObject-derived object for sound unit of Echo Audio Fireworks.
///
/// The [`SndEfw`][crate::SndEfw] is an object class derived from `GObject::Object` with protocol
/// implementation for Echo Audio Fireworks devices supported by ALSA fireworks driver
/// (`snd-fireworks`).
///
/// # Implements
///
/// [`AlsaFirewireExt`][trait@crate::prelude::AlsaFirewireExt], [`EfwProtocolExt`][trait@crate::prelude::EfwProtocolExt], [`EfwProtocolExtManual`][trait@crate::prelude::EfwProtocolExtManual]
#[doc(alias = "HitakiSndEfw")]
pub struct SndEfw(Object<ffi::HitakiSndEfw, ffi::HitakiSndEfwClass>) @implements AlsaFirewire, EfwProtocol;
match fn {
type_ => || ffi::hitaki_snd_efw_get_type(),
}
}
impl SndEfw {
pub const NONE: Option<&'static SndEfw> = None;
/// Instantiate [`SndEfw`][crate::SndEfw] object and return it.
///
/// # Returns
///
/// an instance of [`SndEfw`][crate::SndEfw].
#[doc(alias = "hitaki_snd_efw_new")]
pub fn new() -> SndEfw {
unsafe { from_glib_full(ffi::hitaki_snd_efw_new()) }
}
}
impl Default for SndEfw {
fn default() -> Self {
Self::new()
}
}