foo-webview-sdk
    Preparing search index...

    Variable replaygainConst

    replaygain: {
        clear: (paths: string[]) => Promise<ReplaygainClearResponse>;
        get: (paths: string | string[]) => Promise<ReplaygainGetResponse>;
        getMode: () => Promise<ReplaygainGetModeResponse>;
        getPreamp: () => Promise<ReplaygainGetPreampResponse>;
        getSettings: () => Promise<ReplaygainGetSettingsResponse>;
        scan: (
            paths: string[],
            opts?: { mode?: "track" | "album" },
        ) => Promise<ReplaygainScanResponse>;
        setMode: (
            sourceMode: NonNullable<
                "auto"
                | "none"
                | "track"
                | "album"
                | "byPlaybackOrder"
                | undefined,
            >,
            processingMode?: "gain" | "none" | "peak" | "gain_and_peak",
        ) => Promise<ReplaygainSetModeResponse>;
        setPreamp: (
            withRg?: number,
            withoutRg?: number,
        ) => Promise<ReplaygainSetPreampResponse>;
    } = ...

    replaygain — ReplayGain mode / preamp / scan namespace.

    Type Declaration

    • clear: (paths: string[]) => Promise<ReplaygainClearResponse>

      Remove ReplayGain values from the specified files.

    • get: (paths: string | string[]) => Promise<ReplaygainGetResponse>

      Accepts a single path or an array; always sent as { paths: string[] }.

    • getMode: () => Promise<ReplaygainGetModeResponse>

      Read the ReplayGain source mode and processing mode.

    • getPreamp: () => Promise<ReplaygainGetPreampResponse>

      Read the two ReplayGain preamps, in dB.

    • getSettings: () => Promise<ReplaygainGetSettingsResponse>

      Read the complete ReplayGain configuration: modes, preamps, and active status.

    • scan: (
          paths: string[],
          opts?: { mode?: "track" | "album" },
      ) => Promise<ReplaygainScanResponse>

      Trigger a ReplayGain scan over the given paths via the host's context-menu pipeline.

    • setMode: (
          sourceMode: NonNullable<
              "auto"
              | "none"
              | "track"
              | "album"
              | "byPlaybackOrder"
              | undefined,
          >,
          processingMode?: "gain" | "none" | "peak" | "gain_and_peak",
      ) => Promise<ReplaygainSetModeResponse>

      Change the ReplayGain source mode, processing mode, or both.

    • setPreamp: (withRg?: number, withoutRg?: number) => Promise<ReplaygainSetPreampResponse>

      Change one or both ReplayGain preamps in dB.