AudioFiles
-
I have a number of wav-files in the "AudioFiles" folder in the project. They are used as impulses for a convoluting reverb.
I also have a number of samples that make up the actual instruments, and they are located in the "Samples" folder.
Before compiling the instrument into a plugin, I pack the samples to a monolith files, and I assume that this is the files in the "Samples" folder that will get packed into .ch1 files, but where does the files in the "AudioFiles" folder end up? Are they included in the vst3/AU files? -
@Sampletekk
If you have selected “Embed Audio Files” in the project settings, they will be integrated into the plug-in. If not, you will need to copy them to the correct folder using your installer. -
Yes you can decide whether to include the convolution files in the plugin binary or whether they should be encoded into a dat file that is loaded by the plugin.
Solution 1 is the simplest from an installer workflow and is perfectly fine if you have only a few IR impulses. I would estimate the threshold is something like 20-30MB worth of IR samples.
Solution 2 keeps the file size low (eg. compiling a macOS universal binary will duplicate the payload so you'll end up with the IR samples being encoded twice). But you have to make sure that your installer puts these files at the exact position where HISE expects them to be (in your App data folder).Another thing to watch out is to make sure to call this function in your onInit callback to ensure that all IR samples in your AudioFiles folder are pooled and encoded on export.
-
@Christoph-Hart said in AudioFiles:
20-30MB worth of IR samples.
I have 40mb worth and its been exporting and working fine.
I actually had more before cleaning up.
-
@Chazrox sure that‘s not a hard limit, at some point the compilers might run out of memory but if it works for you then fine.
-
@Christoph-Hart noted.
-
@Christoph-Hart Thanks!