Gigatron Member Licensed User Longtime User Nov 23, 2011 #1 Hi all Those days i am working to port differents library to B4A. For example here the SDL_Mixer loadMUS code in java, This function load music .. Code: public static MixMusic loadMUS(String path) throws SDLException { SWIGTYPE_p__Mix_Music mixMusic = SWIG_SDLMixer.Mix_LoadMUS(path); if (mixMusic == null) { throw new SDLException(SDLMain.getError()); } return new MixMusic(mixMusic); } I would like to adapt this code working on B4A Like this: loadMUS(File.Dirassets,"paradox.mod") I cant find the way.... Thanks in advance
Hi all Those days i am working to port differents library to B4A. For example here the SDL_Mixer loadMUS code in java, This function load music .. Code: public static MixMusic loadMUS(String path) throws SDLException { SWIGTYPE_p__Mix_Music mixMusic = SWIG_SDLMixer.Mix_LoadMUS(path); if (mixMusic == null) { throw new SDLException(SDLMain.getError()); } return new MixMusic(mixMusic); } I would like to adapt this code working on B4A Like this: loadMUS(File.Dirassets,"paradox.mod") I cant find the way.... Thanks in advance
Erel B4X founder Staff member Licensed User Longtime User Nov 24, 2011 #2 Are you sure that this function supports assets file at all? The assets folder is a special folder.