Control-thread decoded sample cache for samplers and loopers. More...
#include <sample_resource.hpp>
Public Member Functions | |
| SampleResourceCache (SampleResourceCacheLimits limits={}) | |
| std::shared_ptr< const AudioFileData > | get (const std::string &path) |
| bool | put (std::string path, AudioFileData data) |
| bool | put (std::string path, std::shared_ptr< const AudioFileData > data) |
| bool | erase (const std::string &path) |
| void | clear () |
| SampleResourceCacheStats | stats () const |
| SampleResourceCacheLimits | limits () const noexcept |
Control-thread decoded sample cache for samplers and loopers.
This cache owns decoded sample memory and records deterministic hit/miss and eviction counters. It is not an audio-thread API; publish cached data to a SampleResourceHandle or a prepared realtime handoff slot before rendering.
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inlinenoexcept |
|
inline |
|
inline |
|
inline |