openmixer — generated API reference
    Preparing search index...

    Function powerOfTwoWithin

    • A power of two within [min, max] — the shape a graph QUANTUM takes (PipeWire's clock.force-quantum and the native ring buffers both require it; a non-power-of-two request is silently rounded somewhere downstream, which is exactly the applied-but-wrong answer numberEnum's own doc refuses for rates). REFUSES rather than rounds, for the same reason: "the nearest legal quantum to the one you typed" is a different number, decided without the operator, and a control that claims to apply the request it was given must not silently apply a different one instead.

      Parameters

      • min: number
      • max: number

      Returns FieldCodec<number>