Classes | Public Types | Public Member Functions | List of all members
MainController::SampleManager Class Reference

Contains all methods related to sample management. More...

Classes

class  PreloadListener
 A class that will be notified about sample preloading changes. More...
 
struct  PreloadThreadData
 A POD structure that contains information about a Preload function. More...
 

Public Types

using PreloadFunction = std::function< bool(Processor *, PreloadThreadData &)>
 A PreloadFunction is a lambda that will be called by the preload thread. More...
 

Public Member Functions

SampleThreadPool * getGlobalSampleThreadPool ()
 returns a pointer to the thread pool that streams the samples from disk. More...
 
const ValueTree getLoadedSampleMap (const String &fileName) const
 Returns the ValueTree that represents the samplemap with the specified file name. More...
 
ModulatorSamplerSoundPoolgetModulatorSamplerSoundPool () const
 returns a pointer to the global sample pool
 
int getStreamingBufferSize () const
 returns the fixed streaming buffer size. More...
 
void preloadEverything ()
 Preload everything since the last call to setShouldSkipPreloading. More...
 
void setShouldSkipPreloading (bool skip)
 If you load multiple samplemaps at once (eg. More...
 

Detailed Description

Contains all methods related to sample management.

Member Typedef Documentation

using PreloadFunction = std::function<bool(Processor*, PreloadThreadData&)>

A PreloadFunction is a lambda that will be called by the preload thread.

Regularly check the PreloadThreadData thread if it should exit and return false on a failure to abort.

Member Function Documentation

SampleThreadPool* getGlobalSampleThreadPool ( )
inline

returns a pointer to the thread pool that streams the samples from disk.

const ValueTree getLoadedSampleMap ( const String &  fileName) const

Returns the ValueTree that represents the samplemap with the specified file name.

This is used when a sample map is loaded - it checks if the name already exists in the loaded monolithic data and loads the sounds from there if there is a match.

int getStreamingBufferSize ( ) const
inline

returns the fixed streaming buffer size.

void preloadEverything ( )

Preload everything since the last call to setShouldSkipPreloading.

void setShouldSkipPreloading ( bool  skip)

If you load multiple samplemaps at once (eg.

at startup), call this and it will coallescate the preloading.

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