Replies: 1 comment 5 replies
-
Hi @Solido ,
given that when you load a sound it remains loaded till you call
that AudioSource remains loaded even if the
Things may be getting bad if 2 different instances of A tip: you A 2nd tip regarding But maybe @filiph could have some more insights for you because he is building a "GIANT" game using this plugin! I hope I well covered this discussion! |
Beta Was this translation helpful? Give feedback.
-
Just a feedback as I need to work more with the lib.
At first it seems that this is an exposed API, a front for advanced low-level capabilities.
It means that we can sugar the Flutter side to reflect Flutter and content creators patterns.
As an example, with my first use, I add to build a cache on my app before anything else.
Future<AudioSource>
worked with first calls and logged me warning about the reload of existing asset.What I would like, as a fully transparent and configurable solution, is a weak links cache.
The method used to find the asset is the key to the cache, each method can be configured to escape cache. Cache can be configured with a maximum size in keys entries and/or memory before soft release.
Another VERY important aspect the assets rights management. I want to be able to trace source and ownership of my assets.
Here's a an shot at a somewhat higher level API that would rely on all the greats low-levels features exposed but avoid each devs to rebuild the asset access part.
Cache can be preloaded with list on assets on startup.
Different part of the app get its own cache,
Some are large and always alive like the main screen,
some will be freed quickly on even won't cache like settings screens.
With these people can link their widgets lifecycle to cache.
It also offer access to right managements.
Beta Was this translation helpful? Give feedback.
All reactions