Struct oddio::FramesSignalControl
source · pub struct FramesSignalControl { /* private fields */ }
Expand description
Thread-safe control for a FramesSignal
, giving access to current playback location.
Implementations§
source§impl FramesSignalControl
impl FramesSignalControl
sourcepub fn playback_position(&self) -> f64
pub fn playback_position(&self) -> f64
Get the current playback position.
This number may be negative if the starting time was negative, and it may be longer than the duration of the sample as well.
Right now, we don’t support a method to set the playback_position, as naively setting this variable causes audible distortions.
sourcepub fn is_finished(&self) -> bool
pub fn is_finished(&self) -> bool
Whether the signal has finished playing
Auto Trait Implementations§
impl RefUnwindSafe for FramesSignalControl
impl Send for FramesSignalControl
impl Sync for FramesSignalControl
impl Unpin for FramesSignalControl
impl UnwindSafe for FramesSignalControl
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more