Struct jack::ActiveClient [] [src]

pub struct ActiveClient<JH: JackHandler> { /* fields omitted */ }

A JackClient that is currently active. Active clients may contain JackHandlers that are processing data in real-time.

Methods

impl<JH: JackHandler> ActiveClient<JH>
[src]

Tell the JACK server to remove this client from the process graph. Also, disconnect all ports belonging to it since inactive clients have no port connections.

The handler that was used for Client::activate is returned on success. Its state may have changed due to JACK calling its methods.

In the case of error, the Client is destroyed because its state is unknown, and it is therefore unsafe to continue using.

Trait Implementations

impl<JH: Debug + JackHandler> Debug for ActiveClient<JH>
[src]

Formats the value using the given formatter.

impl<JH: JackHandler> JackClient for ActiveClient<JH>
[src]

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

The current CPU load estimated by JACK. Read more

The buffer size of a port type 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

Get the uuid of the current client.

Get the name of the client with the UUID specified by uuid. If the client is found then Some(name) is returned, if not, then None is returned. Read more

Get the uuid of the client with the name specified by name. If the client is found then Some(uuid) is returned, if not, then None is returned. Read more

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

Get a Port by its port id.

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. Read more

The precise time at the start of the current process cycle. This function may only be used from the process callback, and can be used to interpret timestamps generated by self.frame_time() in other threads, with respect to the current process cycle. Read more

This function may only be used from the process callback. It provides the internal cycle timing information as used by most of the other time related functions. This allows the caller to map between frame counts and microseconds with full precision (i.e. without rounding frame times to integers), and also provides e.g. the microseconds time of the start of the current cycle directly (it has to be computed otherwise). Read more

The estimated time in microseconds of the specified frame time

The estimated time in frames for the specified system time.

Returns true if the port port belongs to this client.

impl<JH: JackHandler> Drop for ActiveClient<JH>
[src]

Closes the client.

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