Also cache audioMasterGetCurrentProcessLevel()

Melda plugins seem to call this during every processing cycle.
This commit is contained in:
Robbert van der Helm
2021-04-29 01:02:10 +02:00
parent 383b0c3f10
commit c82eb35243
5 changed files with 52 additions and 8 deletions
+6
View File
@@ -129,6 +129,12 @@ class Vst2Bridge : public HostBridge {
*/
ScopedValueCache<VstTimeInfo> time_info_cache;
/**
* Some plugins will also ask for the current process level during audio
* processing, so we'll also cache that to prevent expensive callbacks.
*/
ScopedValueCache<int> process_level_cache;
// FIXME: This emits `-Wignored-attributes` as of Wine 5.22
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wignored-attributes"