pub struct Prot {
pub info: Info,
/* private fields */
}Expand description
Parsed .prot container with resolved tracks and playback metadata.
Fields§
§info: InfoImplementations§
Source§impl Prot
impl Prot
Sourcepub fn new_from_file_paths(file_paths: &Vec<Vec<String>>) -> Self
pub fn new_from_file_paths(file_paths: &Vec<Vec<String>>) -> Self
Build a container from multiple standalone file path sets.
Sourcepub fn refresh_tracks(&mut self)
pub fn refresh_tracks(&mut self)
Rebuild the active track list (e.g., after shuffle).
Sourcepub fn get_impulse_response_spec(&self) -> Option<ImpulseResponseSpec>
pub fn get_impulse_response_spec(&self) -> Option<ImpulseResponseSpec>
Get the convolution impulse response spec, if configured.
Sourcepub fn get_impulse_response_tail_db(&self) -> Option<f32>
pub fn get_impulse_response_tail_db(&self) -> Option<f32>
Get the configured impulse response tail trim in dB, if any.
Sourcepub fn get_container_path(&self) -> Option<String>
pub fn get_container_path(&self) -> Option<String>
Return the container path if this is a .prot/.mka file.
Sourcepub fn set_impulse_response_spec(&mut self, spec: ImpulseResponseSpec)
pub fn set_impulse_response_spec(&mut self, spec: ImpulseResponseSpec)
Override the impulse response spec at runtime.
Sourcepub fn set_impulse_response_tail_db(&mut self, tail_db: f32)
pub fn set_impulse_response_tail_db(&mut self, tail_db: f32)
Override the impulse response tail trim at runtime.
Sourcepub fn enumerated_list(&self) -> Vec<(u16, String, Option<u32>)>
pub fn enumerated_list(&self) -> Vec<(u16, String, Option<u32>)>
Return a list of (key, path, optional track_id) for buffering.
Sourcepub fn container_track_entries(&self) -> Option<(String, Vec<(u16, u32)>)>
pub fn container_track_entries(&self) -> Option<(String, Vec<(u16, u32)>)>
Return container track entries for shared container streaming.
Sourcepub fn get_duration(&self) -> &f64
pub fn get_duration(&self) -> &f64
Get the longest selected duration (seconds).
Sourcepub fn get_length(&self) -> usize
pub fn get_length(&self) -> usize
Return the number of selected tracks.
Sourcepub fn get_file_paths_dictionary(&self) -> Vec<String>
pub fn get_file_paths_dictionary(&self) -> Vec<String>
Return the unique file paths used for a multi-file container.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Prot
impl RefUnwindSafe for Prot
impl Send for Prot
impl Sync for Prot
impl Unpin for Prot
impl UnwindSafe for Prot
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