AUDIOFILE
https://docs.hise.dev/scripting/scripting-api/audiofile/index.html
This is mostly covered, with only two methods
ā linkTo
ā loadFile
loadFile() is covered in the beginning of the chapter, so we can just paste the example from there
// Load the example assets
FileSystem.loadExampleAssets();
// Grab whatever asset is first
const var firstAsset = Engine.loadAudioFilesIntoPool()[0];
Console.print(firstAsset); // {PROJECT_FOLDER}breakbeat_44k.wav
// Create a audio file slot
const var audioFile = Engine.createAndRegisterAudioFile(0);
// load the first asset
audioFile.loadFile(firstAsset);
For linkTo, I have no idea what it does. How is it different than just assigning the reference? Does it let you have another audiofile, and linking it will then have it react to the callbacks of the linked audiofile?