Public Member Functions | Protected Member Functions | List of all members
MainController::SampleManager::PreloadListener Class Referenceabstract

A class that will be notified about sample preloading changes. More...

Inheritance diagram for MainController::SampleManager::PreloadListener:
SamplerSoundMap SamplerSoundTable VoiceCpuBpmComponent

Public Member Functions

virtual void preloadStateChanged (bool isPreloading)=0
 This gets called whenever the preload state changes. More...
 

Protected Member Functions

String getCurrentErrorMessage () const
 Returns the preload message. More...
 

Detailed Description

A class that will be notified about sample preloading changes.

This can be used to implement loading bars / progress labels when the samples are preloaded. In order to use this, just create one of these, supply the SampleManager instance of your MainController and it will automatically register and deregister as callbacks and will call the preloadStateChanged(bool isPreloading).

Member Function Documentation

String getCurrentErrorMessage ( ) const
inlineprotected

Returns the preload message.

virtual void preloadStateChanged ( bool  isPreloading)
pure virtual

This gets called whenever the preload state changes.

the isPreloading flag indicates whether the preloading was initiated or completed. Normally, you would start or stop a timer which regularly checks the sample progress (with SampleManager::getPreloadProgress()).

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