openmixer — generated API reference
    Preparing search index...

    Function peakCachingMeterSource

    • Wrap a MeterSource with a read-through latest-peak cache, so the flow watchdog samples the very peaks the adapter's own meter poll already reads — no second meter pipeline, no extra probe subprocess. Every polled channel gets an entry: a row is its live peak (the louder of L/R), an omission is silence (the MeterSource contract), so a stalled channel reads as a real 0 — never a frozen last-live level.

      Parameters

      • inner: MeterSource

      Returns { peakOf: (key: string) => number | undefined; source: MeterSource }

      • peakOf: (key: string) => number | undefined

        The latest peak of a channel by channelKey, or undefined before its first read.

      • source: MeterSource

        The wrapped source to hand to the adapter (delegates every read).