-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
enhancementNew feature or requestNew feature or requestin progressThis issue will be worked on soonThis issue will be worked on soon
Description
To improve cue starting latency, media files should be cached in RAM.
I suggest that this is implemented by implementing a static cache manager with a ConcurrentDictionary<string path, CachedMediaStream>. This CachedMediaStream would be a wrapper around a standard MemoryStream which would store the contents of the file. The Dispose method would be overridden to update the cache manager's reference counting so that it can evict old streams from the cache. The cache manager should listen to SelectedCueIndex updates (or update at a fixed frequency, of say 2Hz) to try and cache cues ahead (and a few behind) the current cue up until a (configurable) maximum amount of cache memory is used.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestin progressThis issue will be worked on soonThis issue will be worked on soon