pub struct AudioMixerEditorExtended {Show 18 fields
pub session: MixerSession,
pub tracks: Vec<AudioTimelineTrack>,
pub clock: AudioClock,
pub room_acoustics: RoomAcoustics,
pub hrtf_panners: Vec<HrtfPanner>,
pub next_clip_id: u64,
pub next_track_id: u32,
pub selected_track: Option<usize>,
pub selected_clip: Option<u64>,
pub zoom_level: f32,
pub scroll_offset_seconds: f64,
pub view_start_seconds: f64,
pub view_end_seconds: f64,
pub snap_enabled: bool,
pub snap_grid_beats: f32,
pub undo_history: VecDeque<MixerEditorState>,
pub redo_history: VecDeque<MixerEditorState>,
pub max_history: usize,
}Fields§
§session: MixerSession§tracks: Vec<AudioTimelineTrack>§clock: AudioClock§room_acoustics: RoomAcoustics§hrtf_panners: Vec<HrtfPanner>§next_clip_id: u64§next_track_id: u32§selected_track: Option<usize>§selected_clip: Option<u64>§zoom_level: f32§scroll_offset_seconds: f64§view_start_seconds: f64§view_end_seconds: f64§snap_enabled: bool§snap_grid_beats: f32§undo_history: VecDeque<MixerEditorState>§redo_history: VecDeque<MixerEditorState>§max_history: usizeImplementations§
Source§impl AudioMixerEditorExtended
impl AudioMixerEditorExtended
pub fn new() -> Self
pub fn add_audio_track(&mut self, name: &str) -> u32
pub fn remove_audio_track(&mut self, id: u32)
pub fn add_clip_to_track( &mut self, track_id: u32, metadata: AudioFileMetadata, start_seconds: f64, ) -> Option<u64>
pub fn play(&mut self)
pub fn stop(&mut self)
pub fn seek_to(&mut self, time_seconds: f64)
pub fn set_bpm(&mut self, bpm: f32)
pub fn get_active_clips_at_play_head(&self) -> Vec<(u32, &AudioClip)>
pub fn push_undo_state(&mut self, description: &str)
pub fn undo(&mut self) -> bool
pub fn redo(&mut self) -> bool
pub fn total_duration_seconds(&self) -> f64
pub fn find_clip_mut(&mut self, clip_id: u64) -> Option<&mut AudioClip>
pub fn move_clip(&mut self, clip_id: u64, new_start: f64)
pub fn export_mix_info(&self) -> HashMap<String, String>
pub fn apply_global_eq_preset(&mut self, preset: &str)
Trait Implementations§
Source§impl Clone for AudioMixerEditorExtended
impl Clone for AudioMixerEditorExtended
Auto Trait Implementations§
impl Freeze for AudioMixerEditorExtended
impl RefUnwindSafe for AudioMixerEditorExtended
impl Send for AudioMixerEditorExtended
impl Sync for AudioMixerEditorExtended
impl Unpin for AudioMixerEditorExtended
impl UnsafeUnpin for AudioMixerEditorExtended
impl UnwindSafe for AudioMixerEditorExtended
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.