Cache IAudioProcessor::canProcessSampleSize()

This commit is contained in:
Robbert van der Helm
2021-05-06 18:32:46 +02:00
parent 8f310ed89b
commit b6f96fc920
3 changed files with 41 additions and 4 deletions
@@ -531,6 +531,11 @@ class Vst3PluginProxyImpl : public Vst3PluginProxy {
* @see function_result_cache
*/
struct FunctionResultCache {
/**
* Memoizes `IAudioProcessor::canProcessSampleSize()`, since some hosts
* call this every processing cycle.
*/
std::map<int32, tresult> can_process_sample_size;
/**
* Memoizes `IEditController::getParameterCount()`.
*/