-
Notifications
You must be signed in to change notification settings - Fork 79
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
App: Add asset streaming #8
Comments
Seems to be trivial, we should acquire AssetManager and wrap it within AssetReader that will manage locking (locking mux is located in nativeActivity though, called |
Ah, now I get why you added that. The AssetManager is actually thread safe according to the docs. The problem is AAsset. The mutex should be in the io.ReadCloser that contains the reference to AAsset (assuming that this is indeed trivial, I'm not 100% sure about that, because I can't wrap my head around the panic I got). |
@MaVo159
This is ok:
I'll leave the implementation up to you, I have nothing to test.. |
App should offer something like
GetAssetReader(name string) io.ReadCloser
to allow streaming large assets. The NDK functions work like that way anyway. See #7 for why this may not be trivial.The text was updated successfully, but these errors were encountered: