openmixer — generated API reference
    Preparing search index...

    Class RateWatchingNativeMeterSource

    The native meter source with a per-poll hook: the adapter's EXISTING meter interval (SoftwareMixerAdapter.startMeterPoll) calls read() a few times a second, which makes it the free periodic path the built-in-DSP mirror's sample-rate watch rides on (task #125's "re-push on rate change" without a second timer). onPoll is assigned AFTER the server has started (the mirror exists only then), so a missing hook is a plain read.

    Hierarchy

    • NativeMeterSource
      • RateWatchingNativeMeterSource
    Index
    onPoll?: () => void

    Called at the top of every meter poll — the mirror's pollSampleRate hangs here.

    • Parameters

      Returns Promise<
          readonly {
              c?: number;
              channel: ChannelId;
              compGrDb?: number;
              gateGrDb?: number;
              level: number;
              right?: number;
          }[],
      >