HISE Logo Forum
    • Categories
    • Register
    • Login

    Placing impulse responses in Monolith?

    Scheduled Pinned Locked Moved General Questions
    7 Posts 3 Posters 421 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.
    • O
      optimistic
      last edited by

      I'm in the process of building a convolution based reverb plugin and the final product is going to include 630 IRs that are about 750mb.

      It seems this is too big to embed in a binary on windows as VS gives a 'ran out of Heap Space' fatal error.

      So now I'm looking at not embedding the audio files but I'm wondering what options there are for encrypting them? Can the IRs that usually exist in the "audiofiles" folder be placed in a "ch" type of monolith the same way samples can?

      1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey
        last edited by

        In your pooled resources folder you will find an audio .DAT file. This contains your irs. Place this in your project's app data folder.

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        Christoph HartC 1 Reply Last reply Reply Quote 0
        • Christoph HartC
          Christoph Hart @d.healey
          last edited by

          You need to enable EmbedAudioFiles in the project settings, then it will copy the .dat file automatically.

          O 1 Reply Last reply Reply Quote 1
          • O
            optimistic @Christoph Hart
            last edited by

            @Christoph-Hart @d-healey Thanks guys! This totally makes sense and glad to hear this was already thought of.

            I just tested here and things seemed to build as expected. All I did was deselect "Enable Audio Files" and a popup asked if I wanted to copy the audio files to my project folder.

            I selected yes and the .dat file appeared in the projects app data folder. It makes total sense to include this in the installer when delivering the final plugin.

            Does this method have any performance differences compared to embedding in the binary or is it the same?

            d.healeyD 1 Reply Last reply Reply Quote 0
            • d.healeyD
              d.healey @optimistic
              last edited by

              @optimistic I would assume it's more efficient in terms of RAM usage when using multiple instances of the plugin.

              Libre Wave - Freedom respecting instruments and effects
              My Patreon - HISE tutorials
              YouTube Channel - Public HISE tutorials

              1 Reply Last reply Reply Quote 0
              • Christoph HartC
                Christoph Hart
                last edited by

                Yes it will use a bit less memory because the audio files are not part of the binary that has to be loaded, but apart from that it should be pretty much the same.

                O 1 Reply Last reply Reply Quote 0
                • O
                  optimistic @Christoph Hart
                  last edited by

                  @Christoph-Hart Thanks for explaining that! Makes sense and good to know

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

                  42

                  Online

                  1.7k

                  Users

                  11.7k

                  Topics

                  101.8k

                  Posts