pub struct AudioIn { /* private fields */ }
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::default())
.unwrap()
.0;
let spec = jack::AudioIn::default();
let audio_in_port = client.register_port("in", spec).unwrap();
Trait Implementations§
Source§impl PortSpec for AudioIn
impl PortSpec for AudioIn
Source§fn 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.
Source§fn jack_flags(&self) -> PortFlags
fn jack_flags(&self) -> PortFlags
Flags used by jack upon port creation.
Source§fn 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 Freeze for AudioIn
impl RefUnwindSafe for AudioIn
impl Send for AudioIn
impl Sync for AudioIn
impl Unpin for AudioIn
impl UnwindSafe for AudioIn
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more