[−][src]Struct jack::ProcessScope
ProcessScope
provides information on the client and frame time information within a process
callback.
Implementations
impl ProcessScope
[src]
pub fn n_frames(&self) -> Frames
[src]
The number of frames in the current process cycle.
pub fn last_frame_time(&self) -> Frames
[src]
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.
pub fn frames_since_cycle_start(&self) -> Frames
[src]
The estimated time in frames that has passed since the JACK server began the current process cycle.
pub fn cycle_times(&self) -> Result<CycleTimes, Error>
[src]
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).
Err(Error::TimeError)
is returned on failure.
Err(Error::WeakFunctionNotFound)
if the function does not exist.
pub fn client_ptr(&self) -> *mut jack_client_t
[src]
Expose the client_ptr
for low level purposes.
This is mostly for use within the jack crate itself.
pub unsafe fn from_raw(n_frames: Frames, client_ptr: *mut jack_client_t) -> Self
[src]
Create a ProcessScope
for the client with the given pointer and the specified amount of
frames.
This is mostly for use within the jack crate itself.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ProcessScope
impl !Send for ProcessScope
impl !Sync for ProcessScope
impl Unpin for ProcessScope
impl UnwindSafe for ProcessScope
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,
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.
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>,