Reword caching to prefetching

Since that makes it much clearer what we're actually doing. With old
`cache_time_info` was actually caching the response, but now we're
querying it before the plugin has even requested the information.
This commit is contained in:
Robbert van der Helm
2021-04-29 01:07:14 +02:00
parent c82eb35243
commit 6f6e6c5b94
5 changed files with 26 additions and 24 deletions
+3 -3
View File
@@ -114,8 +114,8 @@ class Vst2Bridge : public HostBridge {
* We'll store the last transport information obtained from the host as a
* result of `audioMasterGetTime()` here so we can return a pointer to it if
* the request was successful. To prevent unnecessary back and forth
* communication, we'll send a copy of the current transport information to
* the plugin as part of the audio processing call.
* communication, we'll prefetch the current transport information in the
* plugin as part of the audio processing call.
*
* @see cached_time_info
*/
@@ -131,7 +131,7 @@ class Vst2Bridge : public HostBridge {
/**
* Some plugins will also ask for the current process level during audio
* processing, so we'll also cache that to prevent expensive callbacks.
* processing, so we'll also prefetch that to prevent expensive callbacks.
*/
ScopedValueCache<int> process_level_cache;