Forum
    • Categories
    • Register
    • Login

    Engine.getSampleRate() returns -1 in exported VST - workaround?

    Scheduled Pinned Locked Moved Unsolved General Questions
    convolutionsample ratebug
    3 Posts 2 Posters 27 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.
    • SawatakashiS
      Sawatakashi
      last edited by

      Hi,

      I'm using convolution reverb (IR loader) and I've noticed that the output volume changes significantly depending on the host sample rate. The IR sounds much louder at 192000 compared to 96000 or 48000.

      After some research I understand this is a known convolution behavior - when the host sample rate is higher, the convolution engine processes more samples, which affects the overall gain.

      To compensate, I'm trying to apply gain correction values to my FX chain based on the current sample rate:

      I use Engine.getSampleRate() to capture the host sample rate, then apply the compensation. This works inside HISE but after exporting as VST the auto-detection doesn't seem to work correctly in the DAW.

      My questions:
      Is there a reliable way to get the host sample rate in an exported VST?

      Thanks!

      I love HISE!
      M4 MacOS Sequoia// Windows 11
      HISE 4.1.0

      T 1 Reply Last reply Reply Quote 0
      • SawatakashiS Sawatakashi marked this topic as a question
      • T
        tomekslesicki @Sawatakashi
        last edited by

        @Sawatakashi use a Broadcaster instead, it's far more realiable

        SawatakashiS 1 Reply Last reply Reply Quote 0
        • SawatakashiS
          Sawatakashi @tomekslesicki
          last edited by

          @tomekslesicki thanks bro, what's it tho?

          I love HISE!
          M4 MacOS Sequoia// Windows 11
          HISE 4.1.0

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

          27

          Online

          2.2k

          Users

          13.4k

          Topics

          117.0k

          Posts