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§
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.