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
+5 -5
View File
@@ -556,16 +556,16 @@ struct AudioBuffers {
int sample_frames;
/**
* We'll send the current transport information as part of an audio
* processing call. This lets us a void an unnecessary callback (or in some
* cases, more than one) during every processing cycle.
* We'll prefetch the current transport information as part of handling an
* audio processing call. This lets us a void an unnecessary callback (or in
* some cases, more than one) during every processing cycle.
*/
std::optional<VstTimeInfo> current_time_info;
/**
* Some plugins will also ask for the current process level during audio
* processing. To prevent unnecessary expensive callbacks, we'll send this
* information along with the processing call.
* processing. To prevent unnecessary expensive callbacks there, we'll
* prefetch this information as well.
*/
int current_process_level;