pub struct AudioIn;
Expand description
AudioIn
implements the PortSpec
trait which, defines an
endpoint for JACK. In this case, it is a readable 32 bit floating
point buffer for audio.
AudioIn::buffer()
is used to gain access the buffer.
Example
let client = jack::Client::new("rusty_client", jack::ClientOptions::NO_START_SERVER)
.unwrap()
.0;
let spec = jack::AudioIn::default();
let audio_in_port = client.register_port("in", spec).unwrap();
Trait Implementations
sourceimpl PortSpec for AudioIn
impl PortSpec for AudioIn
sourcefn jack_port_type(&self) -> &'static str
fn jack_port_type(&self) -> &'static str
String used by JACK upon port creation to identify the port type. Read more
sourcefn jack_flags(&self) -> PortFlags
fn jack_flags(&self) -> PortFlags
Flags used by jack upon port creation.
sourcefn jack_buffer_size(&self) -> c_ulong
fn jack_buffer_size(&self) -> c_ulong
Size used by jack upon port creation.
impl Copy for AudioIn
Auto Trait Implementations
impl RefUnwindSafe for AudioIn
impl Send for AudioIn
impl Sync for AudioIn
impl Unpin for AudioIn
impl UnwindSafe for AudioIn
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more