Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QUESTION]: What does this mean: "AudioCache is dead, long live Sources" #1234

Closed
under3415 opened this issue Aug 5, 2022 · 4 comments
Closed
Labels
docs Concerning the documentation

Comments

@under3415
Copy link

Prior to version 1 we had an option to pre-loading files (from different sources) into an "AudioCache".

This made a lot of sense. My app has 5 audio sound effects that play often. So it makes sense to pre-load them into a cache (from assets in my case) and play them from there instead of reading from storage every time. This is even more important if the sound is loaded from a remote network location.

When you say "AudioCache is dead", does that mean that the file is read form source every time? Or are you doing some caching in the background without developer having to manage it?

@rpungin
Copy link

rpungin commented Aug 5, 2022

I have the same question.

@Gustl22
Copy link
Collaborator

Gustl22 commented Aug 5, 2022

Cache further exists, but is handled by the plugin.

@Gustl22
Copy link
Collaborator

Gustl22 commented Sep 27, 2022

Also AudioCache is only used for AssetSource. @luanpotter maybe we should explain this here in more detail, that this isn't needed for the AssetSource anymore.

For the network, we don't provide a mechanism (yet), to cache them, and audioplayers never did. This should be handled here: #374

@Gustl22 Gustl22 added the docs Concerning the documentation label Sep 27, 2022
@Gustl22
Copy link
Collaborator

Gustl22 commented Sep 27, 2022

Closing in favor of #1256

@Gustl22 Gustl22 closed this as completed Sep 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Concerning the documentation
Projects
None yet
Development

No branches or pull requests

3 participants