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<PathsTrack>) -> Self
pub fn new_from_file_paths(file_paths: Vec<PathsTrack>) -> Self
Build a container from multiple standalone file path sets.
Sourcepub fn new_from_file_paths_legacy(file_paths: &Vec<Vec<String>>) -> Self
pub fn new_from_file_paths_legacy(file_paths: &Vec<Vec<String>>) -> Self
Legacy constructor for backwards compatibility.
Sourcepub fn refresh_tracks(&mut self)
pub fn refresh_tracks(&mut self)
Rebuild the active track list (e.g., after shuffle).
Sourcepub fn get_effects(&self) -> Option<Vec<AudioEffect>>
pub fn get_effects(&self) -> Option<Vec<AudioEffect>>
Return effects parsed from play_settings, if any.
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 get_shuffle_schedule(&self) -> Vec<(f64, Vec<String>)>
pub fn get_shuffle_schedule(&self) -> Vec<(f64, Vec<String>)>
Return the full timestamped shuffle schedule for display.
Each entry is (time_seconds, selected_ids_or_paths).
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_track_mix_settings(&self) -> HashMap<u16, (f32, f32)>
pub fn get_track_mix_settings(&self) -> HashMap<u16, (f32, f32)>
Return per-track (level, pan) settings keyed by track key.
Sourcepub fn get_length(&self) -> usize
pub fn get_length(&self) -> usize
Return the number of selected tracks.
Sourcepub fn count_possible_combinations(&self) -> Option<u128>
pub fn count_possible_combinations(&self) -> Option<u128>
Return the number of possible unique selections based on track settings.
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.