Struct jack::Port [] [src]

pub struct Port<PS: PortSpec> { /* fields omitted */ }

An endpoint to interact with JACK data streams, for audio, midi, etc...

Most JACK functionality is exposed, including the raw pointers, but it should be possible to create a client without the need for calling unsafe Port methods.

Methods

impl<PS: PortSpec> Port<PS>
[src]

Returns the spec that was used to create this port.

Returns the full name of the port, including the "client_name:" prefix.

Returns the short name of the port, it excludes the "client_name:" prefix.

The flags for the port. These are set when the port is registered with its client.

The port type. JACK's built in types include "32 bit float mono audio" and "8 bit raw midi". Custom types may also be used.

Number of ports connected to/from

Returns true if the port is directly connected to a port with the name port_name.

Get the alias names for self.

Will return a vector of strings of up to 2 elements.

Returns true if monitoring has been requested for self.

Turn input monitoring for the port on or off.

This only works if the port has the CAN_MONITOR flag set.

If the CAN_MONITOR flag is set for the port, then input monitoring is turned on if it was off, and turns it off if only one request has been made to turn it on. Otherwise it does nothing.

Set's the short name of the port. If the full name is longer than PORT_NAME_SIZE, then it will be truncated.

Sets alias as an alias for self.

May be called at any time. If the alias is longer than PORT_NAME_SIZE, it will be truncated.

After a successful call, and until JACK exists, or the alias is unset, alias may be used as an alternate name for the port.

Ports can have up to two aliases - if both are already set, this function will return an error.

Remove alias as an alias for port. May be called at any time.

After a successful call, alias can no longer be used as an alternate name for self.

Remove the port from the client, disconnecting any existing connections. The port must have been created with the provided client.

Create a Port from raw JACK pointers.

Trait Implementations

impl<PS: Debug + PortSpec> Debug for Port<PS>
[src]

Formats the value using the given formatter.

impl<PS: PortSpec> Send for Port<PS>
[src]