raw::Pool
A object that handles the embedded resources (audio files, images and samplemaps).
Class Hierarchy
Base Classes
Class methods
allowLoadingOfUnusedResources
void allowLoadingOfUnusedResources()
By default, this object assumes that the data is already loaded (if not, it fails with an assertion). Call this to allow the Pool object to actually load the items from the embedded data.
loadAudioFile
AudioSampleBuffer loadAudioFile(const String &id)
Loads an audio file into a AudioSampleBuffer.
loadImage
Image loadImage(const String &id)
Loads an Image from the given ID.
getListOfEmbeddedResources
StringArray getListOfEmbeddedResources(FileHandlerBase::SubDirectories directory, bool useExpansionPool=false)
Returns a list of the references to every embedded resource of the given type.