Skip to main content

Prot

Struct Prot 

Source
pub struct Prot {
    pub info: Info,
    /* private fields */
}
Expand description

Parsed .prot container with resolved tracks and playback metadata.

Fields§

§info: Info

Implementations§

Source§

impl Prot

Source

pub fn new(file_path: &String) -> Self

Load a single container file and resolve tracks.

Source

pub fn new_from_file_paths(file_paths: Vec<PathsTrack>) -> Self

Build a container from multiple standalone file path sets.

Source

pub fn new_from_file_paths_legacy(file_paths: &Vec<Vec<String>>) -> Self

Legacy constructor for backwards compatibility.

Source

pub fn refresh_tracks(&mut self)

Rebuild the active track list (e.g., after shuffle).

Source

pub fn get_effects(&self) -> Option<Vec<AudioEffect>>

Return effects parsed from play_settings, if any.

Source

pub fn get_impulse_response_spec(&self) -> Option<ImpulseResponseSpec>

Get the convolution impulse response spec, if configured.

Source

pub fn get_impulse_response_tail_db(&self) -> Option<f32>

Get the configured impulse response tail trim in dB, if any.

Source

pub fn get_container_path(&self) -> Option<String>

Return the container path if this is a .prot/.mka file.

Source

pub fn set_impulse_response_spec(&mut self, spec: ImpulseResponseSpec)

Override the impulse response spec at runtime.

Source

pub fn set_impulse_response_tail_db(&mut self, tail_db: f32)

Override the impulse response tail trim at runtime.

Source

pub fn get_keys(&self) -> Vec<u32>

Return per-track keys for UI selection.

Source

pub fn get_ids(&self) -> Vec<String>

Return per-track identifiers or file paths for display.

Source

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).

Source

pub fn enumerated_list(&self) -> Vec<(u16, String, Option<u32>)>

Return a list of (key, path, optional track_id) for buffering.

Source

pub fn container_track_entries(&self) -> Option<(String, Vec<(u16, u32)>)>

Return container track entries for shared container streaming.

Source

pub fn get_duration(&self) -> &f64

Get the longest selected duration (seconds).

Source

pub fn get_track_mix_settings(&self) -> HashMap<u16, (f32, f32)>

Return per-track (level, pan) settings keyed by track key.

Source

pub fn get_length(&self) -> usize

Return the number of selected tracks.

Source

pub fn count_possible_combinations(&self) -> Option<u128>

Return the number of possible unique selections based on track settings.

Source

pub fn get_file_paths_dictionary(&self) -> Vec<String>

Return the unique file paths used for a multi-file container.

Trait Implementations§

Source§

impl Clone for Prot

Source§

fn clone(&self) -> Prot

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Prot

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<S> FromSample<S> for S

Source§

fn from_sample_(s: S) -> S

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<F, T> IntoSample<T> for F
where T: FromSample<F>,

Source§

fn into_sample(self) -> T

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> ToSample<U> for T
where U: FromSample<T>,

Source§

fn to_sample_(self) -> U

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<S, T> Duplex<S> for T
where T: FromSample<S> + ToSample<S>,