AutoMovie API
    Preparing search index...

    Interface IAutoMovieDecodedProductionAudioAsset

    One decoded WAVE source: its declared facts, the processing applied, and mono samples available to a caller's mixer.

    The source* facts and durationSeconds describe the file before downmix and resampling, because a render plan records them as the asset's identity; only samples and processing describe the output. Reporting the output as the source would let a resampled asset claim the plan's rate and hide a duration disagreement.

    interface IAutoMovieDecodedProductionAudioAsset {
        durationSeconds: number;
        processing: IAutoMovieProductionAudioProcessing;
        samples: Float32Array;
        sourceChannels: number;
        sourceFormat: IAutoMovieProductionWaveSourceFormat;
        sourceFrames: number;
        sourceSampleRate: number;
    }
    Index
    durationSeconds: number

    Source runtime in seconds, sourceFrames / sourceSampleRate.

    The downmix and resampling applied to produce samples.

    samples: Float32Array

    Mono samples at processing.outputSampleRate in a new mutable buffer the caller owns. PCM values lie in [-1, 1); float input is only checked finite before conversion. Resampling rounds the output length and can yield an empty buffer for a short source and low rate.

    sourceChannels: number

    Source channel count, 1 or 2, before the mono downmix.

    The file's own format declaration as parsed.

    sourceFrames: number

    Positive number of complete sample frames in the source data chunk; empty data is refused by the decoder.

    sourceSampleRate: number

    Positive integer source rate in samples per second, admitted by the WAVE decoder before resampling.