Struct jack::client::Client [] [src]

pub struct Client(_);

A client to interact with a JACK server.

Methods

impl Client
[src]

The maximum length of the JACK client name string. Unlike the "C" JACK API, this does not take into account the final NULL character and instead corresponds directly to .len(). Opens a JACK client with the given name and options. If the client is successfully opened, then Ok(client) is returned. If there is a failure, then Err(JackErr::ClientError(status)) will be returned.

Although the client may be successful in opening, there still may be some errors minor errors when attempting to opening. To access these, check the returned ClientStatus.

Tell the JACK server that the program is ready to start processing audio. JACK will call the methods specified by the JackHandler trait, from handler.

On failure, either Err(JackErr::CallbackRegistrationError) or Err(JackErr::ClientActivationError) is returned.

handler is consumed, but it is returned when Client::deactivate is called.

Create a Client from an ffi pointer.

This is mostly for use within the jack crate itself.

Trait Implementations

impl Debug for Client
[src]

Formats the value using the given formatter.

impl JackClient for Client
[src]

Expose the underlying ffi pointer. Read more

The sample rate of the JACK system, as set by the user when jackd was started.

The current CPU load estimated by JACK. Read more

Get the name of the current client. This may differ from the name requested by Client::open as JACK will may rename a client if necessary (ie: name collision, name too long). The name will only the be different than the one passed to Client::open if the ClientStatus was NAME_NOT_UNIQUE. Read more

The current maximum size that will every be passed to the process callback.

Change the buffer size passed to the process callback. Read more

Returns a vector of port names that match the specified arguments Read more

Create a new port for the client. This is an object used for moving data of any type in or out of the client. Ports may be connected in various ways. Read more

Get a Port by its port name.

The estimated time in frames that has passed since the JACK server began the current process cycle. Read more

The estimated current time in frames. This function is intended for use in other threads (not the process callback). The return value can be compared with the value of last_frame_time to relate time in other threads to JACK time. To obtain better time information from within the process callback, see ProcessScope. Read more

The estimated time in microseconds of the specified frame time Read more

The estimated time in frames for the specified system time. Read more

Returns true if the port port belongs to this client.

Toggle input monitoring for the port with name port_name. Read more

Establish a connection between two ports by their full name. Read more

Establish a connection between two ports. Read more

Remove a connection between two ports.

Remove a connection between two ports.

The buffer size of a port type Read more

impl Drop for Client
[src]

Close the client, deactivating if necessary.

A method called when the value goes out of scope. Read more