logo
pub struct SampleInfo<'a> {
    pub index: u32,
    pub name: Option<Cow<'a, str>>,
    pub volume: ChannelVolumes,
    pub sample_spec: Spec,
    pub channel_map: Map,
    pub duration: MicroSeconds,
    pub bytes: u32,
    pub lazy: bool,
    pub filename: Option<Cow<'a, str>>,
    pub proplist: Proplist,
}
Expand description

Stores information about sample cache entries.

Please note that this structure can be extended as part of evolutionary API updates at any time in any new release.

Fields

index: u32

Index of this entry.

name: Option<Cow<'a, str>>

Name of this entry.

volume: ChannelVolumes

Default volume of this entry.

sample_spec: Spec

Sample specification of the sample.

channel_map: Map

The channel map.

duration: MicroSeconds

Duration of this entry.

bytes: u32

Length of this sample in bytes.

lazy: bool

Non-zero when this is a lazy cache entry.

filename: Option<Cow<'a, str>>

In case this is a lazy cache entry, the filename for the sound file to be loaded on demand.

proplist: Proplist

Property list for this sample.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.