Exporting/Installing Samples for AudioLoopPlayer
-
Okay the installer now adds a file holding the location of the user defined folder (called no surprises: LinkUser) so last bit done - I will report back when I give it a go...
@Matt_SF so I assume you are using something like:
myUserLocation = UserLocation; //which you read from the disk via (say) JSON theLoopPlayer.setFile(myUserLocation + "WaveName" + ".wav");
@trillbilly you might NOT want to put your audio files in AppData/AudioFiles
- it'll be on the users "C Drive" and on windows at least might not have the room for a lot of stuff.
-
I haven't read through the whole thread so apologies if I'm repeating things that have already been covered.
If the audio files are part of your project and live in the audio files folder, then you can ship them as a .dat file. You'll find that file in the Pooled Resources folder after you compile. That file should be placed in the app data folder.
I don't know if it's possible to redirect the .dat file using a LinkOS file but if that isn't possible then we should nag Christoph to add it :)
-
-
This sounds like an easy solution, does it also have a default location it can be placed in the AppData folder?
Just straight in the project's app data folder as far as I'm aware. I wouldn't do this if you have more than a couple of hundred mb of audio though.
-
@d-healey Yes, its minimal samples. I assume you mean the "AudioResources" dat file?
-
@trillbilly That's the one.
By the way it's mentioned in the docs:
https://docs.hise.audio/working-with-hise/project-management/projects-folders/audio-files.html -
@d-healey Theres always that staring me right in the face.
So it sounds as though you can use the Embed Audio Files in preferences and it should install them with the plugin, yes? This should work for my use.
-
@trillbilly Embed audio files will make the files part of the binary. This is good for anything less than 50mb.
-
I for myself just mimicked the sampler's system : using the FileSystem API, I made the plugin look for a 'LinkUser' file which only contains the samples folder path. From there I get all sample files and put them on an array which, again, is mimicking the SamplePool function.
-
@Matt_SF said in Exporting/Installing Samples for AudioLoopPlayer:
I for myself just mimicked the sampler's system : using the FileSystem API, I made the plugin look for a 'LinkUser' file which only contains the samples folder path. From there I get all sample files and put them on an array which, again, is mimicking the SamplePool function.
yep my way too...