Forum
    • Categories
    • Register
    • Login

    Report Latency?

    Scheduled Pinned Locked Moved Scripting
    3 Posts 2 Posters 50 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ChazroxC
      Chazrox
      last edited by

      How do we report our plugins latency to the daw? I see there are some api's for this but Im not sure how its done.

      dannytaurusD 1 Reply Last reply Reply Quote 0
      • dannytaurusD
        dannytaurus @Chazrox
        last edited by dannytaurus

        @Chazrox https://docs.hise.audio/scripting/scripting-api/engine/index.html#setlatencysamples

        Engine.setLatencySamples(int latency)
        

        sets the latency of the plugin as reported to the host. Default is 0

        You have to calculate the latency yourself, then report it to the host with that call. Neither is automatic.

        HISE dev latest / herdr + Claude Code / Figma + Affinity
        Meat Beats: https://meatbeats.com
        Klippr Video: https://klippr.video

        ChazroxC 1 Reply Last reply Reply Quote 0
        • ChazroxC
          Chazrox @dannytaurus
          last edited by

          @dannytaurus There is also, Engine.getLatencySamples(). Do I just get and set the samples on interface script and leave it there? Do I have to create a variable or anything specific?

          1 Reply Last reply Reply Quote 0
          • First post
            Last post

          4

          Online

          3.1k

          Users

          14.0k

          Topics

          122.1k

          Posts