AutoMovie API
    Preparing search index...

    Interface IAutoMovieProductionWaveSourceFormat

    Exact supported WAVE declaration before processing.

    These are the file's own facts, read from its format envelope and never inferred from its channel count: an extensible header names its speakers through dwChannelMask and its encoding through the full SubFormat GUID, while a legacy header carries the default mono front-center or stereo front-left/front-right semantics and says so in layout.source. The literal unions are the decoder's whole supported subset, so a value outside them was refused rather than recorded.

    interface IAutoMovieProductionWaveSourceFormat {
        channels: 1 | 2;
        containerBits: 16 | 32;
        encoding: "pcm-s16le" | "float-f32le";
        header: "wave-format-ex" | "wave-format-extensible";
        kind: "wave";
        layout: {
            kind: "mono" | "stereo";
            mask: number | null;
            source: "legacy-default" | "channel-mask";
            speakers: ["front-center"] | ["front-left", "front-right"];
        };
        sampleRate: number;
        subFormatGuid: string
        | null;
        validBits: 16 | 32;
    }
    Index
    channels: 1 | 2

    Source channel count, before the mono downmix.

    containerBits: 16 | 32

    Bits each encoded channel sample occupies (wBitsPerSample).

    encoding: "pcm-s16le" | "float-f32le"

    Sample encoding: little-endian signed 16-bit PCM or 32-bit IEEE float.

    header: "wave-format-ex" | "wave-format-extensible"

    Format-envelope spelling: wave-format-ex for a legacy tag, or wave-format-extensible for tag 0xFFFE with a cbSize of at least 22.

    kind: "wave"

    Media-family discriminant; WAVE is the only decoded family.

    layout: {
        kind: "mono" | "stereo";
        mask: number | null;
        source: "legacy-default" | "channel-mask";
        speakers: ["front-center"] | ["front-left", "front-right"];
    }

    Ordered speaker semantics and where they were declared.

    Type Declaration

    • kind: "mono" | "stereo"

      Mono or stereo, matching channels.

    • mask: number | null

      The declared dwChannelMask (0x4 mono, 0x3 stereo), or null for a legacy header, which has none.

    • source: "legacy-default" | "channel-mask"

      channel-mask when an extensible header declared the speakers, legacy-default when a legacy header implied them.

    • speakers: ["front-center"] | ["front-left", "front-right"]

      Speakers in channel order.

    sampleRate: number

    Positive unsigned 32-bit source samples per second, admitted by the ingest WAVE decoder before resampling.

    subFormatGuid: string | null

    Lowercase canonical SubFormat GUID text of an extensible header, or null for a legacy header, which has none.

    validBits: 16 | 32

    Meaningful bits inside the container; wValidBitsPerSample for an extensible header, otherwise the container size. Always equal to containerBits, since partial precision is refused.