A object that handles the embedded resources (audio files, images and samplemaps). More...
Public Member Functions | |
void | allowLoadingOfUnusedResources () |
By default, this object assumes that the data is already loaded (if not, it fails with an assertion). More... | |
AudioSampleBuffer | loadAudioFile (const String &id) |
Loads an audio file into a AudioSampleBuffer. More... | |
Image | loadImage (const String &id) |
Loads an Image from the given ID. More... | |
![]() | |
ControlledObject (MainController *m) | |
Creates a new ControlledObject. More... | |
const MainController * | getMainController () const noexcept |
Provides read-only access to the main controller. More... | |
MainController * | getMainController () noexcept |
Provides write access to the main controller. More... | |
A object that handles the embedded resources (audio files, images and samplemaps).
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.
juce::AudioSampleBuffer loadAudioFile | ( | const String & | id | ) |
Loads an audio file into a AudioSampleBuffer.
juce::Image loadImage | ( | const String & | id | ) |
Loads an Image from the given ID.