pub struct AudioOut;
Expand description
AudioOut
implements the PortSpec
trait, which defines an
endpoint for JACK. In this case, it is a mutable 32 bit floating
point buffer for audio.
AudioOut::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_out_port = client.register_port("out", spec).unwrap();
Trait Implementations
sourceimpl<'a> PortSpec for AudioOut
impl<'a> PortSpec for AudioOut
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 AudioOut
Auto Trait Implementations
impl RefUnwindSafe for AudioOut
impl Send for AudioOut
impl Sync for AudioOut
impl Unpin for AudioOut
impl UnwindSafe for AudioOut
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