Hi I am trying to preload the sounds for my game on a different thread during a loading screen so that it does not make the game freeze. On iPhone this works perfectly and there is no freeze at all. On android however the game crashes. Ill put my code below
I think it has something to do with using the NDK. I just used preprocessor directives to allow it to use pthread only on iPhone. I display a loading screen while this is happening so on android it just displays a static loading screen while it is loading the sounds. This might be a solution for you too?
I think it has something to do with using the NDK. I just used preprocessor directives to allow it to use pthread only on iPhone. I display a loading screen while this is happening so on android it just displays a static loading screen while it is loading the sounds. This might be a solution for you too?