openmixer — generated API reference
    Preparing search index...

    Function framesToMs

    • Convert a latency expressed in audio frames to milliseconds at a given rate. Used to turn an LV2 plugin's lv2:latency port (reported in samples) into ms.

      Parameters

      • frames: number

        latency in samples

      • sampleRate: number

        sample rate in Hz

      Returns number

      the latency in ms (0 when the sample rate is non-positive)