pub struct Transport { /* private fields */ }
Expand description

A structure for querying and manipulating the JACK transport.

Implementations

Start the JACK transport rolling.

Remarks
  • Any client can make this request at any time.
  • It takes effect no sooner than the next process cycle, perhaps later if there are slow-sync clients.
  • This function is realtime-safe.

Stop the JACK transport.

Remarks
  • Any client can make this request at any time.
  • It takes effect on the next process cycle.
  • This function is realtime-safe.

Request a new transport position.

Arguments
  • pos - requested new transport position.
Remarks
  • May be called at any time by any client.
  • The new position takes effect in two process cycles.
  • If there are slow-sync clients and the transport is already rolling, it will enter the TransportState::Starting state and begin invoking their sync_callbacks until ready.
  • This function is realtime-safe.

Reposition the transport to a new frame number.

Arguments
  • frame - frame number of new transport position.
Remarks
  • May be called at any time by any client.
  • The new position takes effect in two process cycles.
  • If there are slow-sync clients and the transport is already rolling, it will enter the JackTransportStarting state and begin invoking their sync_callbacks until ready.
  • This function is realtime-safe.

Query the current transport state and position.

Remarks
  • This function is realtime-safe, and can be called from any thread.
  • If called from the process thread, pos corresponds to the first frame of the current cycle and the state returned is valid for the entire cycle.

Query the current transport state.

Remarks
  • This function is realtime-safe, and can be called from any thread.
  • If called from the process thread, the state returned is valid for the entire cycle.

Trait Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.