mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-08 12:30:12 +02:00
Cache IAudioProcessor::canProcessSampleSize()
This commit is contained in:
@@ -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()`.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user