Placing impulse responses in Monolith?
-
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?
-
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.
-
You need to enable
EmbedAudioFiles
in the project settings, then it will copy the .dat file automatically. -
@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?
-
@optimistic I would assume it's more efficient in terms of RAM usage when using multiple instances of the plugin.
-
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.
-
@Christoph-Hart Thanks for explaining that! Makes sense and good to know