Struct jack::Transport [−][src]
A structure for querying and manipulating the JACK transport.
Implementations
impl Transport
[src]
pub fn start(&self) -> Result<(), Error>
[src]
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.
pub fn stop(&self) -> Result<(), Error>
[src]
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.
pub fn reposition(&self, pos: &TransportPosition) -> Result<(), Error>
[src]
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.
pub fn locate(&self, frame: Frames) -> Result<(), Error>
[src]
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.
pub fn query(&self) -> Result<TransportStatePosition, Error>
[src]
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.
pub fn query_state(&self) -> Result<TransportState, Error>
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,