pub enum PlayerEvent {
Show 25 variants
HydrateDeck {
deck: DeckId,
loaded: bool,
status: LoadStatus,
duration_seconds: f64,
current_seconds: f64,
playing: bool,
transport_on: bool,
needle_lifted: bool,
playback_rate: f32,
channel_gain: f32,
},
SetActiveDeck {
deck: DeckId,
},
SetLoadState {
deck: DeckId,
status: LoadStatus,
loaded: bool,
duration_seconds: f64,
},
SetSourceSampleRate {
deck: DeckId,
sample_rate: f64,
},
PlaybackPositionObserved {
deck: DeckId,
seconds: f64,
},
PlaybackEnded {
deck: DeckId,
},
ToggleTransport {
deck: DeckId,
},
SetTransport {
deck: DeckId,
running: bool,
},
TogglePlayback {
deck: DeckId,
},
SetNeedle {
deck: DeckId,
lifted: bool,
observed_playback_seconds: f64,
},
Seek {
deck: DeckId,
seconds: f64,
},
SetPlaybackRate {
deck: DeckId,
rate: f32,
},
StartTimedRegion {
region: SurfaceRegion,
now_ms: f64,
duration_seconds: f64,
},
StopTimedRegion {
region: SurfaceRegion,
completed: bool,
},
TimedRegionElapsed {
region: SurfaceRegion,
},
StartClipLoop {
clip_id: String,
},
StopClipLoop,
BeginScratch {
deck: DeckId,
pointer_id: i32,
playback_seconds: f64,
rotation_degrees: f64,
rate: f32,
impulse: f32,
grip: f32,
output_frame: u64,
},
MoveScratch {
deck: DeckId,
position_frames: f64,
rendered_position_frames: f64,
rate: f32,
rotation_degrees: f64,
impulse: f32,
grip: f32,
output_frame: u64,
},
ScratchRenderedPosition {
deck: DeckId,
rendered_position_frames: f64,
},
EndScratch {
deck: DeckId,
rendered_position_frames: f64,
rotation_degrees: f64,
resume_playback: bool,
save_sample: bool,
can_platter_handoff: bool,
output_frame: u64,
},
SetCrossfader {
value: f32,
},
SetChannelGain {
deck: DeckId,
value: f32,
},
SetTwoDeckMode {
enabled: bool,
},
Tick {
now_ms: f64,
},
}Variants§
HydrateDeck
Fields
§
status: LoadStatusSetActiveDeck
SetLoadState
SetSourceSampleRate
PlaybackPositionObserved
PlaybackEnded
ToggleTransport
SetTransport
TogglePlayback
SetNeedle
Seek
SetPlaybackRate
StartTimedRegion
StopTimedRegion
TimedRegionElapsed
Fields
§
region: SurfaceRegionStartClipLoop
StopClipLoop
BeginScratch
Fields
MoveScratch
Fields
ScratchRenderedPosition
EndScratch
Fields
SetCrossfader
SetChannelGain
SetTwoDeckMode
Tick
Trait Implementations§
Source§impl Clone for PlayerEvent
impl Clone for PlayerEvent
Source§fn clone(&self) -> PlayerEvent
fn clone(&self) -> PlayerEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PlayerEvent
impl Debug for PlayerEvent
Source§impl<'de> Deserialize<'de> for PlayerEvent
impl<'de> Deserialize<'de> for PlayerEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PlayerEvent
impl PartialEq for PlayerEvent
Source§impl Serialize for PlayerEvent
impl Serialize for PlayerEvent
impl StructuralPartialEq for PlayerEvent
Auto Trait Implementations§
impl Freeze for PlayerEvent
impl RefUnwindSafe for PlayerEvent
impl Send for PlayerEvent
impl Sync for PlayerEvent
impl Unpin for PlayerEvent
impl UnsafeUnpin for PlayerEvent
impl UnwindSafe for PlayerEvent
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