All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Member Functions | List of all members
Pool Class Reference

A object that handles the embedded resources (audio files, images and samplemaps). More...

Inheritance diagram for Pool:
ControlledObject

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...
 
- Public Member Functions inherited from ControlledObject
 ControlledObject (MainController *m)
 Creates a new ControlledObject. More...
 
const MainControllergetMainController () const noexcept
 Provides read-only access to the main controller. More...
 
MainControllergetMainController () noexcept
 Provides write access to the main controller. More...
 

Detailed Description

A object that handles the embedded resources (audio files, images and samplemaps).

Member Function Documentation

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.

©2017 HISE. This documentation is autogenerated from the HISE source code using Doxygen.